+[% USE raw %]
+[% USE Asset %]
[% USE Koha %]
[% USE AuthorisedValues %]
[% INCLUDE 'doc-head-open.inc' %]
-[% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha online[% END %] catalog › Courses
+<title>[% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha online[% END %] catalog › Courses</title>
[% INCLUDE 'doc-head-close.inc' %]
[% BLOCK cssinclude %]
- <link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" />
+ [% Asset.css("css/datatables.css") | $raw %]
[% END %]
</head>
-[% INCLUDE 'bodytag.inc' bodyid='opac-main' %]
+[% INCLUDE 'bodytag.inc' bodyid='opac-course-reserves' %]
[% INCLUDE 'masthead.inc' %]
<div class="main">
<tbody>
[% FOREACH c IN courses %]
<tr>
- <td><a href="opac-course-details.pl?course_id=[% c.course_id %]">[% c.course_name %]</a></td>
- <td>[% AuthorisedValues.GetByCode( 'DEPARTMENT', c.department, 1 ) %]</td>
- <td>[% c.course_number %]</td>
- <td>[% c.section %]</td>
- <td>[% AuthorisedValues.GetByCode( 'TERM' c.term ) %]</td>
+ <td><a href="opac-course-details.pl?course_id=[% c.course_id | uri %]">[% c.course_name | html %]</a></td>
+ <td>[% AuthorisedValues.GetByCode( 'DEPARTMENT', c.department, 1 ) | html %]</td>
+ <td>[% c.course_number | html %]</td>
+ <td>[% c.section | html %]</td>
+ <td>[% AuthorisedValues.GetByCode( 'TERM' c.term, 1 ) | html %]</td>
<td>
[% FOREACH i IN c.instructors %]
- <div class="instructor">[% i.firstname %] [% i.surname %]</div>
+ <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>
[% END %]
</td>
- <td>[% c.public_note %]</td>
+ <td>[% c.public_note | $raw %]</td>
[% END %]
</tbody>
</table>
[% INCLUDE 'opac-bottom.inc' %]
[% BLOCK jsinclude %]
[% INCLUDE 'datatables.inc' %]
- <script type="text/javascript">
+ <script>
$(document).ready(function() {
$("#course_reserves_table").dataTable($.extend(true, {}, dataTablesDefaults, {
- "sDom": '<"bottom"flp>rt<"clear">',
+ "dom": '<"top"flp>rt<"clear">',
}));
});
</script>