Bugzilla – Attachment 17495 Details for
Bug 10037
fix item index in UNIMARC DOM indexing
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
[PATCH] Bug 10037 : item index is broken in UNIMARC DOM indexing
0001-new.patch (text/plain), 2.79 KB, created by
Mathieu Saby
on 2013-04-17 09:49:53 UTC
(
hide
)
Description:
[PATCH] Bug 10037 : item index is broken in UNIMARC DOM indexing
Filename:
MIME Type:
Creator:
Mathieu Saby
Created:
2013-04-17 09:49:53 UTC
Size:
2.79 KB
patch
obsolete
>From b771a91ee8f2935444e77a629bdf590be4eec29f Mon Sep 17 00:00:00 2001 >From: Mathieu Saby <mathieu.saby@univ-rennes2.fr> >Date: Wed, 17 Apr 2013 11:40:06 +0200 >Subject: [PATCH] Bug 10037 : item index is broken in UNIMARC DOM indexing > >In UNIMARC DOM indexing, "item" index is working only for subfields of 995 field mapped with specific indexes, and also in index (ex : $a, $b...) >It is not working for the other subfields (ex : $g), because a comment from record.abs was integrated in DOM config files. >This patch removes the comment. > >To test, in a DOM UNIMARC environment : >1) in a item, write some value "Test10037" in 995$g >2) search for this value in simple search, this way : item=Test10037 => you should have no results >3) apply the patch. if necessary, copy the modified src/etc/zebradb/marc_defs/unimarc/biblios/biblio-koha-indexdefs.xml and src/etc/zebradb/marc_defs/unimarc/biblios/biblio-zebra-indexdefs.xsl into the /etc/... directory in your main Koha directory >4) reindex zebra biblios >5) do the same search as 2) => you should have one result > >--- > .../unimarc/biblios/biblio-koha-indexdefs.xml | 2 +- > .../unimarc/biblios/biblio-zebra-indexdefs.xsl | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) > >diff --git a/etc/zebradb/marc_defs/unimarc/biblios/biblio-koha-indexdefs.xml b/etc/zebradb/marc_defs/unimarc/biblios/biblio-koha-indexdefs.xml >index ceaba51..7c834d9 100644 >--- a/etc/zebradb/marc_defs/unimarc/biblios/biblio-koha-indexdefs.xml >+++ b/etc/zebradb/marc_defs/unimarc/biblios/biblio-koha-indexdefs.xml >@@ -1575,7 +1575,7 @@ > </index_subfields> > <!--record.abs line 343: melm 995 item # just to index every subfield--> > <index_data_field xmlns="http://www.koha-community.org/schemas/index-defs" tag="995"> >- <target_index>item # just to index every subfield:w</target_index> >+ <target_index>item:w</target_index> > </index_data_field> > <!--record.abs line 346: melm 942$0 totalissues:n,totalissues:s--> > <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="942" subfields="0"> >diff --git a/etc/zebradb/marc_defs/unimarc/biblios/biblio-zebra-indexdefs.xsl b/etc/zebradb/marc_defs/unimarc/biblios/biblio-zebra-indexdefs.xsl >index f1e82e3..3c16d50 100644 >--- a/etc/zebradb/marc_defs/unimarc/biblios/biblio-zebra-indexdefs.xsl >+++ b/etc/zebradb/marc_defs/unimarc/biblios/biblio-zebra-indexdefs.xsl >@@ -2868,7 +2868,7 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) > </z:index> > </xslo:template> > <xslo:template mode="index_data_field" match="marc:datafield[@tag='995']"> >- <z:index name="item # just to index every subfield:w"> >+ <z:index name="item:w"> > <xslo:variable name="raw_heading"> > <xslo:for-each select="marc:subfield"> > <xslo:if test="position() > 1"> >-- >1.7.9.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 10037
:
17495
|
21061
|
21940