Bugzilla – Attachment 25769 Details for
Bug 9972
Add/ change some zebra indexes (MARC21) (GRS1+DOM)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 9972 Add/ change some zebra indexes (MARC21)
Bug-9972-Add-change-some-zebra-indexes-MARC21.patch (text/plain), 10.38 KB, created by
Chris Cormack
on 2014-03-03 20:55:36 UTC
(
hide
)
Description:
Bug 9972 Add/ change some zebra indexes (MARC21)
Filename:
MIME Type:
Creator:
Chris Cormack
Created:
2014-03-03 20:55:36 UTC
Size:
10.38 KB
patch
obsolete
>From e5bba68ae70992972bff835cb781995bb65bd3e4 Mon Sep 17 00:00:00 2001 >From: Mirko Tietgen <mirko@abunchofthings.net> >Date: Tue, 2 Apr 2013 15:03:53 +0200 >Subject: [PATCH] Bug 9972 Add/ change some zebra indexes (MARC21) >MIME-Version: 1.0 >Content-Type: text/plain; charset=UTF-8 >Content-Transfer-Encoding: 8bit > >This patch adds :w and :p versions to the index for »Lexile number« (it has only :n so far) and adds indexes for 653 (Index term uncontrolled), 655 (Index term Genre/Form), 041 (language-audio) and 041 (language-subtitle). It also adds the »curriculum«-index to Search.pm. > >Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz> >--- > C4/Search.pm | 6 ++++++ > etc/zebradb/biblios/etc/bib1.att | 4 ++++ > etc/zebradb/ccl.properties | 9 +++++++++ > .../marc21/biblios/biblio-koha-indexdefs.xml | 18 ++++++++++++++++++ > .../marc21/biblios/biblio-zebra-indexdefs.xsl | 20 +++++++++++++++++--- > etc/zebradb/marc_defs/marc21/biblios/record.abs | 9 ++++++--- > 6 files changed, 60 insertions(+), 6 deletions(-) > >diff --git a/C4/Search.pm b/C4/Search.pm >index c656e8f..f21b9a2 100644 >--- a/C4/Search.pm >+++ b/C4/Search.pm >@@ -957,6 +957,7 @@ sub getIndexes{ > 'Corporate-name-see', > 'Corporate-name-seealso', > 'ctype', >+ 'curriculum', > 'date-entered-on-file', > 'Date-of-acquisition', > 'Date-of-publication', >@@ -976,6 +977,8 @@ sub getIndexes{ > 'Host-item', > 'id-other', > 'Illustration-code', >+ 'Index-term-genre', >+ 'Index-term-uncontrolled', > 'ISBN', > 'isbn', > 'ISSN', >@@ -988,8 +991,11 @@ sub getIndexes{ > 'lc-card', > 'LC-card-number', > 'lcn', >+ 'lex', > 'llength', > 'ln', >+ 'ln-audio', >+ 'ln-subtitle', > 'Local-classification', > 'Local-number', > 'Match-heading', >diff --git a/etc/zebradb/biblios/etc/bib1.att b/etc/zebradb/biblios/etc/bib1.att >index b2c38c4..aed2011 100644 >--- a/etc/zebradb/biblios/etc/bib1.att >+++ b/etc/zebradb/biblios/etc/bib1.att >@@ -291,3 +291,7 @@ att 9013 arp > att 9520 Item > # Curriculum > att 9658 curriculum >+att 9653 Index-term-uncontrolled >+att 9655 Index-term-genre >+att 9906 ln-audio >+att 9907 ln-subtitle >diff --git a/etc/zebradb/ccl.properties b/etc/zebradb/ccl.properties >index a5de010..4bcee8c 100644 >--- a/etc/zebradb/ccl.properties >+++ b/etc/zebradb/ccl.properties >@@ -1173,3 +1173,12 @@ item Item > > Host-Item-Number 1=8911 > hi Host-Item-Number >+ >+Index-term-uncontrolled 1=9653 >+itu Index-term-uncontrolled >+ >+Index-term-genre 1=9655 >+itg Index-term-genre >+ >+ln-audio 1=9906 >+ln-subtitle 1=9907 >diff --git a/etc/zebradb/marc_defs/marc21/biblios/biblio-koha-indexdefs.xml b/etc/zebradb/marc_defs/marc21/biblios/biblio-koha-indexdefs.xml >index 14443d6..cd55b35 100644 >--- a/etc/zebradb/marc_defs/marc21/biblios/biblio-koha-indexdefs.xml >+++ b/etc/zebradb/marc_defs/marc21/biblios/biblio-koha-indexdefs.xml >@@ -177,6 +177,7 @@ > <!--record.abs line 70: melm 041$a ln--> > <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="041" subfields="a"> > <target_index>ln:w</target_index> >+ <target_index>ln-audio:w</target_index> > </index_subfields> > <!--record.abs line 71: melm 041$d ln--> > <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="041" subfields="d"> >@@ -189,6 +190,7 @@ > <!--record.abs line 73: melm 041$j ln--> > <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="041" subfields="j"> > <target_index>ln:w</target_index> >+ <target_index>ln-subtitle:w</target_index> > </index_subfields> > <!--record.abs line 74: melm 043 Code-geographic--> > <index_data_field xmlns="http://www.koha-community.org/schemas/index-defs" tag="043"> >@@ -547,6 +549,8 @@ > </index_data_field> > <!--record.abs line 153: melm 521$a lex:n--> > <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="521" subfields="a"> >+ <target_index>lex:w</target_index> >+ <target_index>lex:p</target_index> > <target_index>lex:n</target_index> > </index_subfields> > <!--record.abs line 154: melm 526$c arl,arl:n--> >@@ -684,6 +688,13 @@ > <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="652" subfields="9"> > <target_index>Koha-Auth-Number:w</target_index> > </index_subfields> >+ <!--melm 653$a Index-term-uncontrolled --> >+ <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="653" subfields="a"> >+ <target_index>Index-term-uncontrolled:w</target_index> >+ <target_index>Index-term-uncontrolled:p</target_index> >+ <target_index>Subject:w</target_index> >+ <target_index>Subject:p</target_index> >+ </index_subfields> > <!--record.abs line 183: melm 653$9 Koha-Auth-Number --> > <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="653" subfields="9"> > <target_index>Koha-Auth-Number:w</target_index> >@@ -702,6 +713,13 @@ > <target_index>Subject:w</target_index> > <target_index>Subject:p</target_index> > </index_data_field> >+ <!--melm 655$a Index-term-genre --> >+ <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="655" subfields="a"> >+ <target_index>Index-term-genre:w</target_index> >+ <target_index>Index-term-genre:p</target_index> >+ <target_index>Subject:w</target_index> >+ <target_index>Subject:p</target_index> >+ </index_subfields> > <!--record.abs line 187: melm 655$9 Koha-Auth-Number --> > <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="655" subfields="9"> > <target_index>Koha-Auth-Number:w</target_index> >diff --git a/etc/zebradb/marc_defs/marc21/biblios/biblio-zebra-indexdefs.xsl b/etc/zebradb/marc_defs/marc21/biblios/biblio-zebra-indexdefs.xsl >index 26858e8..6715314 100644 >--- a/etc/zebradb/marc_defs/marc21/biblios/biblio-zebra-indexdefs.xsl >+++ b/etc/zebradb/marc_defs/marc21/biblios/biblio-zebra-indexdefs.xsl >@@ -160,7 +160,7 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) > <xslo:template mode="index_subfields" match="marc:datafield[@tag='041']"> > <xslo:for-each select="marc:subfield"> > <xslo:if test="contains('a', @code)"> >- <z:index name="ln:w"> >+ <z:index name="ln:w ln-audio:w"> > <xslo:value-of select="."/> > </z:index> > </xslo:if> >@@ -181,7 +181,7 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) > </xslo:for-each> > <xslo:for-each select="marc:subfield"> > <xslo:if test="contains('j', @code)"> >- <z:index name="ln:w"> >+ <z:index name="ln:w ln-subtitle:w"> > <xslo:value-of select="."/> > </z:index> > </xslo:if> >@@ -444,7 +444,7 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) > <xslo:template mode="index_subfields" match="marc:datafield[@tag='521']"> > <xslo:for-each select="marc:subfield"> > <xslo:if test="contains('a', @code)"> >- <z:index name="lex:n"> >+ <z:index name="lex:w lex:p lex:n"> > <xslo:value-of select="."/> > </z:index> > </xslo:if> >@@ -587,6 +587,13 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) > </xslo:template> > <xslo:template mode="index_subfields" match="marc:datafield[@tag='653']"> > <xslo:for-each select="marc:subfield"> >+ <xslo:if test="contains('a', @code)"> >+ <z:index name="Index-term-uncontrolled:w Index-term-uncontrolled:p Subject:w Subject:p"> >+ <xslo:value-of select="."/> >+ </z:index> >+ </xslo:if> >+ </xslo:for-each> >+ <xslo:for-each select="marc:subfield"> > <xslo:if test="contains('9', @code)"> > <z:index name="Koha-Auth-Number:w"> > <xslo:value-of select="."/> >@@ -605,6 +612,13 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) > </xslo:template> > <xslo:template mode="index_subfields" match="marc:datafield[@tag='655']"> > <xslo:for-each select="marc:subfield"> >+ <xslo:if test="contains('a', @code)"> >+ <z:index name="Index-term-genre:w Index-term-genre:p Subject:w Subject:p"> >+ <xslo:value-of select="."/> >+ </z:index> >+ </xslo:if> >+ </xslo:for-each> >+ <xslo:for-each select="marc:subfield"> > <xslo:if test="contains('9', @code)"> > <z:index name="Koha-Auth-Number:w"> > <xslo:value-of select="."/> >diff --git a/etc/zebradb/marc_defs/marc21/biblios/record.abs b/etc/zebradb/marc_defs/marc21/biblios/record.abs >index 5ff08f4..5ebf5e7 100644 >--- a/etc/zebradb/marc_defs/marc21/biblios/record.abs >+++ b/etc/zebradb/marc_defs/marc21/biblios/record.abs >@@ -75,10 +75,11 @@ melm 034 Map-scale > #melm 035 Local-number,Identifier-standard > melm 037 Identifier-standard,Stock-number > melm 040 Code-institution,Record-source >-melm 041$a ln >+melm 041$a ln,ln-audio:w > melm 041$d ln > melm 041$e ln >-melm 041$j ln >+melm 041$h language-original >+melm 041$j ln,ln-subtitle:w > melm 043 Code-geographic > #melm 046 pubdate > melm 050$b LC-call-number:w,LC-call-number:p,LC-call-number:s >@@ -158,7 +159,7 @@ melm 505$t Title > melm 505 Note:w,Note:p > melm 510 Indexed-by > melm 520 Abstract:w,Abstract:p >-melm 521$a lex:n >+melm 521$a lex:w,lex:p,lex:n > melm 526$c arl,arl:n > melm 526$d arp,arp:n > #melm 533$d pubdate,pubdate:s >@@ -188,10 +189,12 @@ melm 651$9 Koha-Auth-Number > melm 651 Name-geographic,Subject,Subject:p > melm 652$9 Koha-Auth-Number > #melm 652 subject-heading,subject-heading:p >+melm 653$a Index-term-uncontrolled:w,Index-term-uncontrolled:p,Subject,Subject:p > melm 653$9 Koha-Auth-Number > melm 653 Subject,Subject:p > melm 654$9 Koha-Auth-Number > melm 654 Subject,Subject:p >+melm 655$a Index-term-genre:w,Index-term-genre:p,Subject,Subject:p > melm 655$9 Koha-Auth-Number > melm 655 Subject,Subject:p > melm 656$9 Koha-Auth-Number >-- >1.8.3.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 9972
:
17126
|
17136
|
17137
|
19768
|
21234
|
22030
|
25762
|
25769
|
26544