Examples of XSLTDescriptiveMetadataHandler


Examples of edu.indiana.dlib.metsnav.data.XSLTDescriptiveMetadataHandler

                citem = new JSONObject();
                citem.put("id", item.getId());
                citem.put("title", item.getLabel());
            }
        } else {
            DescriptiveMetadataHandler handler = new XSLTDescriptiveMetadataHandler(); //TODO: generalize, dynamic loading
            citem =  (JSONObject)JSONSerializer.toJSON(handler.getMetadata(dmd.getDmd(), "simple"));
            citem.put("hasDmd", true);
        }
        citem.put("firstPage", item.getFirst().getSequentialOrder());
        citem.put("lastPage", item.getLast().getSequentialOrder());
        citem.put("label", item.getLabel());
View Full Code Here

Examples of edu.indiana.dlib.metsnav.data.XSLTDescriptiveMetadataHandler

    CompositeItem root = mo.getLogicalStruct();
    ArrayList<AbstractItem> children = root.getChildren();
    ArrayList toc = new ArrayList();
    for (AbstractItem item : children) {
      CompositeItem ci = (CompositeItem)item;
      DescriptiveMetadataHandler handler = new XSLTDescriptiveMetadataHandler();
      DescriptiveMetadata dmd =mo.getDmdMap().get(ci.getDmdID());
      Map md = null;
      if (dmd == null) {
        md = new HashMap();
        md.put("id", ci.getId());
        md.put("title", ci.getLabel());
      } else {
        md =  handler.getMetadata(dmd.getDmd(), "simple");
      }
      md.put("firstPage", ci.getFirst().getId());
      md.put("lastPage", ci.getLast().getId());     
      toc.add(md);
    }
View Full Code Here

Examples of edu.indiana.dlib.metsnav.data.XSLTDescriptiveMetadataHandler

    if (dmd == null) {
      md = new HashMap();
      md.put("id", item.getId());
      md.put("title", item.getLabel());
    } else {
      DescriptiveMetadataHandler handler = new XSLTDescriptiveMetadataHandler();
      md = handler.getMetadata(dmd.getDmd(), "simple");
    }
    md.put("firstPage", item.getFirst().getId());
    md.put("lastPage", item.getLast().getId());
   
    Map ret = new HashMap();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.