Bugzilla – Attachment 50509 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.17 KB, created by
Kyle M Hall (khall)
on 2016-04-21 13:42:37 UTC
(
hide
)
Description:
Bug 15263: Bug 15263: (follow-up 2) XSLT display fetches sysprefs for every result processed
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2016-04-21 13:42:37 UTC
Size:
1.17 KB
patch
obsolete
>From a730d928ecf4e2d43f4190bbc4275e30098e9011 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 > >Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> > >Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> >--- > C4/Search.pm | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > >diff --git a/C4/Search.pm b/C4/Search.pm >index e6b5a88..3b7193f 100644 >--- a/C4/Search.pm >+++ b/C4/Search.pm >@@ -1876,8 +1876,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.1.4
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