Lines 5-10
Link Here
|
5 |
[% USE AuthorisedValues %] |
5 |
[% USE AuthorisedValues %] |
6 |
[% USE ItemTypes %] |
6 |
[% USE ItemTypes %] |
7 |
[% USE Branches %] |
7 |
[% USE Branches %] |
|
|
8 |
[% USE ColumnsSettings %] |
8 |
[% INCLUDE 'doc-head-open.inc' %] |
9 |
[% INCLUDE 'doc-head-open.inc' %] |
9 |
<title>[% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha online[% END %] catalog › Course reserves for [% course.course_name | html %]</title> |
10 |
<title>[% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha online[% END %] catalog › Course reserves for [% course.course_name | html %]</title> |
10 |
[% INCLUDE 'doc-head-close.inc' %] |
11 |
[% INCLUDE 'doc-head-close.inc' %] |
Lines 106-120
Link Here
|
106 |
[% INCLUDE 'opac-bottom.inc' %] |
107 |
[% INCLUDE 'opac-bottom.inc' %] |
107 |
[% BLOCK jsinclude %] |
108 |
[% BLOCK jsinclude %] |
108 |
[% INCLUDE 'datatables.inc' %] |
109 |
[% INCLUDE 'datatables.inc' %] |
|
|
110 |
[% INCLUDE 'columns_settings.inc' %] |
109 |
<script> |
111 |
<script> |
110 |
$(document).ready(function() { |
112 |
$(document).ready(function() { |
111 |
$("#course-items-table").dataTable($.extend(true, {}, dataTablesDefaults, { |
113 |
columns_settings = [% ColumnsSettings.GetColumns( 'opac', 'biblio-detail', 'course-items-table', 'json' ) | $raw %]; |
|
|
114 |
KohaTable("#course-items-table", { |
112 |
"dom": '<"top"flp>rt<"clear">', |
115 |
"dom": '<"top"flp>rt<"clear">', |
113 |
"columnDefs": [ |
116 |
"sorting": [[ 1, "asc" ]], |
|
|
117 |
"autoWidth": false, |
118 |
"asColumnDefs": [ |
114 |
{ "type": "anti-the", "targets" : [ "anti-the" ] }, |
119 |
{ "type": "anti-the", "targets" : [ "anti-the" ] }, |
115 |
{ "type": "title-string", "targets" : [ "title-string" ] } |
120 |
{ "type": "title-string", "targets" : [ "title-string" ] }, |
116 |
] |
121 |
] |
117 |
})); |
122 |
}, columns_settings ); |
118 |
}); |
123 |
}); |
119 |
</script> |
124 |
</script> |
120 |
[% END %] |
125 |
[% END %] |
121 |
- |
|
|