[Koha-patches] [PATCH] Bug 6919 - Follow up - call to XSLTParse4Display is now made twice in Search.pm
alex.arnaud at biblibre.com
alex.arnaud at biblibre.com
Mon Feb 27 11:49:40 CET 2012
From: Alex Arnaud <alex.arnaud at biblibre.com>
---
C4/Search.pm | 19 +------------------
1 files changed, 1 insertions(+), 18 deletions(-)
diff --git a/C4/Search.pm b/C4/Search.pm
index 77a2aac..60635a3 100644
--- a/C4/Search.pm
+++ b/C4/Search.pm
@@ -1783,7 +1783,7 @@ sub searchResults {
my $interface = $search_context eq 'opac' ? 'OPAC' : '';
if (!$scan && C4::Context->preference($interface . "XSLTResultsDisplay")) {
$oldbiblio->{XSLTResultsRecord} = XSLTParse4Display($oldbiblio->{biblionumber}, $marcrecord, 'Results',
- $search_context, 1);
+ $search_context, 1, \@hiddenitems);
# the last parameter tells Koha to clean up the problematic ampersand entities that Zebra outputs
}
@@ -1842,23 +1842,6 @@ sub searchResults {
$oldbiblio->{'alternateholdings_count'} = $alternateholdingscount;
}
- # XSLT processing of some stuff
- if (!$scan && $search_context eq 'opac' && C4::Context->preference("OPACXSLTResultsDisplay")) {
- SetUTF8Flag($marcrecord);
- $debug && warn $marcrecord->as_formatted;
- # FIXME note that XSLTResultsDisplay (use of XSLT to format staff interface bib search results)
- # is not implemented yet
- $oldbiblio->{XSLTResultsRecord}
- = XSLTParse4Display($oldbiblio->{biblionumber},
- $marcrecord,
- 'Results',
- $search_context,
- 1, # clean up the problematic ampersand entities that Zebra outputs
- \@hiddenitems
- );
-
- }
-
push( @newresults, $oldbiblio );
}
--
1.7.0.4
More information about the Koha-patches
mailing list