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/\& /\&amp\; /;
+    $xmlrecord=~ s/\&amp\;amp\; /\&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

_______________________________________________
Koha-patches mailing list
[email protected]
http://lists.koha.org/mailman/listinfo/koha-patches

Reply via email to