[Koha-patches] [PATCH 3/3] Bug 6919/4032:followup to fix compatibility between 6919 and 4032

Stéphane Delaune stephane.delaune at biblibre.com
Fri Feb 3 17:05:46 CET 2012


---
 C4/Search.pm |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/C4/Search.pm b/C4/Search.pm
index 32f23c0..0096e69 100644
--- a/C4/Search.pm
+++ b/C4/Search.pm
@@ -1781,8 +1781,7 @@ sub searchResults {
         $debug && warn $marcrecord->as_formatted;
         my $interface = $search_context eq 'opac' ? 'OPAC' : '';
         if (!$scan && C4::Context->preference($interface . "XSLTResultsDisplay")) {
-            $oldbiblio->{XSLTResultsRecord} = XSLTParse4Display($oldbiblio->{biblionumber}, $marcrecord, 'Results',
-                                                                $search_context, 1);
+            $oldbiblio->{XSLTResultsRecord} = XSLTParse4Display($oldbiblio->{biblionumber}, $marcrecord, C4::Context->preference($interface . "XSLTResultsDisplay"), 1);
 	    # the last parameter tells Koha to clean up the problematic ampersand entities that Zebra outputs
         }
 
-- 
1.7.0.4



More information about the Koha-patches mailing list