[% USE Asset %]
[% USE Koha %]
[% USE AuthorisedValues %]
+[% USE ColumnsSettings %]
[% INCLUDE 'doc-head-open.inc' %]
<title>[% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha online[% END %] catalog › Courses</title>
[% INCLUDE 'opac-bottom.inc' %]
[% BLOCK jsinclude %]
[% INCLUDE 'datatables.inc' %]
+ [% INCLUDE 'columns_settings.inc' %]
<script>
+
$(document).ready(function() {
- $("#course_reserves_table").dataTable($.extend(true, {}, dataTablesDefaults, {
+ columns_settings = [% ColumnsSettings.GetColumns( 'opac', 'biblio-detail', 'course_reserves_table', 'json' ) | $raw %]
+
+ KohaTable("#course_reserves_table", {
"dom": '<"top"flp>rt<"clear">',
- }));
+ "sorting": [[ 1, "asc" ]],
+ "autoWidth": false,
+ "asColumnDefs": [
+ { "sortable": false, "searchable": false, 'targets': [ 'NoSort' ] },
+ { "sType": "anti-the", "aTargets" : [ "anti-the" ] },
+ { "aTargets": [ 1 ], "sType": "nsb-nse" },
+ ]
+ }, columns_settings );
});
+
</script>
[% END %]