From: Jared Camins-Esakov To: dev@bywatersolutions.com Cc: Jared Camins-Esakov Subject: [PATCH] Bug 3326: previous fix broke searches when not using -x Date: Wed, 16 Mar 2011 09:15:58 -0400 Message-Id: <1300281358-1852-1-git-send-email-jcamins@bywatersolutions.com> X-Mailer: git-send-email 1.7.2.3 X-Original-Sender: jcamins@bywatersolutions.com X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.216.42 is neither permitted nor denied by best guess record for domain of jcamins@bywatersolutions.com) smtp.mail=jcamins@bywatersolutions.com Precedence: list Mailing-list: list dev@bywatersolutions.com; contact dev+owners@bywatersolutions.com List-ID: X-Google-Group-Id: 274270250429 List-Help: , Content-Type: text/plain; charset="utf-8" This fix ensures that searches will still work when -x is not used when reindexing Zebra. --- C4/XSLT.pm | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/C4/XSLT.pm b/C4/XSLT.pm index d602688..2d1facc 100644 --- a/C4/XSLT.pm +++ b/C4/XSLT.pm @@ -140,7 +140,7 @@ sub XSLTParse4Display { $sysxml .= "\n"; $xmlrecord =~ s/\<\/record\>/$itemsxml$sysxml\<\/record\>/; if ($fixamps) { # We need to correct the ampersand entities that Zebra outputs - $xmlrecord =~ s/\&/\&/g; + $xmlrecord =~ s/\&amp;/\&/g; } $xmlrecord =~ s/\& /\&\; /; $xmlrecord =~ s/\&\;amp\; /\&\; /; -- 1.7.2.3