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

(-)a/admin/columns_settings.yml (+16 lines)
Lines 1115-1120 modules: Link Here
1115
        -
1115
        -
1116
          columnname: item_coursereserves
1116
          columnname: item_coursereserves
1117
1117
1118
      course_reserves_table:
1119
        -
1120
          columnname: coursename
1121
        -
1122
          columnname: department
1123
        -
1124
          columnname: course_number
1125
        -
1126
          columnname: section
1127
        -
1128
          columnname: term
1129
        -
1130
          columnname: instructor
1131
        -
1132
          columnname: notes
1133
1118
      subscriptionst:
1134
      subscriptionst:
1119
        -
1135
        -
1120
          columnname: serial_serialseq
1136
          columnname: serial_serialseq
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-course-reserves.tt (-3 / +15 lines)
Lines 2-7 Link Here
2
[% USE Asset %]
2
[% USE Asset %]
3
[% USE Koha %]
3
[% USE Koha %]
4
[% USE AuthorisedValues %]
4
[% USE AuthorisedValues %]
5
[% USE ColumnsSettings %]
5
6
6
[% INCLUDE 'doc-head-open.inc' %]
7
[% INCLUDE 'doc-head-open.inc' %]
7
<title>[% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha online[% END %] catalog &rsaquo; Courses</title>
8
<title>[% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha online[% END %] catalog &rsaquo; Courses</title>
Lines 63-73 Link Here
63
[% INCLUDE 'opac-bottom.inc' %]
64
[% INCLUDE 'opac-bottom.inc' %]
64
[% BLOCK jsinclude %]
65
[% BLOCK jsinclude %]
65
    [% INCLUDE 'datatables.inc' %]
66
    [% INCLUDE 'datatables.inc' %]
67
    [% INCLUDE 'columns_settings.inc' %]
66
    <script>
68
    <script>
69
67
    $(document).ready(function() {
70
    $(document).ready(function() {
68
        $("#course_reserves_table").dataTable($.extend(true, {}, dataTablesDefaults, {
71
        columns_settings = [% ColumnsSettings.GetColumns( 'opac', 'biblio-detail', 'course_reserves_table', 'json' ) | $raw %]
72
73
        KohaTable("#course_reserves_table", {
69
            "dom": '<"top"flp>rt<"clear">',
74
            "dom": '<"top"flp>rt<"clear">',
70
        }));
75
            "sorting": [[ 1, "asc" ]],
76
            "autoWidth": false,
77
            "asColumnDefs": [
78
                { "sortable": false, "searchable": false, 'targets': [ 'NoSort' ] },
79
                { "sType": "anti-the", "aTargets" : [ "anti-the" ] },
80
                { "aTargets": [ 1 ], "sType": "nsb-nse" },
81
            ]
82
        }, columns_settings );
71
    });
83
    });
84
72
    </script>
85
    </script>
73
[% END %]
86
[% END %]
74
- 

Return to bug 23547