Skip to content

Commit 13afd8a

Browse files
authored
Update README.md
1 parent 766164a commit 13afd8a

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

README.md

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,15 +39,23 @@ No collections skipped:
3939
Based on user input, this script uses a specified CSV file of DSpace item handles and the value to be added to that item using the specified key. A CSV log is written with all of the changes made and a 'dc.description.provenance' note describing the change is added to the metadata of each item that is updated.
4040

4141
#### [addKeyValuePairToCollection.py](addKeyValuePairToCollection.py)
42+
Based on user input, this script adds a specified key-value pair with a specified language value to every item in the collection with the specified handle.
4243

4344
#### [createItemMetadataFromCSV.py](createItemMetadataFromCSV.py)
44-
Based on user input, this script created a JSON file of metadata that can be added to a DSpace item from the specified CSV file. The 'createMetadataElement' function in the script is used to create the desired metadata elements based on three variables:
45-
*'key' - The Dublin Core property to be used for the element.
46-
*'value' - The column in the CSV that contains the data for the element.
47-
*'language' - The desired language value for the element
48-
45+
Based on user input, this script created a JSON file of metadata that can be added to a DSpace item from the specified CSV file or from values directly specified in the script. The 'createMetadataElementCSV' function in the script is used to create a metadata element from the specified CSV file and has three variables:
46+
47+
- 'key' - The Dublin Core property to be used for the element.
48+
- 'value' - The column in the specified CSV file that contains the data for the element.
49+
- 'language' - The desired language value for the element
50+
51+
The 'createMetadataElementDirect' function in the script is used to create a metadata element without a CSV file (intended for metadata elements that will be constant across all items in a collection) and has three variables:
52+
53+
- 'key' - The Dublin Core property to be used for the element.
54+
- 'value' - The actual value of the element.
55+
- 'language' - The desired language value for the element.
4956

5057
#### [deleteKeyFromCollection.py](deleteKeyFromCollection.py)
58+
Based on user input, this script removes all key-value pairs with the specified key for every item in the collection with the specified handle.
5159

5260
#### [postCollection.py](postCollection.py)
5361
Based on user input, this script creates a community with a specified name and collection with a specified name within that community. In the specified directory (within the filePath set by the secrets.py file), the script creates items and associated metadata based on a 'collectionMetadata.json' file in the directory. Based on the specified file extension, the script then posts each file in the directory with that extension as a bitstream for the appropriate item, which is determined by having the file name (minus the file extension) in a 'dc.identifier.other' field in the item metadata record.

0 commit comments

Comments
 (0)