From f9addcc98b3e87ba67ac35d01520ef3a0665c6b9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fr=C3=A9d=C3=A9ric=20Demians?= Date: Tue, 24 Sep 2013 23:14:50 +0200 Subject: [PATCH] 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: tpubdate:s Signed-off-by:Mathieu Saby 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 Signed-off-by: Galen Charlton --- etc/zebradb/xsl/koha-indexdefs-to-zebra.xsl | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/etc/zebradb/xsl/koha-indexdefs-to-zebra.xsl b/etc/zebradb/xsl/koha-indexdefs-to-zebra.xsl index 75e2a86d50..1488b1c3f0 100644 --- a/etc/zebradb/xsl/koha-indexdefs-to-zebra.xsl +++ b/etc/zebradb/xsl/koha-indexdefs-to-zebra.xsl @@ -253,6 +253,8 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) + + @@ -265,7 +267,22 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) - + + + + + substring(., + + , + + ) + + + . + + + + -- 2.39.5