Bug 22949: Markup error in OPAC course reserves template
[koha-equinox.git] / koha-tmpl / opac-tmpl / bootstrap / en / modules / opac-course-reserves.tt
1 [% USE raw %]
2 [% USE Asset %]
3 [% USE Koha %]
4 [% USE AuthorisedValues %]
5
6 [% INCLUDE 'doc-head-open.inc' %]
7 <title>[% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha online[% END %] catalog &rsaquo; Courses</title>
8 [% INCLUDE 'doc-head-close.inc' %]
9 [% BLOCK cssinclude %]
10     [% Asset.css("css/datatables.css") | $raw %]
11 [% END %]
12
13 </head>
14 [% INCLUDE 'bodytag.inc' bodyid='opac-course-reserves' %]
15 [% INCLUDE 'masthead.inc' %]
16
17 <div class="main">
18     <ul class="breadcrumb">
19         <li><a href="/cgi-bin/koha/opac-main.pl">Home</a> <span class="divider">&rsaquo;</span></li>
20         <li><a href="#">Course reserves</a></li>
21     </ul>
22
23     <div class="container-fluid">
24         <div class="row-fluid">
25             <div class="span12">
26
27                     <h1>Courses</h1>
28
29                     <table id="course_reserves_table" class="table table-bordered table-striped table-condensed">
30                         <thead>
31                             <tr>
32                                 <th>Name</th>
33                                 <th>Dept.</th>
34                                 <th>Course #</th>
35                                 <th>Section</th>
36                                 <th>Term</th>
37                                 <th>Instructors</th>
38                                 <th>Notes</th>
39                             </tr>
40                         </thead>
41
42                         <tbody>
43                             [% FOREACH c IN courses %]
44                                 <tr>
45                                     <td><a href="opac-course-details.pl?course_id=[% c.course_id | uri %]">[% c.course_name | html %]</a></td>
46                                     <td>[% AuthorisedValues.GetByCode( 'DEPARTMENT', c.department, 1 ) | html %]</td>
47                                     <td>[% c.course_number | html %]</td>
48                                     <td>[% c.section | html %]</td>
49                                     <td>[% AuthorisedValues.GetByCode( 'TERM' c.term, 1 ) | html %]</td>
50                                     <td>
51                                       [% FOREACH i IN c.instructors %]
52                                           <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>
53                                       [% END %]
54                                     </td>
55                                     <td>[% c.public_note | $raw %]</td>
56                             [% END %]
57                         </tbody>
58                     </table>
59             </div> <!-- / .span12 -->
60         </div> <!-- / .row-fluid -->
61     </div> <!-- / .container-fluid -->
62 </div> <!-- / .main -->
63 [% INCLUDE 'opac-bottom.inc' %]
64 [% BLOCK jsinclude %]
65     [% INCLUDE 'datatables.inc' %]
66     <script>
67     $(document).ready(function() {
68         $("#course_reserves_table").dataTable($.extend(true, {}, dataTablesDefaults, {
69             "dom": '<"top"flp>rt<"clear">',
70         }));
71     });
72     </script>
73 [% END %]