Bug 10907: Optionally show the staff member's name who managed a suggestion in OPAC
[koha.git] / koha-tmpl / opac-tmpl / bootstrap / en / modules / opac-course-details.tt
1 [% USE Koha %]
2 [% USE KohaDates %]
3 [% USE AuthorisedValues %]
4 [% USE ItemTypes %]
5 [% USE Branches %]
6 [% INCLUDE 'doc-head-open.inc' %]
7 [% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha online[% END %] catalog › Course reserves for [% course.course_name %]
8 [% INCLUDE 'doc-head-close.inc' %]
9 [% BLOCK cssinclude %][% END %]
10 </head>
11 <body id="opac-main">
12 [% INCLUDE 'masthead.inc' %]
13
14 <div class="main">
15     <ul class="breadcrumb">
16         <li><a href="/cgi-bin/koha/opac-main.pl">Home</a> <span class="divider">&rsaquo;</span></li>
17         <li><a href="/cgi-bin/koha/opac-course-reserves.pl">Course reserves</a> <span class="divider">&rsaquo;</span></li>
18         <li><a href="#">Course reserves for <i>[% course.course_name %]</i></a></li>
19     </ul>
20
21     <div class="container-fluid">
22         <div class="row-fluid">
23             <div class="span12">
24
25                 <h2>Course reserves for <i>[% course.course_name %]</i></h2>
26                 <div class="rows">
27                     <ol>
28                         [% IF ( course.term ) %]<li><span class="label">Term:</span> [% AuthorisedValues.GetByCode( 'TERM', course.term ) %]</li>[% END %]
29                         <li><span class="label">Department:</span> [% AuthorisedValues.GetByCode( 'DEPARTMENT', course.department ) %]</li>
30                         [% IF ( course.course_number ) %]<li><span class="label">Course number:</span> [% course.course_number %]</li>[% END %]
31                         [% IF ( course.section ) %]<li><span class="label">Section:</span> [% course.section %]</li>[% END %]
32                         [% IF ( course.instructors ) %]
33                             <li><span class="label">Instructors:</span>
34                                 <ul>
35                                     [% FOREACH i IN course.instructors %]
36                                         <li><div class="instructor">[% i.firstname %] [% i.surname %]</div></li>
37                                     [% END %]
38                                 </ul>
39                             </li>
40                         [% END %]
41                         [% IF ( course.public_note ) %]<li><span class="label">Notes:</span> [% course.public_note %]</li>[% END %]
42                     </ol>
43                 </div>
44
45                 [% IF ( course_reserves ) %]
46                     <table class="table table-bordered table-striped table-condensed">
47                         <thead>
48                             <tr>
49                                 <th>Title</th>
50                                 <th>Item type</th>
51                                 <th>Location</th>
52                                 <th>Collection</th>
53                                 <th>Call number</th>
54                                 <th>Copy</th>
55                                 <th>Status</th>
56                                 <th>Date due</th>
57                                 <th>Notes</th>
58                             </tr>
59                         </thead>
60
61                         <tbody>
62                             [% FOREACH cr IN course_reserves %]
63                                 <tr>
64                                     <td><a href="opac-detail.pl?biblionumber=[% cr.item.biblionumber %]">[% cr.item.title %]</a></td>
65                                     <td>[% ItemTypes.GetDescription( cr.item.itype ) %]</td>
66                                     <td>[% Branches.GetName( cr.item.holdingbranch ) %] <br/> <i>[% AuthorisedValues.GetByCode( 'LOC', cr.item.location ) %]</i></td>
67                                     <td>[% AuthorisedValues.GetByCode( 'CCODE', cr.item.ccode ) %]</td>
68                                     <td>[% cr.item.itemcallnumber %]</td>
69                                     <td>[% cr.item.copynumber %]</td>
70                                     <td>[% INCLUDE 'item-status.inc' item=cr.item issue=cr.issue %]</td>
71                                     <td>[% cr.issue.date_due | $KohaDates %]</td>
72                                     <td>[% cr.public_note %]</td>
73                                 </tr>
74                             [% END %]
75                         </tbody>
76                     </table>
77                 [% ELSE %]
78                     <br style="clear:both;" />
79                     <div class="dialog message">
80                         <p>No reserves have been selected for this course.</p>
81                     </div>
82                 [% END %]
83             </div> <!-- / .span12 -->
84         </div> <!-- / .row-fluid -->
85     </div> <!-- / .container-fluid -->
86 </div> <!-- / .main -->
87 [% INCLUDE 'opac-bottom.inc' %]
88 [% BLOCK jsinclude %]
89 [% END %]