Bugzilla – Attachment 49159 Details for
Bug 15263
XSLT display fetches sysprefs for every result processed
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 15263: Bug 15263: (follow-up 2) XSLT display fetches sysprefs for every result processed
Bug-15263-Bug-15263-follow-up-2-XSLT-display-fetch.patch (text/plain), 1.06 KB, created by
Jonathan Druart
on 2016-03-15 09:09:38 UTC
(
hide
)
Description:
Bug 15263: Bug 15263: (follow-up 2) XSLT display fetches sysprefs for every result processed
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2016-03-15 09:09:38 UTC
Size:
1.06 KB
patch
obsolete
>From 27e127de0cdc2a9c41b76a354d97a5b545f93350 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Tue, 15 Mar 2016 09:08:39 +0000 >Subject: [PATCH] Bug 15263: Bug 15263: (follow-up 2) XSLT display fetches > sysprefs for every result processed > >Don't retrieve prefs if we won't need them >--- > C4/Search.pm | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > >diff --git a/C4/Search.pm b/C4/Search.pm >index ea0d01f..8a8f5d4 100644 >--- a/C4/Search.pm >+++ b/C4/Search.pm >@@ -1868,8 +1868,8 @@ sub searchResults { > my $interface = $search_context eq 'opac' ? 'OPAC' : ''; > my $xslsyspref = $interface . "XSLTResultsDisplay"; > my $xslfile = C4::Context->preference($xslsyspref); >- my $lang = C4::Languages::getlanguage(); >- my $sysxml = C4::XSLT::get_xslt_sysprefs(); >+ my $lang = $xslfile ? C4::Languages::getlanguage() : undef; >+ my $sysxml = $xslfile ? C4::XSLT::get_xslt_sysprefs() : undef; > > # loop through all of the records we've retrieved > for ( my $i = $offset ; $i <= $times - 1 ; $i++ ) { >-- >2.7.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 15263
:
45221
|
48962
|
48963
|
49031
|
49159
|
49502
|
49503
|
49504
|
49505
|
50474
|
50506
|
50507
|
50508
|
50509
|
50510
|
50511