Fix for ampersand display problem in OPAC search results
authorCindy Murdock Ames <cmurdock@ccfls.org>
Thu, 18 Mar 2010 21:01:43 +0000 (17:01 -0400)
committerGalen Charlton <gmcharlt@gmail.com>
Wed, 7 Apr 2010 15:12:34 +0000 (11:12 -0400)
This is a quick fix to XSLTParse4Display to make ampersands display
correctly in OPAC search results.

Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
C4/XSLT.pm

index 0bfa6db..ec5d532 100644 (file)
@@ -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