Package org.dspace.content

Examples of org.dspace.content.Item.addMetadata()


      bs.setFormat(format);
      bs.update();

      // now we have an item in the workspace, and we need to consider adding some metadata to it,
      // but since the binary file didn't contain anything, what do we do?
      item.addMetadata("dc", "title", null, null, "Untitled: " + deposit.getFilename());
      item.addMetadata("dc", "description", null, null, "Zip file deposted by SWORD without accompanying metadata");

      // update the item metadata to inclue the current time as
      // the updated date
      this.setUpdatedDate(item, verboseDescription);
View Full Code Here


      bs.update();

      // now we have an item in the workspace, and we need to consider adding some metadata to it,
      // but since the binary file didn't contain anything, what do we do?
      item.addMetadata("dc", "title", null, null, "Untitled: " + deposit.getFilename());
      item.addMetadata("dc", "description", null, null, "Zip file deposted by SWORD without accompanying metadata");

      // update the item metadata to inclue the current time as
      // the updated date
      this.setUpdatedDate(item, verboseDescription);
View Full Code Here

      // unzip the file into the bundle
      List<Bitstream> derivedResources = this.unzipToBundle(context, depositFile, bundle);

      // now we have an item in the workspace, and we need to consider adding some metadata to it,
      // but since the zip file didn't contain anything, what do we do?
      item.addMetadata("dc", "title", null, null, "Untitled: " + deposit.getFilename());
        item.addMetadata("dc", "description", null, null, "Zip file deposted by SWORD without accompanying metadata");

      // update the item metadata to inclue the current time as
      // the updated date
      this.setUpdatedDate(item, verboseDescription);
View Full Code Here

      List<Bitstream> derivedResources = this.unzipToBundle(context, depositFile, bundle);

      // now we have an item in the workspace, and we need to consider adding some metadata to it,
      // but since the zip file didn't contain anything, what do we do?
      item.addMetadata("dc", "title", null, null, "Untitled: " + deposit.getFilename());
        item.addMetadata("dc", "description", null, null, "Zip file deposted by SWORD without accompanying metadata");

      // update the item metadata to inclue the current time as
      // the updated date
      this.setUpdatedDate(item, verboseDescription);
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.