Skip to content

Commit 9134d73

Browse files
author
ehanson8
committed
2 parents 272cb3c + fc88c1f commit 9134d73

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

README.md

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,26 @@ All of these scripts require a secrets.py file in the same directory that must c
1111
## Scripts
1212

1313
#### [addBibNumbersAndPost.py](/addBibNumbersAndPost.py)
14+
Based on a specified CSV file with URIs and bib numbers, this script posts the specified bib number to the ['user_defined]['real_1'] field for record specified by the URI.
15+
16+
#### [dateCheck.py](/dateCheck.py)
17+
Retrieves 'begin,' 'end,' 'expression,' and 'date_type' for all dates associated with all resources in a repository
1418

1519
#### [eadToCsv.py](/eadToCsv.py)
1620
Based on a specified file name and a specified file path, this script extracts selected elements from an EAD XML file and prints them to a CSV file.
1721

22+
#### [getAccessionUDFs.py](/getAccessionUDFs.py)
23+
This GET script retrieves all of the user-defined fields from all of the accessions in the specified repository.
24+
25+
#### [getAccessions.py](/getAccessions.py)
26+
This GET script retrieves all of the accessions from a particular repository into a JSON file.
27+
28+
#### [getAllArchivalObjectTitles.py](/getAllArchivalObjectTitles.py)
29+
Retrieves titles from all archival objects in a repository. Upon running the script, you will be prompted enter the resource ID (just the number, not the full URI).
30+
31+
#### [getArchivalObjectCountByResource.py](/getArchivalObjectCountByResource.py)
32+
Retrieves a count of archival objects associated with a particular resource. Upon running the script, you will be prompted enter the resource ID (just the number, not the full URI).
33+
1834
#### [getArchivalObjectsByResource.py](/getArchivalObjectsByResource.py)
1935
A GET script to extract all of the archival objects associated with a particular resource. Upon running the script, you will be prompted enter the resource ID (just the number, not the full URI).
2036

@@ -23,12 +39,25 @@ This GET script retrieves specific properties, including proprerties that have a
2339

2440
#### [getPropertiesFromAgentsPeopleCSV.py](/getPropertiesFromAgentsPeopleCSV.py)
2541
This GET script retrieves specific properties from the JSON of ArchivesSpace agent_people records into a CSV file which is specified in variable 'f' on line 17. In this example, the script retrieves the 'uri,' 'sort_name,' 'authority_id,' and 'names' properties from the JSON records by iterating through the JSON records with the function 'for i in range (...)' on line 19. The f.writerow(....) function on line 20 specifies which properties are retrieved from the JSON and the f.writerow(....) on line 18 specifies header row of the CSV file.
42+
2643
#### [getResources.py](/getResources.py)
2744
This GET scripts retrieves all of the resources from a particular repository into a JSON file which is specified in variable 'f' on line 16. This GET script can be adapted to other record types by editing the 'endpoint' variable on line 13 (e.g. 'repositories/[repo ID]/accessions' or 'agents/corporate_entities').
2845

2946
#### [getSingleRecord.py](/getSingleRecord.py)
3047
This GET script retrieves a single ArchivesSpace record based on the record's 'uri,' which is specified in the 'endpoint' variable on line 13.
3148

49+
#### [getTopContainerCountByResource.py](/getTopContainerCountByResource.py)
50+
Retrieves a count of top containers associated with archival objects associated with a particular resource. Upon running the script, you will be prompted enter the resource ID (just the number, not the full URI).
51+
52+
#### [getTopContainerCountByResourceNoAOs.py](/getTopContainerCountByResourceNoAOs.py)
53+
Retrieves a count of top containers directly associated (not through an archival object) with a particular resource. Upon running the script, you will be prompted enter the resource ID (just the number, not the full URI).
54+
55+
#### [getTopContainers.py](/getTopContainers.py)
56+
This GET script retrieves all of the top containers from a particular repository into a JSON file.
57+
58+
#### [getUrisAndIds.py](getUrisAndIds.py)
59+
For the specified record type, this script retrieves URI and the 'id_0,' 'id_1,' 'id_2,' 'id_3,' and a concatenated version of all the 'id' fields.
60+
3261
#### [postContainersFromCSV.py](/postContainersFromCSV.py)
3362
This script works to create instances (consisting of top_containers) from a separate CSV file. The CSV file should have two columns, indicator and barcode. The directory where this file is stored must match the directory in the filePath variable. The script will prompt you first for the exact name of the CSV file, and then for the exact resource or accession to attach the containers to.
3463

@@ -39,3 +68,14 @@ This POST script will post new records to a generic API endpoint based the recor
3968
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.
4069

4170
#### [resourcesWithNoBibNum.py](/resourcesWithNoBibNum.py)
71+
Prints the URIs to a CSV file of all resources in a repository without a bib number stored in the ['user_defined']['real_1'] field.
72+
73+
#### [searchForUnassociatedContainers.py](/searchForUnassociatedContainers.py)
74+
Prints the URIs to a CSV file of all top containers that are not associated with a resource or archival object.
75+
76+
#### [unpublishArchivalObjectsByResource.py](/unpublishArchivalObjectsByResource.py)
77+
This script unpublishes all archival objects associated with the specified resource. Upon running the script, you will be prompted enter the resource ID (just the number, not the full URI).
78+
79+
#### [updateFindingAidData.py](/updateFindingAidData.py)
80+
81+
#### [updateResourceWithCSV.py](/updateResourceWithCSV.py)

0 commit comments

Comments
 (0)