From 4877d2c27c8656dad1c26f7ddd65612b5338d5a6 Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Mon, 21 Sep 2015 12:46:02 -0300 Subject: [PATCH] Bug 14217: (QA followup) avoid repeating code This patch refactors the handle-one-index-subfields template to call a new template handle-one-index-subfields-helper instead of repeating the code for subfields indexing (index-subfields) which gets wrapped inside the new condition test if needed. This avoids code duplication, with the same results. Signed-off-by: Tomas Cohen Arazi --- etc/zebradb/xsl/koha-indexdefs-to-zebra.xsl | 101 +++++++++++----------------- 1 file changed, 39 insertions(+), 62 deletions(-) diff --git a/etc/zebradb/xsl/koha-indexdefs-to-zebra.xsl b/etc/zebradb/xsl/koha-indexdefs-to-zebra.xsl index 9573d85..fc56dac 100644 --- a/etc/zebradb/xsl/koha-indexdefs-to-zebra.xsl +++ b/etc/zebradb/xsl/koha-indexdefs-to-zebra.xsl @@ -257,81 +257,58 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) - - - - - - - - - - contains(' - - ', @code) - - - - - - - - substring(., - - , - - ) - - - . - - - - - - - + - - - - contains(' - - ', @code) - - - - - - - - substring(., - - , - - ) - - - . - - - - - - - + + + + + + + + + + + + contains(' + + ', @code) + + + + + + + + substring(., + + , + + ) + + + . + + + + + + + + + -- 2.5.2