Bugzilla – Attachment 21234 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]
9972 Add/ change some zebra indexes (MARC21) (GRS1)
9972-Add-change-some-zebra-indexes-MARC21-GRS1.patch (text/plain), 8.14 KB, created by
Mirko Tietgen
on 2013-09-19 11:52:08 UTC
(
hide
)
Description:
9972 Add/ change some zebra indexes (MARC21) (GRS1)
Filename:
MIME Type:
Creator:
Mirko Tietgen
Created:
2013-09-19 11:52:08 UTC
Size:
8.14 KB
patch
obsolete
>From dc0e2036b5a1f70606fa5222c684148c48b6ca5c Mon Sep 17 00:00:00 2001 >From: Mirko Tietgen <mirko@abunchofthings.net> >Date: Tue, 2 Apr 2013 15:03:53 +0200 >Subject: [PATCH] 9972 Add/ change some zebra indexes (MARC21) (GRS1) >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$a (Index term uncontrolled) and 655$a (Index term Genre/Form). It also adds the »curriculum«-index to Search.pm. > >9972 Follow-up: DOM version > >A DOM version of the same indexes > >Squashed both patches together. > >Bug 9972 Follow-up > >Follow-up to correct the mix-up of 653 and 655 in the DOM configuration. >--- > C4/Search.pm | 4 ++++ > etc/zebradb/biblios/etc/bib1.att | 2 ++ > etc/zebradb/ccl.properties | 6 ++++++ > .../marc21/biblios/biblio-koha-indexdefs.xml | 16 ++++++++++++++++ > .../marc21/biblios/biblio-zebra-indexdefs.xsl | 16 +++++++++++++++- > etc/zebradb/marc_defs/marc21/biblios/record.abs | 4 +++- > 6 files changed, 46 insertions(+), 2 deletions(-) > >diff --git a/C4/Search.pm b/C4/Search.pm >index 0453b91..7fdf4f1 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,6 +991,7 @@ sub getIndexes{ > 'lc-card', > 'LC-card-number', > 'lcn', >+ 'lex', > 'llength', > 'ln', > 'Local-classification', >diff --git a/etc/zebradb/biblios/etc/bib1.att b/etc/zebradb/biblios/etc/bib1.att >index b2c38c4..43607f6 100644 >--- a/etc/zebradb/biblios/etc/bib1.att >+++ b/etc/zebradb/biblios/etc/bib1.att >@@ -291,3 +291,5 @@ att 9013 arp > att 9520 Item > # Curriculum > att 9658 curriculum >+att 9653 Index-term-uncontrolled >+att 9655 Index-term-genre >diff --git a/etc/zebradb/ccl.properties b/etc/zebradb/ccl.properties >index a5de010..6db5702 100644 >--- a/etc/zebradb/ccl.properties >+++ b/etc/zebradb/ccl.properties >@@ -1173,3 +1173,9 @@ 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 >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..c1bcdbc 100644 >--- a/etc/zebradb/marc_defs/marc21/biblios/biblio-koha-indexdefs.xml >+++ b/etc/zebradb/marc_defs/marc21/biblios/biblio-koha-indexdefs.xml >@@ -547,6 +547,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 +686,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 +711,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..b825f6e 100644 >--- a/etc/zebradb/marc_defs/marc21/biblios/biblio-zebra-indexdefs.xsl >+++ b/etc/zebradb/marc_defs/marc21/biblios/biblio-zebra-indexdefs.xsl >@@ -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..69a586e 100644 >--- a/etc/zebradb/marc_defs/marc21/biblios/record.abs >+++ b/etc/zebradb/marc_defs/marc21/biblios/record.abs >@@ -158,7 +158,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 +188,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.7.2.5
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