From 78f85d5281d3522126dc97e5c27ca6b332ee064c Mon Sep 17 00:00:00 2001 From: David Cook Date: Thu, 14 Mar 2024 06:08:29 +0000 Subject: [PATCH] Bug 36312: Add Subject-heading 1=21 to Zebra authorities indexing This change adds the 1=21 Subject-heading index to Zebra authorities. Test plan: 0. Apply patch 1. sudo cp etc/zebradb/authorities/etc/bib1.att /etc/koha/zebradb/authorities/etc/bib1.att 2. sudo cp etc/zebradb/marc_defs/marc21/authorities/authority-zebra-indexdefs.xsl \ /etc/koha/zebradb/marc_defs/marc21/authorities/authority-zebra-indexdefs.xsl 3. sudo koha-indexer --stop kohadev 4. sudo koha-zebra --stop kohadev 5. sudo koha-zebra --start kohadev 6. sudo koha-indexer --start kohadev 7. sudo koha-rebuild-zebra -f -a -v kohadev 8. yaz-client unix:/var/run/koha/kohadev/authoritysocket 9. base authorities 10. find @attr 1=21 "Philosophy, Marxist" 11. Zebra returns a hit 12. Celebrate! --- etc/zebradb/authorities/etc/bib1.att | 1 + .../marc21/authorities/authority-koha-indexdefs.xml | 5 +++++ .../marc21/authorities/authority-zebra-indexdefs.xsl | 6 +++--- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/etc/zebradb/authorities/etc/bib1.att b/etc/zebradb/authorities/etc/bib1.att index aa35022ac9c..95108c7069a 100644 --- a/etc/zebradb/authorities/etc/bib1.att +++ b/etc/zebradb/authorities/etc/bib1.att @@ -47,6 +47,7 @@ att 9020 Chronological-term-see-from att 9021 Chronological-term-see-also-from # Topical Term +att 21 Subject-heading att 1079 Subject-topical att 9013 Subject-topical-heading att 9014 Subject-topical-see-from diff --git a/etc/zebradb/marc_defs/marc21/authorities/authority-koha-indexdefs.xml b/etc/zebradb/marc_defs/marc21/authorities/authority-koha-indexdefs.xml index 49f1c9f6f27..258b45a65c1 100644 --- a/etc/zebradb/marc_defs/marc21/authorities/authority-koha-indexdefs.xml +++ b/etc/zebradb/marc_defs/marc21/authorities/authority-koha-indexdefs.xml @@ -339,8 +339,13 @@ authority-zebra-indexdefs.xsl` Subject-topical:w Subject-topical:p + Subject-heading:w + Subject-heading:p + Subject-heading:w + Subject-heading:p + Subject-heading:s Subject-topical-heading:w Subject-topical-heading:p Subject-topical-heading:s diff --git a/etc/zebradb/marc_defs/marc21/authorities/authority-zebra-indexdefs.xsl b/etc/zebradb/marc_defs/marc21/authorities/authority-zebra-indexdefs.xsl index b38e0f0cd01..9ee4c090fb5 100644 --- a/etc/zebradb/marc_defs/marc21/authorities/authority-zebra-indexdefs.xsl +++ b/etc/zebradb/marc_defs/marc21/authorities/authority-zebra-indexdefs.xsl @@ -149,7 +149,7 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) - + @@ -613,10 +613,10 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) - + - + -- 2.30.2