Bugzilla – Attachment 48398 Details for
Bug 4941
Remove singleBranchMode system preference
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 4941 [QA Followup] - Retain singleBranchMode in list of sysprefs passed to XSLT
Bug-4941-QA-Followup---Retain-singleBranchMode-in-.patch (text/plain), 1.14 KB, created by
Kyle M Hall (khall)
on 2016-02-26 12:25:35 UTC
(
hide
)
Description:
Bug 4941 [QA Followup] - Retain singleBranchMode in list of sysprefs passed to XSLT
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2016-02-26 12:25:35 UTC
Size:
1.14 KB
patch
obsolete
>From a6dc6a28f32baa7c18074a3fff7199495b976567 Mon Sep 17 00:00:00 2001 >From: Kyle M Hall <kyle@bywatersolutions.com> >Date: Fri, 26 Feb 2016 12:24:04 +0000 >Subject: [PATCH] Bug 4941 [QA Followup] - Retain singleBranchMode in list of > sysprefs passed to XSLT > >--- > C4/XSLT.pm | 7 +++++++ > 1 file changed, 7 insertions(+) > >diff --git a/C4/XSLT.pm b/C4/XSLT.pm >index d7658a2..5622e5f 100644 >--- a/C4/XSLT.pm >+++ b/C4/XSLT.pm >@@ -32,6 +32,7 @@ use C4::Biblio; > use C4::Circulation; > use C4::Reserves; > use Koha::XSLT_Handler; >+use Koha::Libraries; > > use Encode; > >@@ -212,6 +213,12 @@ sub XSLTParse4Display { > next unless defined($sp); > $sysxml .= "<syspref name=\"$syspref\">$sp</syspref>\n"; > } >+ >+ # singleBranchMode was a system preference, but no longer is >+ # we can retain it here for compatibility >+ my $singleBranchMode = Koha::Libraries->search->count == 1; >+ $sysxml .= "<syspref name=\"singleBranchMode\">$singleBranchMode</syspref>\n"; >+ > $sysxml .= "</sysprefs>\n"; > $xmlrecord =~ s/\<\/record\>/$itemsxml$sysxml\<\/record\>/; > if ($fixamps) { # We need to correct the HTML entities that Zebra outputs >-- >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 4941
:
46311
|
46312
|
46313
|
46755
|
46756
|
46757
|
47199
|
47200
|
47201
|
47202
|
48394
|
48395
|
48396
|
48397
| 48398