Skip to content

Commit c1c37aa

Browse files
authored
Update README.md
1 parent d455f5a commit c1c37aa

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ All of these scripts require a secrets.py file in the same directory that must c
1010

1111
## Scripts
1212

13+
#### [getArchivalObjectsByResource.py](/getArchivalObjectsByResource.py)
14+
A GET script to extract all of the archival objects associated with a particular resource. To set the resource you want to search for, adjust the 'resourceNumber' variable on line 13
15+
1316
#### [getArrayPropertiesFromAgentsPeopleCSV.py](/getArrayPropertiesFromAgentsPeopleCSV.py)
1417
This GET script retrieves specific properties, including proprerties that have arrays as values, from the JSON of ArchivesSpace agent_people records. In this example, the 'dates_of existence' property contains an array that must be iterated over. This requires a second level of iteration with 'for j in range (...)' on line 20, which is in addition to the iteration function 'for i in range (...)' on line 19, which was also found in the getPropertiesFromAgentsPeopleCSV.py script. As with the previous script, it also writes the properties' values into a CSV file which is specified in variable 'f' on line 17.
1518

@@ -29,6 +32,3 @@ This POST script will post new records to a generic API endpoint based the recor
2932

3033
#### [postOverwrite.py](/postOverwrite.py)
3134
This POST script will overwrite existing ArchivesSpace records based the 'uri' and can be used with any ArchivesSpace record type (e.g. resource, accession, subject, agent_people, agent_corporate_entity, archival_object, etc.). It requires a properly formatted JSON file (specified where [JSON File] appears in the 'records' variable on line 13) for the particular ArchivesSpace record type you are trying to post.
32-
33-
#### [searchArchivalObjectsByResource.py](/searchArchivalObjectsByResource.py)
34-
A GET script to extract all of the archival objects associated with a particular resource. To set the resource you want to search for, adjust the 'resourceNumber' variable on line 13

0 commit comments

Comments
 (0)