Prepare Items for DSpace ItemUpdate - Georgetown-University-Libraries/File-Analyzer GitHub Wiki
DSpace provides a command line tool itemupdate.
Here is the usage information from the itemupdate command
Examples:
adding metadata: ItemUpdate -e [email protected] -s sourcedir -a dc.contributor -a dc.subject
deleting metadata: ItemUpdate -e [email protected] -s sourcedir -d dc.description.other
adding bitstreams: ItemUpdate -e [email protected] -s sourcedir -A -i dc.identifier
deleting bitstreams: ItemUpdate -e [email protected] -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
Input File Description
Starting with an input file (csv format) containing the following fields
- Item Handle
- File name (relative to the input file)
- Bundle name
- Bitstream description to assign
Sample File
item,FileName,Bundle,Description
10822.1/4048,finding-aid.png,ORIGINAL,xxx
10822.1/4048,finding-aid2.png,A,xxx
10822.1/4047,finding-aid.png,ORIGINAL,xxx
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.
Sample command
dspace itemupdate -e [email protected] -s itemupdate -A -i dc.identifier.uri
Sample Screenshot
Create Item Update Folders - Delete Bitstreams
Input File Description
Starting with an input file (csv format) containing the following fields
- Item Handle
- Bitstream Id
Sample File
10822/550477,9993
10822/550477,9994
10822/550477,9995
Sample command
dspace itemupdate -e [email protected] -s itemupdate -D -i dc.identifier.uri