Bug 13492: Add the column configuration for the checkouts table - morember.pl

Test plan:
1/ Verify that you can show/hide columns on the checkouts table (moremember.pl).
2/ Play with the column configuration admin page (admin/columns_settings.pl),
and confirm the behavior is correct (depends on what you have selected).

Amended patch: replace 'un' and 'deux' with 'sort_order' and
'todays_or_previous_checkouts' in the yml file.

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
This commit is contained in:
Jonathan Druart 2014-12-23 11:45:11 +01:00 committed by Tomas Cohen Arazi
parent 8c324dd2a0
commit 06cde076c7
2 changed files with 86 additions and 36 deletions

View File

@ -111,48 +111,94 @@ modules:
cannot_be_toggled: 1
cannot_be_modified: 1
reports:
lostitems:
lostitems-table:
-
columnname: title
cannot_be_toggled: 1
cannot_be_modified: 1
-
columnname: author
-
columnname: lostcode
-
columnname: barcode
-
columnname: callnumber
-
columnname: datelastseen
-
columnname: price
-
columnname: replacementprice
-
columnname: library
-
columnname: itemtype
-
columnname: current_location
-
columnname: location
-
columnname: notes
circ:
circulation:
moremember:
issues-table:
-
columnname: un
columnname: sort_order
cannot_be_toggled: 1
cannot_be_modified: 1
is_hidden: 1
-
columnname: deux
columnname: todays_or_previous_checkouts
cannot_be_toggled: 1
cannot_be_modified: 1
is_hidden: 1
-
columnname: due_date_unformatted
cannot_be_toggled: 1
cannot_be_modified: 1
is_hidden: 1
-
columnname: due_date
-
columnname: title
-
columnname: item_type
-
columnname: checkout_on
-
columnname: checkout_from
-
columnname: callno
-
columnname: charge
-
columnname: price
-
columnname: renew
cannot_be_toggled: 1
cannot_be_modified: 1
-
columnname: checkin
cannot_be_toggled: 1
cannot_be_modified: 1
-
columnname: export
cannot_be_toggled: 1
cannot_be_modified: 1
reports:
lostitems:
lostitems-table:
-
columnname: title
cannot_be_toggled: 1
cannot_be_modified: 1
-
columnname: author
-
columnname: lostcode
-
columnname: barcode
-
columnname: callnumber
-
columnname: datelastseen
-
columnname: price
-
columnname: replacementprice
-
columnname: library
-
columnname: itemtype
-
columnname: current_location
-
columnname: location
-
columnname: notes
circ:
circulation:
issues-table:
-
columnname: sort_order
cannot_be_toggled: 1
cannot_be_modified: 1
is_hidden: 1
-
columnname: todays_or_previous_checkouts
cannot_be_toggled: 1
cannot_be_modified: 1
is_hidden: 1

View File

@ -1,5 +1,6 @@
[% USE Koha %]
[% USE KohaDates %]
[% USE ColumnsSettings %]
[% IF Koha.Preference('ExportRemoveFields') OR Koha.Preference('ExportWithCsvProfile') %]
[% SET exports_enabled = 1 %]
[% END %]
@ -15,6 +16,7 @@
[% INCLUDE 'calendar.inc' %]
<link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/en/css/datatables.css" />
[% INCLUDE 'datatables.inc' %]
[% INCLUDE 'columns_settings.inc' %]
[% INCLUDE 'strings.inc' %]
<script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery.checkboxes.min.js"></script>
<script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery-ui-timepicker-addon.min.js"></script>
@ -41,6 +43,8 @@ var relatives_borrowernumbers = new Array();
var MSG_ADD_MESSAGE = _("Add a new message");
var MSG_EXPORT_SELECT_CHECKOUTS = _("You must select checkout(s) to export");
columns_settings = [% ColumnsSettings.GetColumns( 'member', 'moremember', 'issues-table', 'json' ) %]
$(document).ready(function() {
$('#finesholdsissues').tabs({
// Correct table sizing for tables hidden in tabs