LP#712490 Vandelay merge-based field replacement
authorBill Erickson <berickxx@gmail.com>
Wed, 18 Oct 2017 21:00:59 +0000 (17:00 -0400)
committerJason Stephenson <jason@sigio.com>
Fri, 8 Mar 2019 18:59:31 +0000 (13:59 -0500)
commit635ed4a291c12cb9e7ccd92d176bff79bcedcaa8
treed6150b0d7e6474491aae80975b54910a5555e442
parentf7aad272dd98112b2efe371b6cf0e7e4a088f4f3
LP#712490 Vandelay merge-based field replacement

Modify the vandelay field replacement logic to merge replacement data
into existing field data where possible, instead of simply deleting then
re-adding the data.  The key benefit is that subfields retain their order
in affected MARC fields.  As a result, for example, propagating
authority field changes to bib records will no longer result in the $0
field being pushed to the front of the field when it was previously that
last subfield.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Jane Sandberg <sandbej@linnbenton.edu>
Signed-off-by: Jason Stephenson <jason@sigio.com>
Open-ILS/src/sql/Pg/012.schema.vandelay.sql
Open-ILS/src/sql/Pg/upgrade/XXXX.schema.vandelay-replace-field-order.sql [new file with mode: 0644]