[Koha-bugs] [Bug 8252] Error in DOM biblio for UNIMARC (no range for fields 1xx)

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Sep 24 23:07:44 CEST 2013


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

--- Comment #32 from Frédéric Demians <frederic at tamil.fr> ---
It's easy to modify koha-indexdefs-to-zebra.xsl in order to generate
automatically substring extraction from MARC subfields, like for control
field (tag < 010). But your XML and XSL index files are not in
sync.

For example, in biblio-koha-indexdefs.xml, you have:

<index_subfields xmlns="http://www.koha-community.org/schemas/index-defs"
 tag="100" subfields="a" offset="8" length="1">

And in biblio-zebra-indexdefs.xsl, you have:

<z:index name="tpubdate:s">
   <xslo:value-of select="substring(., 8, 1)"/>
</z:index>

Since the XSL is valid, in biblio-koha-indexdefs.xml, you should have
rather:

<index_subfields xmlns="http://www.koha-community.org/schemas/index-defs"
 tag="100" subfields="a" offset="7" length="1">

In the XML file, counting start at 0, but it start at 1 in XSL file. So
you must modify your XML file, and substract 1 to all you offset
arguments.

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


More information about the Koha-bugs mailing list