4 [% USE AuthorisedValues %]
5 [% USE TablesSettings %]
7 [% INCLUDE 'doc-head-open.inc' %]
8 <title>Courses › [% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha online[% END %] catalog</title>
9 [% INCLUDE 'doc-head-close.inc' %]
10 [% BLOCK cssinclude %]
11 [% Asset.css("css/datatables.css") | $raw %]
15 [% INCLUDE 'bodytag.inc' bodyid='opac-course-reserves' %]
16 [% INCLUDE 'masthead.inc' %]
19 <nav aria-label="breadcrumb">
20 <ul class="breadcrumb">
21 <li class="breadcrumb-item">
22 <a href="/cgi-bin/koha/opac-main.pl">Home</a>
24 <li class="breadcrumb-item" aria-current="page">
25 <a href="#">Course reserves</a>
30 <div class="container-fluid">
32 <div class="col order-first order-md-first order-lg-2">
33 <div id="courses" class="maincontent">
36 <table id="course_reserves_table" class="table table-bordered table-striped table-condensed">
50 [% FOREACH c IN courses %]
52 <td><a href="opac-course-details.pl?course_id=[% c.course_id | uri %]">[% c.course_name | html %]</a></td>
53 <td>[% AuthorisedValues.GetByCode( 'DEPARTMENT', c.department, 1 ) | html %]</td>
54 <td>[% c.course_number | html %]</td>
55 <td>[% c.section | html %]</td>
56 <td>[% AuthorisedValues.GetByCode( 'TERM' c.term, 1 ) | html %]</td>
58 [% FOREACH i IN c.instructors %]
59 <div class="instructor"><span class="inst_surname">[% i.surname | html %]</span>[% IF i.firstname %]<span class="instr_separator">, </span><span class="instr_firstname">[% i.firstname | html %]</span>[% END %]</div>
62 <td>[% c.public_note | $raw %]</td>
66 </div> <!-- / #courses -->
67 </div> <!-- / .col -->
68 </div> <!-- / .row -->
69 </div> <!-- / .container-fluid -->
70 </div> <!-- / .main -->
71 [% INCLUDE 'opac-bottom.inc' %]
73 [% INCLUDE 'datatables.inc' %]
74 [% INCLUDE 'columns_settings.inc' %]
76 $(document).ready(function() {
77 columns_settings = [% TablesSettings.GetColumns( 'opac', 'biblio-detail', 'course_reserves_table', 'json' ) | $raw %]
78 KohaTable("#course_reserves_table", {
79 "dom": '<"top"f>rt<"clear">',
80 "sorting": [[ 1, "asc" ]],
83 { "aTargets": [ 1 ], "sType": "nsb-nse" },
87 "searchPlaceholder": _("Search courses")
89 }, columns_settings );