4 [% USE AuthorisedValues %]
5 [% USE TablesSettings %]
6 [% PROCESS 'i18n.inc' %]
8 [% INCLUDE 'doc-head-open.inc' %]
9 <title>Courses › [% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha online[% END %] catalog</title>
10 [% INCLUDE 'doc-head-close.inc' %]
11 [% BLOCK cssinclude %]
12 [% Asset.css("css/datatables.css") | $raw %]
16 [% INCLUDE 'bodytag.inc' bodyid='opac-course-reserves' %]
17 [% INCLUDE 'masthead.inc' %]
20 <nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumbs">
21 <ol class="breadcrumb">
22 <li class="breadcrumb-item">
23 <a href="/cgi-bin/koha/opac-main.pl">Home</a>
25 <li class="breadcrumb-item active">
26 <a href="#" aria-current="page">Course reserves</a>
29 </nav> <!-- /#breadcrumbs -->
31 <div class="container-fluid">
33 <div class="col order-first order-md-first order-lg-2">
34 <div id="courses" class="maincontent">
37 <table id="course_reserves_table" class="table table-bordered table-striped table-condensed">
38 <caption class="sr-only">Courses</caption>
45 <th>[% tp('Semester', 'Term') | html %]</th>
52 [% FOREACH c IN courses %]
54 <td><a href="opac-course-details.pl?course_id=[% c.course_id | uri %]">[% c.course_name | html %]</a></td>
55 <td>[% AuthorisedValues.GetByCode( 'DEPARTMENT', c.department, 1 ) | html %]</td>
56 <td>[% c.course_number | html %]</td>
57 <td>[% c.section | html %]</td>
58 <td>[% AuthorisedValues.GetByCode( 'TERM' c.term, 1 ) | html %]</td>
60 [% FOREACH i IN c.instructors %]
61 <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>
64 <td>[% c.public_note | $raw %]</td>
68 </div> <!-- / #courses -->
69 </div> <!-- / .col -->
70 </div> <!-- / .row -->
71 </div> <!-- / .container-fluid -->
72 </div> <!-- / .main -->
73 [% INCLUDE 'opac-bottom.inc' %]
75 [% INCLUDE 'datatables.inc' %]
76 [% INCLUDE 'columns_settings.inc' %]
78 $(document).ready(function() {
79 columns_settings = [% TablesSettings.GetColumns( 'opac', 'biblio-detail', 'course_reserves_table', 'json' ) | $raw %]
80 KohaTable("#course_reserves_table", {
81 "dom": '<"top"f>rt<"clear">',
82 "sorting": [[ 1, "asc" ]],
85 { "aTargets": [ 1 ], "sType": "nsb-nse" },
89 "searchPlaceholder": _("Search courses")
91 }, columns_settings );