Bug 9723: display time due for hourly loans in the public catalog
[koha.git] / koha-tmpl / opac-tmpl / prog / 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 </head>
10 <body id="opac-main">
11 [% IF ( OpacNav ) %]<div id="doc3" class="yui-t1">[% ELSE %]<div id="doc3" class="yui-t7">[% END %]
12    <div id="bd">
13 [% INCLUDE 'masthead.inc' %]
14
15 <div id="doc2" class="yui-t7">
16     <div id="yui-main">
17         <h2><a href="/cgi-bin/koha/opac-course-reserves.pl">Course reserves</a> &#8674; Course reserves for <i>[% course.course_name %]</i></h2>
18         <div class="rows clearfix">
19             <ol>
20                 [% IF ( course.term ) %]<li><span class="label">Term:</span> [% AuthorisedValues.GetByCode( 'TERM', course.term ) %]</li>[% END %]
21                 <li><span class="label">Department:</span> [% AuthorisedValues.GetByCode( 'DEPARTMENT', course.department ) %]</li>
22                 [% IF ( course.course_number ) %]<li><span class="label">Course number:</span> [% course.course_number %]</li>[% END %]
23                 [% IF ( course.section ) %]<li><span class="label">Section:</span> [% course.section %]</li>[% END %]
24                 [% IF ( course.instructors ) %]
25                     <li><span class="label">Instructors:</span>
26                         <ul>
27                             [% FOREACH i IN course.instructors %]
28                                 <li><div class="instructor">[% i.firstname %] [% i.surname %]</div></li>
29                             [% END %]
30                         </ul>
31                     </li>
32                 [% END %]
33                 [% IF ( course.public_note ) %]<li><span class="label">Notes:</span> [% course.public_note %]</li>[% END %]
34             </ol>
35         </div>
36
37         [% IF ( course_reserves ) %]
38             <table>
39                 <thead>
40                     <tr>
41                         <th>Title</th>
42                         <th>Item type</th>
43                         <th>Location</th>
44                         <th>Collection</th>
45                         <th>Call number</th>
46                         <th>Copy number</th>
47                         <th>Status</th>
48                         <th>Date due</th>
49                         <th>Notes</th>
50                     </tr>
51                 </thead>
52
53                 <tbody>
54                     [% FOREACH cr IN course_reserves %]
55                         <tr>
56                             <td><a href="opac-detail.pl?biblionumber=[% cr.item.biblionumber %]">[% cr.item.title %]</a></td>
57                             <td>[% ItemTypes.GetDescription( cr.item.itype ) %]</td>
58                             <td>[% Branches.GetName( cr.item.holdingbranch ) %] <br/> <i>[% AuthorisedValues.GetByCode( 'LOC', cr.item.location ) %]</i></td>
59                             <td>[% AuthorisedValues.GetByCode( 'CCODE', cr.item.ccode ) %]</td>
60                             <td>[% cr.item.itemcallnumber %]</td>
61                             <td>[% cr.item.copynumber %]</td>
62                             <td>[% INCLUDE 'item-status.inc' item=cr.item issue=cr.issue %]</td>
63                             <td>[% cr.issue.date_due | $KohaDates as_due_date => 1 %]</td>
64                             <td>[% cr.public_note %]</td>
65                         </tr>
66                     [% END %]
67                 </tbody>
68             </table>
69         [% ELSE %]
70             <br style="clear:both;" />
71             <div class="dialog message">
72                 <p>No reserves have been selected for this course.</p>
73             </div>
74         [% END %]
75     </div>
76 </div>
77 </div>
78 [% INCLUDE 'opac-bottom.inc' %]