[Koha-patches] Subject: [PATCH] Fix for ampersand display problem in OPAC search results
Cindy Murdock Ames
cmurdock at ccfls.org
Thu Mar 18 22:01:43 CET 2010
This is a quick fix to XSLTParse4Display to make ampersands display
correctly in OPAC search results.
---
C4/XSLT.pm | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/C4/XSLT.pm b/C4/XSLT.pm
index 8dd7840..b99b994 100644
--- a/C4/XSLT.pm
+++ b/C4/XSLT.pm
@@ -136,6 +136,7 @@ sub XSLTParse4Display {
$sysxml .= "</sysprefs>\n";
$xmlrecord =~ s/\<\/record\>/$itemsxml$sysxml\<\/record\>/;
$xmlrecord =~ s/\& /\&\; /;
+ $xmlrecord=~ s/\&\;amp\; /\&\; /;
my $parser = XML::LibXML->new();
# don't die when you find &, >, etc
--
1.5.6.5
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Cindy Murdock Ames
IT Services Director
Meadville Public Library | CCFLS
http://meadvillelibrary.org | http://ccfls.org
More information about the Koha-patches
mailing list