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:50:29 +0000 (13:50 -0500)
commit23293c7f2499f474b8d252e62aaaf82c4489dbaf
tree757f75d5a5adb9dca3aa38cf6b1a9599faddde32
parentc20bfea3494cd8a5930f7be1bb5e1bb0b85fd180
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]