]> git.koha-community.org Git - koha.git/commit
Bug 8852: DOM XSL now handles subfield substring extraction
authorFrédéric Demians <f.demians@tamil.fr>
Tue, 24 Sep 2013 21:14:50 +0000 (23:14 +0200)
committerGalen Charlton <gmc@esilibrary.com>
Thu, 10 Oct 2013 15:19:20 +0000 (15:19 +0000)
commitf9addcc98b3e87ba67ac35d01520ef3a0665c6b9
tree651d000572ec4566a75a744bd0943dd6374e4cdf
parent43809d283558f34fa3164708787a94a5c0fbc419
Bug 8852: DOM XSL now handles subfield substring extraction

This patch modify koha-indexdefs-to-zebra.xsl in order to add the
ability to populate indexes with subfield substring.

It's now possible to understand such construction as:

<index_subfields xmlns="http://..." tag="100" subfields="a" offset="7" length="1">
  <target_index>tpubdate:s</target_index>
</index_subfields>

Signed-off-by:Mathieu Saby <mathieu.saby@univ-rennes2.fr>

I applied the patch and ran
  xsltproc koha-indexdefs-to-zebra.xsl ../marc_defs/unimarc/biblios/biblio-koha-indexdefs.xml \
     > ../marc_defs/unimarc/biblios/biblio-zebra-indexdefs.xsl
I looked at the generated file. It looks nice.
Then I copied it file in my INSTALLDIR/etc/zebra.... and reindexed my
records with rebuild_zebra.pl
I made some searches on coded position index and non coded position
indexes, everything works.

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

Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
etc/zebradb/xsl/koha-indexdefs-to-zebra.xsl