-
Notifications
You must be signed in to change notification settings - Fork 103
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ArchivesSpace: Automate matching GUI #258
Conversation
|
||
rc = 0 | ||
|
||
rc = rc or parse_archivesspace_ids(args.sipPath, args.sipUUID) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since this exits 0 on success, can you just sys.exit(parse_archivesspace_ids(args.sipPath, args.sipUUID))
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was thinking this script would be used for multiple DIP helpers, and the script should return failure if any one of them failed, so the RC should be the or'd results of all the helpers. Does this seem reasonable?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That makes sense. Maybe leave a comment to that effect (since it's not clear when there aren't yet multiple values to or
), or do that when there is more than one exit code?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated
👍 Tests are nice to see too :D |
57f9e1e
to
362ecce
Compare
362ecce
to
77050dc
Compare
Note: this is in the process of getting updated other ArchivesSpace enhancements (tickets #8697 and #8696 in Redmine) |
e776f86
to
559d9e5
Compare
9dfd688
to
f5e1baf
Compare
Remove unused function, use messages for form confirmation, update ATK config saving to match AS, format template.
Add function to return a resource based on an exact query by a specific field.
Helper searches transfer and SIP metadata directories for all copies of a file with the provided filename.
Helper to generate information needed by the DIP that is only available in the SIP. E.g. parsing metadata files.
refs #8696 When uploading to ArchivesSpace, also upload the access file's size and format name. file_format_name is a restricted vocabulary and should be configured in ArchivesSpace first so upload succeeds.
f5e1baf
to
59c822c
Compare
Automatically parse an
archivesspacesids.csv
and populate the matching GUI for archivesspace.archivesspaceids.csv
forfilename,reference ID
, queries ArchivesSpace for the resource ID associated with the reference identifier, and populates ArchivesSpaceDIPObjectResourcePairing