]> git.evergreen-ils.org Git - contrib/Conifer.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:55:53 +0000 (14:55 -0500)
commit237a26cbf4a1c5bf3ec285ae1ec400d431d0a7de
tree4585dfde3632b8e14ba164faa4a316be6c0529b6
parent720d5b5495e72867229b6d0c1d024218c0840272
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]