[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
Wed Sep 25 10:01:59 CEST 2013


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

--- Comment #37 from mathieu saby <mathieu.saby at univ-rennes2.fr> ---
I applied all my patches, then yours, and I run xsltproc.
I make a diff between the resulting zebra xsl files

A lot of changes like this one :
-          <xslo:value-of select="substring(., 8, 1)"/>
+          <xslo:value-of select="substring(., 9, 1)"/>

A new template called :
+      <xslo:apply-templates mode="index_all"/>
[...]
-  <xslo:template match="*">
+  <xslo:template mode="index_all" match="text()">


So, first point, your patch is working well ;-)

For the positions : 
Ex : pubdate
In the manual (which starts counting position from 0) : position 8, length 1
http://multimedia.bnf.fr/unimarcb_trad/B100-6-2010.pdf
So I suppose it must be position 8 in koha-xml file, and position 9 in
zebra-xsl file.
That's what we get.

I copied the resulting koha-xsl file into my
INSTALLDIR/etc/zebradb/marc_defs/unimarc/biblios/
Then I ran rebuild_zebra.pl -x -b -v -r
I did some advanced searches with coded fields, it seems to work.
Of course, I won't sign off by myself...

So, for the moment, I sign off your patch.

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


More information about the Koha-bugs mailing list