Alexandria Digital Research Library - http://alexandria.ucsb.edu
Other
6
stars
1
forks
source link
Fixed a problem where MODS parser was setting id but shouldn't be. It was causing re-run of mods importer to create a new record instead of updating existing record. #647
I ran the mods importer script with 2 image files and 1 collection file from the sandbox:
/data/adrl-dm/ingest-ready/hpamss032
To test these changes:
I tried running the collection import first, then the images import
I tried running in the reverse order (images first, then import collection)
I tried running the import script twice in a row to make sure the find_or_create behavior was working correctly
All these tests were run in my local dev env
After the imports, I checked the collection.member_ids and image.in_collection_ids to make sure the images were in the collection as expected. It seems to be working properly and the specs all pass.
ping @jcoyne for review
I ran the mods importer script with 2 image files and 1 collection file from the sandbox: /data/adrl-dm/ingest-ready/hpamss032
To test these changes:
All these tests were run in my local dev env
After the imports, I checked the collection.member_ids and image.in_collection_ids to make sure the images were in the collection as expected. It seems to be working properly and the specs all pass.