Closed amhanson9 closed 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.
Resource for testing the AIP ID pattern: https://stackoverflow.com/questions/14225608/python-how-to-use-regex-in-an-if-statement
MAGIL has started ingested web AIPs since this script was written. Previously, all of their content was in dlg-magil.