Commit Graph

5 Commits

Author SHA1 Message Date
0ebe3bd751
util/create-schema-dspace.py: update comment 2022-01-11 20:57:42 +02:00
d0093722ec
util/create-schema-dspace.py: update logic
Detect actual HTTP return codes for various situations:

- HTTP 500 means the schema or field already exists
- HTTP 415 means we are posting some invalid data
- HTTP 404 means the parent schema does not exist
2022-01-11 20:55:34 +02:00
b0ef411f62
util/create-schema-dspace.py: fix error in POST
The missing "headers=headers" was causing an HTTP 415 that took me
over an hour to fix. Sigh.
2022-01-11 20:54:19 +02:00
0fca6bbc90
util/create-schema-dspace.py: clean up output
Minor nitpick after staring at this while debugging for an hour. I
think the period at the end of these lines is ugly.
2022-01-11 20:53:55 +02:00
57cc35c839
Add util/create-schema-dspace.py
Script to read the ISEAL Core and FSC metadata CSVs and create the
appropriate schemas and metadata fields in a DSpace 6.x repository.
2022-01-09 10:10:00 +02:00