Hello,

[I am running DSpace 3.1.]

I am attempting to use the itemupdate command to add metadata to three fields 
at the same time. The command I am using is:

[dspace]/bin/dspace itemupdate -e [email protected] -s [path/to/archive] -a 
dc.contributor.x.;dc.contributor.y;dc.contributor.z

When I run this in test mode, all the metadata fields load correctly, but the 
action (org.dspace.app.itemupdate.AddMetadataAction) is only performed on the 
first metadata field. At the end of the test run, I see the error:

-bash: dc.contributor.y: command not found
-bash: dc.contributor.z: command not found

I am confident that my SAF packages are correct because itemupdate works 
correctly when I run the command individually for each metadata field. Is there 
a problem with the syntax of my command? Am I misunderstanding the manual? Here 
is the relevant portion of the manual:


-a or --addmetadata [metadata element]  Repeatable for multiple elements. The 
metadata element should be in the form dc.x or dc.x.y. The mandatory argument 
indicates the metadata fields in the dublin_core.xml file to be added unless 
already present (multiple fields should be separated by a semicolon ';'). 
However, duplicate fields will not be added to the item metadata without 
warning or error.

Any thoughts would be appreciated.

Thank you,
David


---------
David Isaak
Digital Projects Librarian
Kaiser Permanente
Center for Health Research
3800 N. Interstate Ave.
Portland, OR 97227
(503) 335-2437
---------
kpchr.org



------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

Reply via email to