Bug 7535: ampersands not showing properly in non-XSLT OPAC
authorD Ruth Bavousett <ruth@bywatersolutions.com>
Mon, 13 Feb 2012 15:25:40 +0000 (10:25 -0500)
committerPaul Poulain <paul.poulain@biblibre.com>
Tue, 21 Feb 2012 14:45:11 +0000 (15:45 +0100)
Jared's fix for Bug 3326 fixed this in the staff client, but not the OPAC; moving this one line fixes it
both places.

Signed-off-by: Liz Rea <wizzyrea@gmail.com>
This can be replicated by indexing with -x
OPACXSLTResults must be set to "normally"
Reproduced original bug with rebuild-zebra.pl -x -b -w -r -v -v
Patch corrects the issue, does not change intranet behavior.

Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
C4/Output.pm

index 75ced46..9087075 100644 (file)
@@ -297,12 +297,12 @@ sub output_with_http_headers($$$$;$) {
  
 #    utf8::encode($data) if utf8::is_utf8($data);
 
+    $data =~ s/\&amp\;amp\; /\&amp\; /g;
     print $query->header($options), $data;
 }
 
 sub output_html_with_http_headers ($$$;$) {
     my ( $query, $cookie, $data, $status ) = @_;
-    $data =~ s/\&amp\;amp\; /\&amp\; /g;
     output_with_http_headers( $query, $cookie, $data, 'html', $status );
 }