forked from terrywbrady/File-Analyzer
-
Notifications
You must be signed in to change notification settings - Fork 11
Prepare Items for DSpace ItemUpdate
Terry Brady edited this page Feb 9, 2018
·
9 revisions
DSpace provides a command line tool itemupdate.
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.
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.
Starting with an input file (csv format) containing the following fields
- Item Handle
- Bitstream Id