From 6a2d1136c9a1cc943abca8e4acee95afe883de27 Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Thu, 4 Sep 2014 13:39:58 +0200 Subject: [PATCH] Bug 12872: Exclude limited number of fields from Zebra DOM indexing Content-Type: text/plain; charset=utf-8 This is a pragmatic approach to exclude some fields from the Any index. The index_all routine in koha-indexdefs-to-zebra.xsl is renamed to index_most and includes a choose-when construct to exclude some fields from indexing. This seems a simpler approach than removing this routine and adding Any almost anywhere :) Test plan: Put some uncommon string like jh234gj23 into 952$e somewhere. Copy the xsl file to your Zebra indexing folders. Run the xsl to produce a new biblio-zebra-indexdefs.xsl. Restart Zebra and reindex. Check if you can still find the uncommon word. Now uncomment the line in koha-indexdefs-to-zebra.xsl. Rerun the xsl, restart and reindex. You should not find the uncommon word in the added 952$e. --- etc/zebradb/xsl/koha-indexdefs-to-zebra.xsl | 23 ++++++++++++++++++----- 1 files changed, 18 insertions(+), 5 deletions(-) diff --git a/etc/zebradb/xsl/koha-indexdefs-to-zebra.xsl b/etc/zebradb/xsl/koha-indexdefs-to-zebra.xsl index 1488b1c..83b2b64 100644 --- a/etc/zebradb/xsl/koha-indexdefs-to-zebra.xsl +++ b/etc/zebradb/xsl/koha-indexdefs-to-zebra.xsl @@ -61,7 +61,7 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) - + @@ -73,10 +73,23 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) - - - - + + + + + + + + + + + -- 1.7.7.6