Page History
Batch Metadata Editing
Table of Contents | ||||||
---|---|---|---|---|---|---|
|
Batch Metadata Editing Tool
DSpace provides a batch metadata editing tool. The batch editing tool is able to produce a comma delimited file in the CVS CSV format. The batch editing tool facilitates the user to perform the following:
...
The following table summarizes the basics.
<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="06190c31-413e-4995-b47b-f4977f83d2c8"><ac:plain-text-body><![CDATA[ | Command used: |
|
Java class: | org.dspace.app.bulkedit.MetadataExport | |
Arguments short and (long) forms): | Description | |
| Required. The filename of the resulting CSV. | |
| The Item, Collection, or Community handle or Database ID to export. If not specified, all items will be exported. | |
<ac:structured | Include all the metadata fields that are not normally changed (e.g. provenance) or those fields you configured in the | |
]]></ac:plain-text | Display the help page. |
...
In the above example we have requested that a collection, assigned handle '1989.1/24' export the entire collection to the file 'col_14.cvscsv' found in the '/batch_export' directory.
...
The following table summarizes the basics.
<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="33cd2f0b-12ed-4558-a625-6e30d9677059"><ac:plain-text-body><![CDATA[ | Command used: |
|
Java class: | org.dspace.app.bulkedit.MetadataImport | |
Arguments short and (long) forms: | Description | |
| Required. The filename of the CSV file to load. | |
| Silent mode. The import function does not prompt you to make sure you wish to make the changes. | |
| The email address of the user. This is only required when adding new items. | |
| When adding new items, the program will queue the items up to use the Collection Workflow processes. | |
| when adding new items using a workflow, send notification emails. | |
| When adding new items, use the Collection template, if it exists. | |
| Display the brief help page. |
...
Code Block |
---|
[dspace]/bin/dspace/ metadata-import -f /dImport/new_file.csv -e joe@user.com -w -n -t |
...
The csv files that this tool can import and export abide by the RFC4180 CSV formathttp://www.ietf. org/rfc/rfc4180.txt. This means that new lines, and embedded commas can be included by wrapping elements in double quotes. Double quotes can be included by using two double quotes. The code does all this for you, and any good csv editor such as Excel or OpenOffice will comply with this convention.
...
If you want to store multiple values for a given metadata element, they can be separated with the double-pipe '||' (or another character that you defined in your _modules/bulkedit.cfg
_ file. For example:
Code Block |
---|
Horses||Dogs||Cats |
...
- 'expunge' This permanently deletes an item. Use with care! This action must be enabled by setting 'allowexpunge = true' in
modules/bulkedit.cfg
- 'withdraw' This withdraws an item from the archive, but does not delete it.
- 'reinstate' This reinstates an item that has previously been withdrawn.
...