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)
committerGalen Charlton <gmc@equinoxinitiative.org>
Fri, 10 Feb 2017 16:46:32 +0000 (11:46 -0500)
commit4d19f06fc7ce9c36fd5c8eb7f204425eeaf57d33
tree69cdb2632a8d14c983200beeac26c814a3dfb35c
parent28bcce8fb39060399d74c949168872216aaa8cc1
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>
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]