You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Based on user input, this script created a JSON file of metadata that can be POST-ed 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:
35
+
'key' - The Dublin Core property to be used for the element.
36
+
'value' - The column in the CSV that contains the data for the element.
37
+
'language' - The desired language value for the element
34
38
35
39
#### [postItem.py](postItem.py)
36
40
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.
@@ -39,17 +43,19 @@ Based on user input, this script creates a community with a specified name and c
39
43
This script finds all items with duplicate key-value pairs and removes the duplicates. A CSV log is written with all of the items that were edited and a 'dc.description.provenance' note describing the change is added to the item metadata.
40
44
41
45
#### [replaceKey.py](replaceKey.py)
42
-
Based on user input, this script replaces one specified key with another specified key in all item metadata across the repository. A CSV log is written with all of the changes made and a 'dc.description.provenance' note describing the change is added to the item metadata.
46
+
Based on user input, this script replaces one specified key with another specified key in all item metadata across the repository. 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.
Based on user input, this scripts updates key-value pairs from the specified CSV file with the columns: 'replacedKey,' 'replacementKey,'replacedValue,' and 'replacementValue.' 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.
Based on user input, this script removes double spaces, triple spaces, and spaces before commas in the values from the specified key in the specified community.
This scripts creates a folder with a timestamp in the folder name and creates a JSON file for every collection in the repository with the metadata for all of the items in that collection.
0 commit comments