[Koha-patches] [PATCH] Follow up for Bug 3326: previous fix broke searches when not using -x

y at ptfs.com y at ptfs.com
Wed Mar 16 14:47:47 CET 2011


From: Jared Camins-Esakov <jcamins at bywatersolutions.com>

This fix ensures that searches will still work when -x is not used when
reindexing Zebra.

Signed-off-by: Nicole C. Engard <nengard at bywatersolutions.com>
Signed-off-by: Jane Wagner <jwagner at ptfs.com>
---
 C4/XSLT.pm |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/C4/XSLT.pm b/C4/XSLT.pm
index d602688..2d1facc 100644
--- a/C4/XSLT.pm
+++ b/C4/XSLT.pm
@@ -140,7 +140,7 @@ sub XSLTParse4Display {
     $sysxml .= "</sysprefs>\n";
     $xmlrecord =~ s/\<\/record\>/$itemsxml$sysxml\<\/record\>/;
     if ($fixamps) { # We need to correct the ampersand entities that Zebra outputs
-        $xmlrecord =~ s/\&amp;/\&/g;
+        $xmlrecord =~ s/\&amp;amp;/\&amp;/g;
     }
     $xmlrecord =~ s/\& /\&amp\; /;
     $xmlrecord =~ s/\&amp\;amp\; /\&amp\; /;
-- 
1.5.6.5



More information about the Koha-patches mailing list