Skip to content

Conversation

@aeschweik
Copy link
Collaborator

Automatic concatenation of columns, plus adding/removing strings from other columns. Needs review by someone who actually knows Python as it could be more elegant (though this does seem to work). There are a lot of "if" statements because I didn't want to assign the same generic text to objects without those fields (e.g. uploads shouldn't say "urn:bampfa_accession_number:" if there's no accession # at the end of it).

Automatic concatenation of columns, plus adding/removing strings from other columns. Needs review by someone who actually knows Python as it could be more elegant (though this does seem to work). There are a lot of "if" statements because I didn't want to assign the same generic text to objects without those fields (e.g. uploads shouldn't say "urn:bampfa_accession_number:" if there's no accession # at the end of it).
'frames_per_second', 'source_pixel_width', and 'source_pixel_height' are defined by IA software (not the person uploading), as per IA metadata schema https://archive.org/services/docs/api/metadata-schema/index.html
Moved to one location in script. (variables not pulled directly from metadata dict do not exist unless initialized as blank strings, so the script will throw an error when trying to use them in the dict (instead of just ignoring))
Based on metadata fields used by sample of 300 objects in PFA's ResourceSpace.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants