]> git.koha-community.org Git - koha.git/commit
Bug 31532: Add preprocessor to Zebra indexing pipeline to index 880 as linked field
authorDavid Cook <dcook@prosentient.com.au>
Thu, 8 Sep 2022 05:06:38 +0000 (05:06 +0000)
committerArthur Suzuki <arthur.suzuki@biblibre.com>
Fri, 16 Dec 2022 15:38:57 +0000 (16:38 +0100)
commit65b7e241608f74b370d8d17ffb1e89221196b104
tree22283753a94b3a333c5291e7b1f2f4fae0c10567
parentf9090c9813b48f2678d594ca759649303e29b1cf
Bug 31532: Add preprocessor to Zebra indexing pipeline to index 880 as linked field

This patch adds a preprocessor XSLT to the Zebra indexing pipeline,
so that 880 fields get indexed as the fields they're linked to. For example,
a "880 $6 245" field would be indexed as a "245" field.

However, because the preprocessor only occurs in the indexing part of the pipeline,
it does not affect the retrieval of MARCXML from Zebra. That MARCXML will be
the same MARCXML that was sent to Zebra from Koha.

Test plan:

0. Revert bug 15187, and apply patch for 31532
1. cp ./etc/zebradb/biblios/etc/dom-config.xml /etc/koha/zebradb/biblios/etc/dom-config.xml
2a. cp etc/zebradb/marc_defs/marc21/biblios/preprocess_marcxml.xsl /etc/koha/zebradb/marc_defs/marc21/biblios/.
2b. cp etc/zebradb/marc_defs/normarc/biblios/preprocess_marcxml.xsl /etc/koha/zebradb/marc_defs/normarc/biblios/.
2c. cp etc/zebradb/marc_defs/unimarc/biblios/preprocess_marcxml.xsl /etc/koha/zebradb/marc_defs/unimarc/biblios/.
3. koha-rebuild-zebra -b -f -v kohadev
4. Note that in search results the 880$6245$a data appears before the 245$a data
5. Note that you can do a title index search on the 880$6245$a data

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit 2c673944ba8a5f2b785836dab562acdbb026ccee)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit 1c17ce33354a31b182f1b1393dbfe2693bc33065)
Signed-off-by: Arthur Suzuki <arthur.suzuki@biblibre.com>
etc/zebradb/biblios/etc/dom-config.xml
etc/zebradb/marc_defs/marc21/biblios/preprocess_marcxml.xsl [new file with mode: 0644]
etc/zebradb/marc_defs/normarc/biblios/preprocess_marcxml.xsl [new file with mode: 0644]
etc/zebradb/marc_defs/unimarc/biblios/preprocess_marcxml.xsl [new file with mode: 0644]