-
Kyle M Hall authored
This patch adds the ability to overlay by either itemnumber, or barcode. Itemnumbers take precendence over barcodes, which allows us to batch update item barcodes with an overlay. Test Plan: 1) Create a new record with 2 items, make sure to give it a unique ISBN 2) Download the record as MARCXML 3) Edit the MARC XML a) Delete one of the two items b) Change the barcode in the barcode field to something unused 4) Transform the xml file into marc with xml2marc 5) Browse to 'Stage MARC records for import' 6) Upload the binary marc file 7) Choose the following options: Record matching rule: ISBN Action if matching record found: Ignore incoming record Action if no match is found: Ignore incoming record Check for embedded item record data: Yes How to process items: Replace items if matching bib was found 8) Click 'Stage for import' button 9) Verify a matching record was found, then click 'Manage staged records' link 10) Verify the rules are still set correctly 11) Click 'Import this batch into the catalog' 12) The import should tell you: 1 record was ignored 1 item was replaced 13) View the record details and verify the item's barcode was replaced with your updated barcode value 14) Download the record as MARCXML 15) Edit the MARC XML a) Delete one of the two items b) Delete the itemnumber field for the remaining item c) Alter the item's callnumber to a new value 16) Repeat steps 4 through 12 17) View the record details and verify the item's callnumber was replace with your updated callnumber value Signed-off-by: Henry Bankhead <hbankhead@losgatosca.gov> Signed-off-by: Galen Charlton <gmc@esilibrary.com>
805bec0a