http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=8252
--- Comment #32 from Frédéric Demians <[email protected]> --- 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. _______________________________________________ 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/
