View | Details | Raw Unified | Return to bug 19902
Collapse All | Expand All

(-)a/admin/columns_settings.yml (+22 lines)
Lines 83-88 modules: Link Here
83
        -
83
        -
84
          columnname: actions
84
          columnname: actions
85
85
86
  catalogue:
87
    detail:
88
      checkoutshistory-table:
89
        -
90
          columnname: patron
91
          cannot_be_toggled: 1
92
          cannot_be_modified: 1
93
        -
94
          columnname: barcode
95
          cannot_be_toggled: 1
96
          cannot_be_modified: 1
97
        -
98
          columnname: checked_out_from
99
        -
100
          columnname: renewed
101
        -
102
          columnname: checkout_on
103
        -
104
          columnname: due_date
105
        -
106
          columnname: checkin_on
107
86
  cataloguing:
108
  cataloguing:
87
    additem:
109
    additem:
88
      itemst:
110
      itemst:
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/issuehistory.tt (-3 / +6 lines)
Lines 2-7 Link Here
2
[% USE Koha %]
2
[% USE Koha %]
3
[% USE KohaDates %]
3
[% USE KohaDates %]
4
[% USE Branches %]
4
[% USE Branches %]
5
[% USE ColumnsSettings %]
5
[% SET footerjs = 1 %]
6
[% SET footerjs = 1 %]
6
[% INCLUDE 'doc-head-open.inc' %]
7
[% INCLUDE 'doc-head-open.inc' %]
7
<title>Koha &rsaquo; Catalog &rsaquo; Checkout history for [% biblio.title |html %]</title>
8
<title>Koha &rsaquo; Catalog &rsaquo; Checkout history for [% biblio.title |html %]</title>
Lines 98-112 Link Here
98
99
99
[% MACRO jsinclude BLOCK %]
100
[% MACRO jsinclude BLOCK %]
100
[% INCLUDE 'datatables.inc' %]
101
[% INCLUDE 'datatables.inc' %]
102
[% INCLUDE 'columns_settings.inc' %]
101
    <script type="text/javascript" id="js">
103
    <script type="text/javascript" id="js">
102
        $(document).ready(function() {
104
        $(document).ready(function() {
103
            $("#table_issues").dataTable($.extend(true, {}, dataTablesDefaults, {
105
            var columns_settings = [% ColumnsSettings.GetColumns('catalogue', 'detail', 'checkoutshistory-table', 'json') %];
106
            var table = KohaTable("table_issues", {
104
                "aoColumnDefs": [
107
                "aoColumnDefs": [
105
                    { "sType": "title-string", "aTargets" : [ "title-string" ] }
108
                    { "sType": "title-string", "aTargets" : [ "title-string" ] }
106
                ],
109
                ],
110
                "sDom": 'C<"top pager"ilpfB><"#filter_c">tr<"bottom pager"ip>',
107
                "aaSorting": [[ 4, "desc" ]],
111
                "aaSorting": [[ 4, "desc" ]],
108
                "sPaginationType": "full_numbers"
112
                "sPaginationType": "full_numbers"
109
            }));
113
            }, columns_settings);
110
        });
114
        });
111
    </script>
115
    </script>
112
[% END %]
116
[% END %]
113
- 

Return to bug 19902