Skip to content

Prepare Items for DSpace ItemUpdate

Terry Brady edited this page Feb 9, 2018 · 9 revisions

DSpace provides a command line tool itemupdate.

https://wiki.duraspace.org/display/DSDOC3x/Updating+Items+via+Simple+Archive+Format#UpdatingItemsviaSimpleArchiveFormat-ItemUpdateCommands

Here is the usage information from the itemupdate command

Examples:
  adding metadata:     ItemUpdate -e jsmith@mit.edu -s sourcedir -a dc.contributor -a dc.subject 
  deleting metadata:   ItemUpdate -e jsmith@mit.edu -s sourcedir -d dc.description.other
  adding bitstreams:   ItemUpdate -e jsmith@mit.edu -s sourcedir -A -i dc.identifier
  deleting bitstreams: ItemUpdate -e jsmith@mit.edu -s sourcedir -D ORIGINAL 

The FileAnalyzer can be used to facilitate the creation of a sourcedir needed for this command.

Create Item Update Folders - Add Bitstreams

Starting with an input file (csv format) containing the following fields

  • Item Handle
  • File name (relative to the input file)
  • Bitstream description to assign

Sample File

collection,FileName,Description
10822.2/1360,150dpiGTR_COVEY_COVEY_013_017400.pdf,Dynamic View
10822.2/1359,150dpiGTR_COVEY_COVEY_011_025700.pdf,Dynamic View

The FileAnalyzer task "Create Item Update Folders" will read this file and construct a source directory that can be used as input to the itemupdate command.

Create Item Update Folders - Delete Bitstreams

Starting with an input file (csv format) containing the following fields

  • Item Handle
  • Bitstream Id
Clone this wiki locally