Bugzilla – Attachment 163753 Details for
Bug 36312
Authorities Z39.50 missing Subject-heading 21
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 36312: Add Subject-heading 1=21 to Zebra authorities indexing
Bug-36312-Add-Subject-heading-121-to-Zebra-authori.patch (text/plain), 4.87 KB, created by
David Nind
on 2024-03-23 07:47:57 UTC
(
hide
)
Description:
Bug 36312: Add Subject-heading 1=21 to Zebra authorities indexing
Filename:
MIME Type:
Creator:
David Nind
Created:
2024-03-23 07:47:57 UTC
Size:
4.87 KB
patch
obsolete
>From 907e583414daf697d3415b1c08bbcbcb0abcc6fe Mon Sep 17 00:00:00 2001 >From: David Cook <dcook@prosentient.com.au> >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! > >Signed-off-by: David Nind <david@davidnind.com> >--- > 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 aa35022ac9..95108c7069 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 49f1c9f6f2..258b45a65c 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` > <kohaidx:index_subfields tag="150" subfields="abvxyz"> > <kohaidx:target_index>Subject-topical:w</kohaidx:target_index> > <kohaidx:target_index>Subject-topical:p</kohaidx:target_index> >+ <kohaidx:target_index>Subject-heading:w</kohaidx:target_index> >+ <kohaidx:target_index>Subject-heading:p</kohaidx:target_index> > </kohaidx:index_subfields> > <kohaidx:index_heading tag="150" subfields="abvxyz" subdivisions="vxyz"> >+ <kohaidx:target_index>Subject-heading:w</kohaidx:target_index> >+ <kohaidx:target_index>Subject-heading:p</kohaidx:target_index> >+ <kohaidx:target_index>Subject-heading:s</kohaidx:target_index> > <kohaidx:target_index>Subject-topical-heading:w</kohaidx:target_index> > <kohaidx:target_index>Subject-topical-heading:p</kohaidx:target_index> > <kohaidx:target_index>Subject-topical-heading:s</kohaidx:target_index> >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 b38e0f0cd0..9ee4c090fb 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) > <xslo:template mode="index_subfields" match="marc:datafield[@tag='150']"> > <xslo:for-each select="marc:subfield"> > <xslo:if test="contains('abvxyz', @code)"> >- <z:index name="Subject-topical:w Subject-topical:p"> >+ <z:index name="Subject-topical:w Subject-topical:p Subject-heading:w Subject-heading:p"> > <xslo:value-of select="."/> > </z:index> > </xslo:if> >@@ -613,10 +613,10 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) > </z:index> > </xslo:template> > <xslo:template mode="index_heading" match="marc:datafield[@tag='150']"> >- <z:index name="Subject-topical-heading:w Subject-topical-heading:p Subject-topical-heading:s Heading:w Heading:p Heading:s"> >+ <z:index name="Subject-heading:w Subject-heading:p Subject-heading:s Subject-topical-heading:w Subject-topical-heading:p Subject-topical-heading:s Heading:w Heading:p Heading:s"> > <xslo:variable name="raw_heading"> > <xslo:for-each select="marc:subfield"> >- <xslo:if test="contains('abvxyz', @code)" name="Subject-topical-heading:w Subject-topical-heading:p Subject-topical-heading:s Heading:w Heading:p Heading:s"> >+ <xslo:if test="contains('abvxyz', @code)" name="Subject-heading:w Subject-heading:p Subject-heading:s Subject-topical-heading:w Subject-topical-heading:p Subject-topical-heading:s Heading:w Heading:p Heading:s"> > <xslo:if test="position() > 1"> > <xslo:choose> > <xslo:when test="contains('vxyz', @code)"> >-- >2.30.2
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 36312
:
163130
|
163753
|
164176