4 [% USE AuthorisedValues %]
5 [% USE TablesSettings %]
6 [%# USE the plugin and define some macros %]
7 [% PROCESS 'i18n.inc' %]
9 [% INCLUDE 'doc-head-open.inc' %]
10 <title>Courses › [% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha online[% END %] catalog</title>
11 [% INCLUDE 'doc-head-close.inc' %]
12 [% BLOCK cssinclude %]
13 [% Asset.css("css/datatables.css") | $raw %]
17 [% INCLUDE 'bodytag.inc' bodyid='opac-course-reserves' %]
18 [% INCLUDE 'masthead.inc' %]
21 <nav aria-label="breadcrumb">
22 <ul class="breadcrumb">
23 <li class="breadcrumb-item">
24 <a href="/cgi-bin/koha/opac-main.pl">Home</a>
26 <li class="breadcrumb-item" aria-current="page">
27 <a href="#">Course reserves</a>
32 <div class="container-fluid">
34 <div class="col order-first order-md-first order-lg-2">
35 <div id="courses" class="maincontent">
38 <table id="course_reserves_table" class="table table-bordered table-striped table-condensed">
39 <caption class="sr-only">Courses</caption>
46 <th>[% tp('Semester', 'Term') | html %]</th>
53 [% FOREACH c IN courses %]
55 <td><a href="opac-course-details.pl?course_id=[% c.course_id | uri %]">[% c.course_name | html %]</a></td>
56 <td>[% AuthorisedValues.GetByCode( 'DEPARTMENT', c.department, 1 ) | html %]</td>
57 <td>[% c.course_number | html %]</td>
58 <td>[% c.section | html %]</td>
59 <td>[% AuthorisedValues.GetByCode( 'TERM' c.term, 1 ) | html %]</td>
61 [% FOREACH i IN c.instructors %]
62 <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>
65 <td>[% c.public_note | $raw %]</td>
69 </div> <!-- / #courses -->
70 </div> <!-- / .col -->
71 </div> <!-- / .row -->
72 </div> <!-- / .container-fluid -->
73 </div> <!-- / .main -->
74 [% INCLUDE 'opac-bottom.inc' %]
76 [% INCLUDE 'datatables.inc' %]
77 [% INCLUDE 'columns_settings.inc' %]
79 $(document).ready(function() {
80 columns_settings = [% TablesSettings.GetColumns( 'opac', 'biblio-detail', 'course_reserves_table', 'json' ) | $raw %]
81 KohaTable("#course_reserves_table", {
82 "dom": '<"top"f>rt<"clear">',
83 "sorting": [[ 1, "asc" ]],
86 { "aTargets": [ 1 ], "sType": "nsb-nse" },
90 "searchPlaceholder": _("Search courses")
92 }, columns_settings );