]> git.evergreen-ils.org Git - working/Evergreen.git/commit
LP#1488655: fix MR remapping upon fingerprint change user/gmcharlt/lp1488655_improve_metarecord_remapping
authorGalen Charlton <gmc@esilibrary.com>
Fri, 28 Oct 2016 15:42:52 +0000 (11:42 -0400)
committerGalen Charlton <gmc@esilibrary.com>
Fri, 28 Oct 2016 15:42:52 +0000 (11:42 -0400)
commit8b4cf2f03d563c6ba57d3920bb1639570bc24273
treed6c712f69ff903ca350f8b7a0e3cea79e86fd864
parentfe828d3dc32d395ebee766d4f2f969687d039804
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>
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]