Bugzilla – Attachment 126146 Details for
Bug 28859
Table Settings should control Checked out by field in Checkout history
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 28859: Correctly handle 'Checked out by' visibility
Bug-28859-Correctly-handle-Checked-out-by-visibili.patch (text/plain), 2.57 KB, created by
Jonathan Druart
on 2021-10-13 08:28:40 UTC
(
hide
)
Description:
Bug 28859: Correctly handle 'Checked out by' visibility
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2021-10-13 08:28:40 UTC
Size:
2.57 KB
patch
obsolete
>From 5a7ad78e59c779aee4311f9c31c9e3eb822e6651 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Wed, 13 Oct 2021 10:25:37 +0200 >Subject: [PATCH] Bug 28859: Correctly handle 'Checked out by' visibility > >We must have the column in the table and let DT deal with the >visibility. > >This patch hides the "Checked out by" column by default if >RecordStaffUserOnCheckout is off, but the DT column settings is aware of >its existence and the end user can still display the column. > >IMO that's the most optimal situation considering both maintenance and ergonomic. >--- > .../prog/en/modules/catalogue/issuehistory.tt | 8 ++------ > 1 file changed, 2 insertions(+), 6 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/issuehistory.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/issuehistory.tt >index ca7cf67acbc..53c0121d529 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/issuehistory.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/issuehistory.tt >@@ -56,6 +56,8 @@ > <th>Checked out from</th> > [% IF Koha.Preference('RecordStaffUserOnCheckout') %] > <th>Checked out by</th> >+ [% ELSE %] >+ <th class="NoVisible">Checked out by</th> > [% END %] > <th>Renewed</th> > <th>Checkout on</th> >@@ -83,13 +85,11 @@ > [% ELSE %] > > [% END %]</td> >- [% IF Koha.Preference('RecordStaffUserOnCheckout') %] > <td>[% IF checkout.issuer_id %] > <a href="/cgi-bin/koha/circ/circulation.pl?borrowernumber=[% checkout.issuer_id | uri %]"> > [% INCLUDE 'patron-title.inc' patron=checkout.issuer %] > </a> > [% END %]</td> >- [% END %] > <td>[% IF checkout.renewals %] > Yes[% IF checkout.lastreneweddate %], <small>last on: [% checkout.lastreneweddate |$KohaDates with_hours => 1 %]</small> > [% END %] >@@ -138,11 +138,7 @@ > [% END %] > var table = KohaTable("table_issues", { > "sDom": 'C<"top pager"ilpfB><"#filter_c">tr<"bottom pager"ip>', >- [% IF Koha.Preference('RecordStaffUserOnCheckout') %] > "aaSorting": [[ 5, "desc" ]], >- [% ELSE %] >- "aaSorting": [[ 4, "desc" ]], >- [% END %] > "sPaginationType": "full_numbers" > }, columns_settings); > }); >-- >2.25.1
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 28859
:
124986
|
124990
|
126146
|
127030
|
127031