Bugzilla – Attachment 49504 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.12 KB, created by
Tomás Cohen Arazi (tcohen)
on 2016-03-24 02:56:53 UTC
(
hide
)
Description:
Bug 15263: Bug 15263: (follow-up 2) XSLT display fetches sysprefs for every result processed
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi (tcohen)
Created:
2016-03-24 02:56:53 UTC
Size:
1.12 KB
patch
obsolete
>From bfd938794326fb08953a82b326fcca244929594d 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> >--- > 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.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