Bugzilla – Attachment 35989 Details for
Bug 13725
Wrong zebra index type for ln in 008/35-37
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Proposed patch
0001-Bug-13725-Wrong-zebra-index-type-for-ln-in-008-35-37.patch (text/plain), 2.49 KB, created by
Janusz Kaczmarek
on 2015-02-18 12:53:37 UTC
(
hide
)
Description:
Proposed patch
Filename:
MIME Type:
Creator:
Janusz Kaczmarek
Created:
2015-02-18 12:53:37 UTC
Size:
2.49 KB
patch
obsolete
>From 1094d45bb93322568db1296b730374f401f36786 Mon Sep 17 00:00:00 2001 >From: Janusz Kaczmarek <januszop@gmail.com> >Date: Mon, 16 Feb 2015 18:20:30 +0100 >Subject: [PATCH] Bug 13725 - Wrong zebra index type for ln in 008/35-37 >Content-Type: text/plain; charset="utf-8" > >Index type for ln index (language) definded over 008/35-57(in MARC21 >biblio dom configuration) is wrongly set to 'n' instead of 'w' (as in >041). As a result language limit in advanced search does not take into >account language information form 008 and thus does not work as >expected. > >Test plan: >1) in a biblio record of your choice set an uncommon language, e.g. >'hun' (for Hungarian), in 008/35-37 (but not in 041!) >2) reindex zebra (or wait for cron job to reindex) >3) try to find that biblio record with limit set on language = >'Hungarian' in advanced search >4) you should not be able to find that biblio record >5) apply the patch >6) reindex zebra >7) you should now be able to find this biblio record when setting limit >on language >--- > etc/zebradb/marc_defs/marc21/biblios/biblio-koha-indexdefs.xml | 2 +- > etc/zebradb/marc_defs/marc21/biblios/biblio-zebra-indexdefs.xsl | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) > >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 c7dd166..3e46bbd 100644 >--- a/etc/zebradb/marc_defs/marc21/biblios/biblio-koha-indexdefs.xml >+++ b/etc/zebradb/marc_defs/marc21/biblios/biblio-koha-indexdefs.xml >@@ -77,7 +77,7 @@ > <target_index>bio:w</target_index> > </index_control_field> > <index_control_field tag="008" offset="35" length="3"> >- <target_index>ln:n</target_index> >+ <target_index>ln:w</target_index> > </index_control_field> > <index_control_field tag="008" offset="24" length="4"> > <target_index>ctype: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 db4c6f2..a0f68f1 100644 >--- a/etc/zebradb/marc_defs/marc21/biblios/biblio-zebra-indexdefs.xsl >+++ b/etc/zebradb/marc_defs/marc21/biblios/biblio-zebra-indexdefs.xsl >@@ -122,7 +122,7 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) > <z:index name="bio:w"> > <xslo:value-of select="substring(., 35, 1)"/> > </z:index> >- <z:index name="ln:n"> >+ <z:index name="ln:w"> > <xslo:value-of select="substring(., 36, 3)"/> > </z:index> > <z:index name="ctype:w"> >-- >1.7.10.4 >
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 13725
: 35989