]> git.evergreen-ils.org Git - Evergreen.git/commit
LP#1117808: new Pg function to calculate MARC record merges
authorGalen Charlton <gmc@equinoxinitiative.org>
Wed, 30 Nov 2016 14:49:10 +0000 (09:49 -0500)
committerKathy Lussier <klussier@masslnc.org>
Fri, 17 Feb 2017 15:13:36 +0000 (10:13 -0500)
commit2ade97550d6a10e993e2575e55d78fd8efb22c97
treeb545f4ed22086266d23bec717d97b50639ff649b
parentf9f830e2b59edf36c771f6d13382d6407f5fb932
LP#1117808: new Pg function to calculate MARC record merges

This patch adds a new stored function, vandelay.merge_record_xml_using_profile(),
that when passed two MARCXML strings and the ID of a merge profile.
returns the MARCXML string representing the results of the record merge.

This is meant for situations where we want to know the results
of a merge, but not immediately overlay a record in the database.

pgTAP tests are available in t/marc_merge.pg.

Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
Open-ILS/src/sql/Pg/012.schema.vandelay.sql
Open-ILS/src/sql/Pg/t/marc_merge.pg [new file with mode: 0644]
Open-ILS/src/sql/Pg/upgrade/XXXX.schema.more_overlay_funcs.sql [new file with mode: 0644]