uga-libraries / format-report

Aggregate and analyze csv files with file format information generated by the UGA Libraries' digital preservation system (ARCHive).
Creative Commons Attribution Share Alike 4.0 International
0 stars 0 forks source link

Add MAGIL to collection_from_aip() #31

Closed amhanson9 closed 1 year ago

amhanson9 commented 1 year ago

MAGIL has started ingested web AIPs since this script was written. Previously, all of their content was in dlg-magil.

amhanson9 commented 1 year ago

No MAGIL AIPs have a related collection and they all fit the same pattern (GGP web). Assign collection of "no-coll", so explicit there is no collection, and it is still a string like all other collection ids instead of None. Having a consistent data type simplifies code. Test the AIP ID pattern before assigning "no-coll" to catch any new variations that should not have this collection id.

amhanson9 commented 1 year ago

Resource for testing the AIP ID pattern: https://stackoverflow.com/questions/14225608/python-how-to-use-regex-in-an-if-statement