From 77141dab35e07d488efb326c9694c8d4d3f914fe Mon Sep 17 00:00:00 2001 From: David Birmingham Date: Wed, 2 Dec 2009 16:23:07 -0500 Subject: [PATCH] Translated & to & in xmlrecord If the homebranch tag had an & in its name, then the XML wouldn't parse correctly. As a result, if XSLT was turned on, "No copies available" would always be displayed. --- C4/XSLT.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/C4/XSLT.pm b/C4/XSLT.pm index fb427c326e..8a67e04090 100644 --- a/C4/XSLT.pm +++ b/C4/XSLT.pm @@ -133,6 +133,7 @@ sub XSLTParse4Display { } $sysxml .= "\n"; $xmlrecord =~ s/\<\/record\>/$itemsxml$sysxml\<\/record\>/; + $xmlrecord =~ s/\& /\&\; /; my $parser = XML::LibXML->new(); # don't die when you find &, >, etc -- 2.39.5