From fae8cdbf97dbe9c91504e11a293dca42cd4f9f6b Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Wed, 10 Feb 2016 00:54:26 +0000 Subject: [PATCH] Bug 14753 - Use columns configuration for checkins table This patch adds the ability to configrue the visible columns on the check in screen. To test with both patches: 1 - Check in an item 2 - Note there is no 'Date acquired' column 3 - Apply patches 4 - Note there is still no 'Date acquired' column 5 - Note that there is now a "Show / hide columns" button 6 - Verify that you can check the box and view the 'Date acquired' column 7 - Verify that showing/hiding columns works (it will not carry over between items due to page reload) 8 - Verify that changes from the 'Configure columns' section of Administration hold between checkins Sponsored by: North Central Regional Library (ncrl.org) --- admin/columns_settings.yml | 27 ++++++++++++++++++++++ .../intranet-tmpl/prog/en/modules/circ/returns.tt | 15 ++++++++++-- 2 files changed, 40 insertions(+), 2 deletions(-) diff --git a/admin/columns_settings.yml b/admin/columns_settings.yml index 9d1e38f..1a3bd12 100644 --- a/admin/columns_settings.yml +++ b/admin/columns_settings.yml @@ -317,6 +317,33 @@ modules: cannot_be_toggled: 1 cannot_be_modified: 1 + checkedintable: + - + columnname: due_date + - + columnname: title + - + columnname: author + - + columnname: barcode + - + columnname: homelibrary + - + columnname: holdinglibrary + - + columnname: location + - + columnname: itemcallnumber + - + columnname: dateaccessioned + is_hidden: 1 + - + columnname: itype + - + columnname: borrower + - + columnname: itemnote + view_holdsqueue: holds-table: - diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt index 3068a47..ebee61d 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt @@ -4,11 +4,14 @@ [% USE Borrowers %] [% USE ItemTypes %] [% USE AuthorisedValues %] +[% USE ColumnsSettings %] [% INCLUDE 'doc-head-open.inc' %] Koha › Circulation › Check in [% title |html %] + [% INCLUDE 'doc-head-close.inc' %] - +[% INCLUDE 'datatables.inc' %] +[% INCLUDE 'columns_settings.inc' %] [% INCLUDE 'calendar.inc' %] [% INCLUDE 'timepicker.inc' %] @@ -25,6 +28,14 @@ $(document).ready(function () { Dopop('hold-transfer-slip.pl?borrowernumber=[% borrowernumber %]&biblionumber=[% biblionumber %]'); [% END %] + var columns_settings = [% ColumnsSettings.GetColumns( 'circ', 'circulation', 'checkedintable', 'json' ) %] + var returns_table = KohaTable("#checkedintable", { + "bFilter":false, + "bPaginate":false, + "bInfo":false, + "bSort":false + }, columns_settings); + $("#return_date_override").datetimepicker({ onClose: function(dateText, inst) { $("#barcode").focus(); }, defaultDate: -1, @@ -590,7 +601,7 @@ $(document).ready(function () { [% IF ( riloop ) %]

Checked-in items

- + [% FOREACH riloo IN riloop %] -- 2.1.4
Due dateTitleAuthorBarcodeHome libraryHolding libraryShelving locationCall numberDate acquiredTypePatronNote
Due dateTitleAuthorBarcodeHome libraryHolding libraryShelving locationCall numberDate acquiredTypePatronNote