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

--- Comment #8 from mathieu saby <[email protected]> ---
Created attachment 16946
  -->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=16946&action=edit
[PATCH 2/2] Bug 8252: Fix indexing of UNIMARC 1xx for DOM

This patch can be tested after PATCH 1/2


This patch makes the same changes in UNIMARC DOM configuration as PATCH 1/2
made for GRS-1.
posistions of subfields are indexed that way : 
In biblio-koha-indexdefs.xml :
tag="100" subfields="a" offset="17" length="1"
In biblio-zebra-indexdefs.xsl :
xslo:value-of select="substring(., 17, 1)"

I had to edit biblio-zebra-indexdefs.xsl by hand, because
etc/zebdradb/xml/koha-indexdefs-to-zebra.xsl does only support "subtring" in
handle-one-index-control-field template.
It is good for MARC21, but not for UNIMARC : in MARC21, indexing subtrings is
needed for controled field (001-009, with no subfields)
But in UNIMARC it is needed for subfields of 1XX fields.
So if DOM indexing is working with these new files, we may need to change
koha-indexdefs-to-zebra.xsl.

Test plan (not possible in a sandbox) :
1) In a Koha using UNIMARC and DOM indexing
2) apply the patch
3) rebuild zebra
4) check if coded filters in advanced search are usable in OPAC and Staff
interface

M. Saby

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to