[Koha-patches] [PATCH] [SIGNED-OFF] Bug 3326: Staff results still displayed &

Nicole C. Engard nengard at bywatersolutions.com
Sat Mar 26 10:58:54 CET 2011


From: Jared Camins-Esakov <jcamins at bywatersolutions.com>

In certain circumstances, ampersands would not be displayed properly in the
Staff client search results. This patch fixes that by ensuring that all the
doubled ampersands that Zebra inserts in XML indexing mode are replaced by the
correct single ampersand entity.

Signed-off-by: Nicole C. Engard <nengard at bywatersolutions.com>
---
 C4/Output.pm |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/C4/Output.pm b/C4/Output.pm
index 9f5ed5e..a6cb984 100644
--- a/C4/Output.pm
+++ b/C4/Output.pm
@@ -474,7 +474,7 @@ sub output_with_http_headers($$$$;$) {
 
 sub output_html_with_http_headers ($$$;$) {
     my ( $query, $cookie, $data, $status ) = @_;
-    $data =~ s/\&amp\;amp\; /\&amp\; /;
+    $data =~ s/\&amp\;amp\; /\&amp\; /g;
     output_with_http_headers( $query, $cookie, $data, 'html', $status );
 }
 
-- 
1.7.2.3



More information about the Koha-patches mailing list