Package org.swordapp.server

Examples of org.swordapp.server.SwordEntry


  private void addMetadataToItem(Deposit deposit, Item item)
      throws DSpaceSwordException
  {
    // now, go through and get the metadata from the EntryPart and put it in DSpace
    SwordEntry se = deposit.getSwordEntry();

    // first do the standard atom terms (which may get overridden later)
    String title = se.getTitle();
    String summary = se.getSummary();
    if (title != null)
    {
      String titleField = this.dcMap.get("title");
      if (titleField != null)
      {
        Metadatum dcv = this.makeDCValue(titleField, title);
                this.addUniqueMetadata(dcv, item);
      }
    }
    if (summary != null)
    {
      String abstractField = this.dcMap.get("abstract");
      if (abstractField != null)
      {
        Metadatum dcv = this.makeDCValue(abstractField, summary);
                this.addUniqueMetadata(dcv, item);
      }
    }

    Map<String, List<String>> dc = se.getDublinCore();
    for (String term : dc.keySet())
    {
      String dsTerm = this.dcMap.get(term);
      if (dsTerm == null)
      {
View Full Code Here

TOP

Related Classes of org.swordapp.server.SwordEntry

Copyright © 2018 www.massapicom. 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.