curationexperts / alexandria-legacy

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

Closed val99erie closed 8 years ago

val99erie commented 8 years ago

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.