[Koha-bugs] [Bug 10037] fix item index in UNIMARC DOM indexing

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Oct 10 12:24:48 CEST 2013


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=10037

Jonathan Druart <jonathan.druart at biblibre.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #21061|0                           |1
        is obsolete|                            |

--- Comment #7 from Jonathan Druart <jonathan.druart at biblibre.com> ---
Created attachment 21940
  -->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=21940&action=edit
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

Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel at 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 at biblibre.com>

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list