LP#712490 Vandelay merge-based field replacement
authorBill Erickson <berickxx@gmail.com>
Wed, 18 Oct 2017 21:00:59 +0000 (17:00 -0400)
committerJane Sandberg <sandbej@linnbenton.edu>
Sat, 13 Oct 2018 17:15:20 +0000 (10:15 -0700)
commit46e954825bb05f82059a6772cc1f3cab641ad565
tree099200300f72ff036f8668984a989200bdefbbc0
parent1319a3aa6ad46d66085a512ad3144b926ce41ca3
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>
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]