Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: cleanup of itemupdate options

...

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="013fd928947ba0d5-46ae8eaa-4415441d-bc8c8a2b-de4f3606c252e85698dfb014"><ac:plain-text-body><![CDATA[

Command used:

[dspace]/bin/dspace itemupdate

]]></ac:plain-text-body></ac:structured-macro>

Java class:

org.dspace.app.itemimportitemupdate.ItemUpdate

Arguments short and (long) forms:

Description

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="6b2e37ca239756b4-8b643240-4a4448d4-b12ca6ee-a28b94e774ba814ee520b3b5"><ac:plain-text-body><![CDATA[

-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.

]]></ac:plain-text-body></ac:structured-macro>

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="ab3f2a977fa1d2b9-79fad053-499e48b3-8d3a88c6-062a969de10f036e19362ce4"><ac:plain-text-body><![CDATA[

-d or --deletemetadata [metadata element]

Repeatable for multiple elements. All metadata fields matching the element will be deleted.

]]></ac:plain-text-body></ac:structured-macro>

-A or --addbitstreamaddbitstreams

Adds bitstreams listed in the contents file with the bitstream metadata cited there.

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="d8bf19f38fa9fb37-d305194f-4fe94c38-856d82a5-d3fd541093d43307d3327bbe"><ac:plain-text-body><![CDATA[

-D or --deletebitstream deletebitstreams [filter plug classname or alias]

Not repeatable. With no argument, this operation deletes bitstreams listed in the deletes_contents file. Only bitstream ids IDs are recognized identifiers for this operatiotnoperation. The optional filter argument is the classname of an implementation of org.dspace.app.itemdupate.BitstreamFilter class to identify files for deletion or one of the aliases (e.g. ORIGINAL, ORIGINAL_AND_DERIVATIVES, TEXT, THUMBNAIL) which reference existing filters based on membership in a bundle of that name. IN In this case, the delete_contents file is not required for any item. The filter properties file will contains properties pertinent to the particular filer used. Multiple filters are not allowed.

]]></ac:plain-text-body></ac:structured-macro>

-h or --help

Displays brief command line help.

-e or --eperson

Email address of the person or the user's database ID (Required)

-s or --source

Directory archive to process (Required)

-i or --itemidentifieritemfield

Specifies an alternate the metadata field (not a handle) used to hold an identifier used to match the DSpace item with that in the archive. If omitted, the item handle is expected to be located in the that contains the item's identifier; Default value is "dc.identifier.uri field. " (Optional)

-t or --test

Runs the process in test mode with logging but . But no changes applied to the DSpace instance. (Optional)

-P or --alterprovenanceprovenance

Prevents any changes to the provenance field to represent changes in the bitstream content resulting from an Add or Delete. In other words, when this flag is specified, no new provenance information is added to the DSpace Item when adding/deleting a bitstream. No provenance statements are written for thumbnails or text derivative bitstreams, in keeping with the practice of MediaFilterManager. (Optional)

-F or --filter-filterpropertiesproperties

The filter properties files to be used by the delete bitstreams action (Optional)

-v or --verbose

Turn on verbose logging.

CLI Examples

Adding Metadata:

...