[Koha-bugs] [Bug 3326] xml entity refs display incorrectly in results page if exported and indexed as xml

bugzilla-daemon at kohaorg.ec2.liblime.com bugzilla-daemon at kohaorg.ec2.liblime.com
Thu Mar 18 22:03:15 CET 2010


http://bugs.koha.org/cgi-bin/bugzilla3/show_bug.cgi?id=3326





--- Comment #2 from Cindy Murdock <cmurdock at ccfls.org>  2010-03-18 21:03:15 ---
This fixes it in the OPAC.  Emailed to patches list.

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


-- 
Configure bugmail: http://bugs.koha.org/cgi-bin/bugzilla3/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the Koha-bugs mailing list