LP#1037553: bibliographic record source now copied to 901$s user/gmcharlt/lp1307553_bib_source_in_901
authorGalen Charlton <gmc@esilibrary.com>
Wed, 26 Aug 2015 17:59:37 +0000 (17:59 +0000)
committerGalen Charlton <gmc@esilibrary.com>
Wed, 26 Aug 2015 17:59:37 +0000 (17:59 +0000)
commit43a9797ad6e3485eb675c4cff573d545d2be2431
tree5595bd9ed085b6db667203d4aa32983ceb9a4a56
parent062365cb84734801c144f6fa468992c61e91067f
LP#1037553: bibliographic record source now copied to 901$s

If a bibliographic record has a source set, the name of that source
is now copied to the 901$s whenever the record is created or updated.
This allows the source to be used for record matching and MARC
field queries.

To test:

[1] Create or import a bibliographic record and ensure that its
    source is set to a non-null value.
[2] Inspect the record in MARC format view and verify that its
    901 field now has a subfield $s containing the name of the
    source.
[3] Use pg_prove to run the pgTAP test added by this patch
    and verify that the test passes.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Open-ILS/src/sql/Pg/002.functions.config.sql
Open-ILS/src/sql/Pg/t/bib_901_field.pg [new file with mode: 0644]
Open-ILS/src/sql/Pg/upgrade/XXXX.schema.bib_source_in_901.sql [new file with mode: 0644]
docs/RELEASE_NOTES_NEXT/Cataloging/bib_source_in_901s.txt [new file with mode: 0644]