Bug 27748: Encoding problem in link to OverDrive results
[koha-ffzg.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 [% USE TablesSettings %]
6
7 [% INCLUDE 'doc-head-open.inc' %]
8 <title>Courses &rsaquo; [% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha online[% END %] catalog</title>
9 [% INCLUDE 'doc-head-close.inc' %]
10 [% BLOCK cssinclude %]
11     [% Asset.css("css/datatables.css") | $raw %]
12 [% END %]
13
14 </head>
15 [% INCLUDE 'bodytag.inc' bodyid='opac-course-reserves' %]
16 [% INCLUDE 'masthead.inc' %]
17
18 <div class="main">
19     <nav aria-label="breadcrumb">
20         <ul class="breadcrumb">
21             <li class="breadcrumb-item">
22                 <a href="/cgi-bin/koha/opac-main.pl">Home</a>
23             </li>
24             <li class="breadcrumb-item" aria-current="page">
25                 <a href="#">Course reserves</a>
26             </li>
27         </ul>
28     </nav>
29
30     <div class="container-fluid">
31         <div class="row">
32             <div class="col order-first order-md-first order-lg-2">
33                 <div id="courses" class="maincontent">
34                     <h1>Courses</h1>
35
36                     <table id="course_reserves_table" class="table table-bordered table-striped table-condensed">
37                         <thead>
38                             <tr>
39                                 <th>Name</th>
40                                 <th>Dept.</th>
41                                 <th>Course #</th>
42                                 <th>Section</th>
43                                 <th>Term</th>
44                                 <th>Instructors</th>
45                                 <th>Notes</th>
46                             </tr>
47                         </thead>
48
49                         <tbody>
50                             [% FOREACH c IN courses %]
51                                 <tr>
52                                     <td><a href="opac-course-details.pl?course_id=[% c.course_id | uri %]">[% c.course_name | html %]</a></td>
53                                     <td>[% AuthorisedValues.GetByCode( 'DEPARTMENT', c.department, 1 ) | html %]</td>
54                                     <td>[% c.course_number | html %]</td>
55                                     <td>[% c.section | html %]</td>
56                                     <td>[% AuthorisedValues.GetByCode( 'TERM' c.term, 1 ) | html %]</td>
57                                     <td>
58                                       [% FOREACH i IN c.instructors %]
59                                           <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>
60                                       [% END %]
61                                     </td>
62                                     <td>[% c.public_note | $raw %]</td>
63                             [% END %]
64                         </tbody>
65                     </table>
66                 </div> <!-- / #courses -->
67             </div> <!-- / .col -->
68         </div> <!-- / .row -->
69     </div> <!-- / .container-fluid -->
70 </div> <!-- / .main -->
71 [% INCLUDE 'opac-bottom.inc' %]
72 [% BLOCK jsinclude %]
73     [% INCLUDE 'datatables.inc' %]
74     [% INCLUDE 'columns_settings.inc' %]
75     <script>
76         $(document).ready(function() {
77             columns_settings = [% TablesSettings.GetColumns( 'opac', 'biblio-detail', 'course_reserves_table', 'json' ) | $raw %]
78             KohaTable("#course_reserves_table", {
79                 "dom": '<"top"f>rt<"clear">',
80                 "sorting": [[ 1, "asc" ]],
81                 "autoWidth": false,
82                 "asColumnDefs": [
83                     { "aTargets": [ 1 ], "sType": "nsb-nse" },
84                 ],
85                 "language": {
86                     "search": "_INPUT_",
87                     "searchPlaceholder": _("Search courses")
88                 }
89             }, columns_settings );
90         });
91     </script>
92 [% END %]