Bugzilla – Attachment 62353 Details for
Bug 18453
"Export" column is not hidden when ExportCircHistory is off
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 18453: Syspref ExportCircHistory is broken
Bug-18453-Syspref-ExportCircHistory-is-broken.patch (text/plain), 3.57 KB, created by
Marc Véron
on 2017-04-19 07:10:16 UTC
(
hide
)
Description:
Bug 18453: Syspref ExportCircHistory is broken
Filename:
MIME Type:
Creator:
Marc Véron
Created:
2017-04-19 07:10:16 UTC
Size:
3.57 KB
patch
obsolete
>From 3a9b89a472e959258e6e0947b5fb25cde2215fc0 Mon Sep 17 00:00:00 2001 >From: =?UTF-8?q?Marc=20V=C3=A9ron?= <veron@veron.ch> >Date: Wed, 19 Apr 2017 09:00:49 +0200 >Subject: [PATCH] Bug 18453: Syspref ExportCircHistory is broken > >The checkouts table on a patron's checkout and detail screen always show >a column 'Export' and the 'Export checkouts using format' fields/buttons. >They should be hidden if syspref 'ExportCircHistory' is set to 'Don't show'. > >This patch brings some variables in circulation.tt and in moremember.tt in >sync. They are used by the checkouts table (checkouts-table.inc). > >To test: >- Apply patch >- Verify that visibility of export fields in checkouts table depends on >syspref 'ExportCircHistory' (for both moremember.pl and circulation.pl) >- Verify that other functionality behaves as expected on both screens. >--- > koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt | 2 +- > koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt | 11 ++++++----- > 2 files changed, 7 insertions(+), 6 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt >index 4e09863..35dec10 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt >@@ -35,7 +35,7 @@ var interface = "[% interface %]"; > var theme = "[% theme %]"; > var borrowernumber = "[% borrowernumber %]"; > var branchcode = "[% branch %]"; >-var exports_enabled = "[% Koha.Preference('ExportCircHistory') %]"; >+var exports_enabled = [% Koha.Preference('ExportCircHistory') %]; > var AllowRenewalLimitOverride = [% (CAN_user_circulate_override_renewals && Koha.Preference('AllowRenewalLimitOverride') )? 1: 0 %]; > var AllowCirculate = [% (CAN_user_circulate_circulate_remaining_permissions)? 1 : 0 %]; > var script = "circulation"; >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt >index d5f61d7..75eb24c 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt >@@ -27,14 +27,15 @@ > <script type="text/JavaScript"> > //<![CDATA[ > /* Set some variable needed in circulation.js */ >+var MSG_DT_LOADING_RECORDS = _("Loading... you may continue scanning."); > var interface = "[% interface %]"; > var theme = "[% theme %]"; > var borrowernumber = "[% borrowernumber %]"; >-var branchcode = "[% Branches.GetLoggedInBranchcode() %]"; >-var exports_enabled = "[% Koha.Preference('ExportCircHistory') %]"; >-var AllowCirculate = [% (CAN_user_circulate_circulate_remaining_permissions)? 1 : 0 %] >+var branchcode = "[% branch %]"; >+var exports_enabled = [% Koha.Preference('ExportCircHistory') %]; > var AllowRenewalLimitOverride = [% (CAN_user_circulate_override_renewals && Koha.Preference('AllowRenewalLimitOverride') )? 1: 0 %]; >-var script = "moremember"; >+var AllowCirculate = [% (CAN_user_circulate_circulate_remaining_permissions)? 1 : 0 %]; >+var script = "circulation"; > var relatives_borrowernumbers = new Array(); > [% FOREACH b IN relatives_borrowernumbers %] > relatives_borrowernumbers.push("[% b %]"); >@@ -42,7 +43,7 @@ var relatives_borrowernumbers = new Array(); > > var MSG_EXPORT_SELECT_CHECKOUTS = _("You must select checkout(s) to export"); > >-columns_settings = [% ColumnsSettings.GetColumns( 'members', 'moremember', 'issues-table', 'json' ) %] >+columns_settings = [% ColumnsSettings.GetColumns( 'circ', 'circulation', 'issues-table', 'json' ) %] > > $(document).ready(function() { > $('#finesholdsissues').tabs({ >-- >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 18453
:
62353
|
62362
|
62393
|
62394
|
62399
|
62401
|
62402
|
62694
|
62695