4 [% USE AuthorisedValues %]
5 [% USE TablesSettings %]
7 [% INCLUDE 'doc-head-open.inc' %]
8 <title>[% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha online[% END %] catalog › Courses</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 <ul class="breadcrumb">
20 <li><a href="/cgi-bin/koha/opac-main.pl">Home</a> <span class="divider">›</span></li>
21 <li><a href="#">Course reserves</a></li>
24 <div class="container-fluid">
25 <div class="row-fluid">
27 <div id="courses" class="maincontent">
30 <table id="course_reserves_table" class="table table-bordered table-striped table-condensed">
44 [% FOREACH c IN courses %]
46 <td><a href="opac-course-details.pl?course_id=[% c.course_id | uri %]">[% c.course_name | html %]</a></td>
47 <td>[% AuthorisedValues.GetByCode( 'DEPARTMENT', c.department, 1 ) | html %]</td>
48 <td>[% c.course_number | html %]</td>
49 <td>[% c.section | html %]</td>
50 <td>[% AuthorisedValues.GetByCode( 'TERM' c.term, 1 ) | html %]</td>
52 [% FOREACH i IN c.instructors %]
53 <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>
56 <td>[% c.public_note | $raw %]</td>
60 </div> <!-- / #courses -->
61 </div> <!-- / .span12 -->
62 </div> <!-- / .row-fluid -->
63 </div> <!-- / .container-fluid -->
64 </div> <!-- / .main -->
65 [% INCLUDE 'opac-bottom.inc' %]
67 [% INCLUDE 'datatables.inc' %]
68 [% INCLUDE 'columns_settings.inc' %]
71 $(document).ready(function() {
72 columns_settings = [% TablesSettings.GetColumns( 'opac', 'biblio-detail', 'course_reserves_table', 'json' ) | $raw %]
74 KohaTable("#course_reserves_table", {
75 "dom": '<"top"flp>rt<"clear">',
76 "sorting": [[ 1, "asc" ]],
79 { "aTargets": [ 1 ], "sType": "nsb-nse" },
81 }, columns_settings );