Bug 10037: fix item index in UNIMARC DOM indexing

In UNIMARC DOM indexing, "item" index was working only for subfields
of 995 field mapped with specific indexes, and also in index (ex :
$a, $b...). It was 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
   etc/zebradb/marc_defs/unimarc/biblios/biblio-koha-indexdefs.xml and
   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

Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com>
Work as described. No koha-qa errors.

Test

NOTE: default UNIMARC framework don't have 995g,
so I must add it first.

1) Added test string to 995b on some record
2) Reindex and search as indicated, no results
3) cp files to destination
4) reindex
5) search and result ok !

Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
This commit is contained in:
Mathieu Saby 2013-04-17 11:40:06 +02:00 committed by Galen Charlton
parent 2173a97b29
commit 5298140c67
2 changed files with 2 additions and 2 deletions

View file

@ -1639,7 +1639,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">

View file

@ -3079,7 +3079,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() &gt; 1">