[Koha-patches] [PATCH] [SIGNED-OFF] Follow up for Bug 3326: previous fix broke searches when not using -x
Nicole C. Engard
nengard at bywatersolutions.com
Tue Mar 15 15:09:43 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>
---
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/\&/\&/g;
+ $xmlrecord =~ s/\&amp;/\&/g;
}
$xmlrecord =~ s/\& /\&\; /;
$xmlrecord =~ s/\&\;amp\; /\&\; /;
--
1.7.2.3
More information about the Koha-patches
mailing list