]> git.evergreen-ils.org Git - Evergreen.git/commit
LP#1488655: fix MR remapping upon fingerprint change
authorGalen Charlton <gmc@esilibrary.com>
Fri, 28 Oct 2016 15:42:52 +0000 (11:42 -0400)
committerGalen Charlton <gmc@esilibrary.com>
Wed, 16 Nov 2016 19:52:28 +0000 (14:52 -0500)
commita27eabaf67099339b019d2b0fcf8a163eb184316
treeacf30a9b5bea2530cdaccc5ae737142870a7d142
parent31108a7ab247fbdc3b30320ce041d9e32020a055
LP#1488655: fix MR remapping upon fingerprint change

This patch ensures that if the fingerprint of a bib changes, the
bib will be moved to a new metarecord as opposed to ending up
as a member of more than one metarecord.

To test
-------
[1] Note the metarecord that a bib belongs to.
[2] Change the bib so that its fingerprint changes -- with stock
    cbf settings, editing the 245$a should suffice.
[3] Note that it is now a component of two metarecords.
[4] Apply the patch.
[5] Repeat step 2 or force a reingest. The bib should now be part
    of exactly one metarecord.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Rogan Hamby <rogan.hamby@gmail.com>
Signed-off-by: Chris Sharp <csharp@georgialibraries.org>
Open-ILS/src/sql/Pg/030.schema.metabib.sql
Open-ILS/src/sql/Pg/upgrade/XXXX.schema.fix_metarecord_remapping.sql [new file with mode: 0644]