]> git.evergreen-ils.org Git - Evergreen.git/commit
LP#1037553: bibliographic record source now copied to 901$s
authorGalen Charlton <gmc@esilibrary.com>
Wed, 26 Aug 2015 17:59:37 +0000 (17:59 +0000)
committerMike Rylander <mrylander@gmail.com>
Tue, 9 Aug 2016 18:53:08 +0000 (14:53 -0400)
commit8db4cb64bb4741713edc7a364adcd9d0f865ba7d
tree0fae364948114007692ca52d73d31e9d8a9aaba2
parent983e8f9cf1bbc69fd8a134b987cdc87e4fc8e406
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>
Signed-off-by: Mike Rylander <mrylander@gmail.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]