Bug 28898: Context for translation: term (word) vs. term (semester)
[koha.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 [%# USE the plugin and define some macros %]
7 [% PROCESS 'i18n.inc' %]
8
9 [% INCLUDE 'doc-head-open.inc' %]
10 <title>Courses &rsaquo; [% 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 %]
14 [% END %]
15
16 </head>
17 [% INCLUDE 'bodytag.inc' bodyid='opac-course-reserves' %]
18 [% INCLUDE 'masthead.inc' %]
19
20 <div class="main">
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>
25             </li>
26             <li class="breadcrumb-item" aria-current="page">
27                 <a href="#">Course reserves</a>
28             </li>
29         </ul>
30     </nav>
31
32     <div class="container-fluid">
33         <div class="row">
34             <div class="col order-first order-md-first order-lg-2">
35                 <div id="courses" class="maincontent">
36                     <h1>Courses</h1>
37
38                     <table id="course_reserves_table" class="table table-bordered table-striped table-condensed">
39                         <caption class="sr-only">Courses</caption>
40                         <thead>
41                             <tr>
42                                 <th>Name</th>
43                                 <th>Dept.</th>
44                                 <th>Course #</th>
45                                 <th>Section</th>
46                                 <th>[% tp('Semester', 'Term') | html %]</th>
47                                 <th>Instructors</th>
48                                 <th>Notes</th>
49                             </tr>
50                         </thead>
51
52                         <tbody>
53                             [% FOREACH c IN courses %]
54                                 <tr>
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>
60                                     <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>
63                                       [% END %]
64                                     </td>
65                                     <td>[% c.public_note | $raw %]</td>
66                             [% END %]
67                         </tbody>
68                     </table>
69                 </div> <!-- / #courses -->
70             </div> <!-- / .col -->
71         </div> <!-- / .row -->
72     </div> <!-- / .container-fluid -->
73 </div> <!-- / .main -->
74 [% INCLUDE 'opac-bottom.inc' %]
75 [% BLOCK jsinclude %]
76     [% INCLUDE 'datatables.inc' %]
77     [% INCLUDE 'columns_settings.inc' %]
78     <script>
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" ]],
84                 "autoWidth": false,
85                 "asColumnDefs": [
86                     { "aTargets": [ 1 ], "sType": "nsb-nse" },
87                 ],
88                 "language": {
89                     "search": "_INPUT_",
90                     "searchPlaceholder": _("Search courses")
91                 }
92             }, columns_settings );
93         });
94     </script>
95 [% END %]