Bug 8215 - Course Reserves
[koha_fer] / koha-tmpl / opac-tmpl / prog / en / modules / opac-course-details.tt
1 [% USE KohaDates %]
2 [% USE AuthorisedValues %]
3 [% USE ItemTypes %]
4 [% USE Branches %]
5 [% INCLUDE 'doc-head-open.inc' %]
6 [% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha online[% END %] catalog
7 [% INCLUDE 'doc-head-close.inc' %]
8 </head>
9 <body id="opac-main">
10 [% IF ( OpacNav ) %]<div id="doc3" class="yui-t1">[% ELSE %]<div id="doc3" class="yui-t7">[% END %]
11    <div id="bd">
12 [% INCLUDE 'masthead.inc' %]
13
14 <div id="doc2" class="yui-t7">
15     <div id="yui-main">
16
17         <table>
18             <tr><th>Course Name</th><td>[% course.course_name %]</td></tr>
19             <tr><th>Term</th><td>[% AuthorisedValues.GetByCode( 'TERM', course.term ) %]</td></tr>
20             <tr><th>Department</th><td>[% AuthorisedValues.GetByCode( 'DEPARTMENT', course.department ) %]</td></tr>
21             <tr><th>Course Number</th><td>[% course.course_number %]</td></tr>
22             <tr><th>Section</th><td>[% course.section %]</td></tr>
23             <tr><th>Instructors</th><td>[% FOREACH i IN course.instructors %]<div class="instructor">[% i.firstname %] [% i.surname %]</div>[% END %]</td></tr>
24             <tr><th>Notes</th><td>[% course.public_note %]</td></tr>
25         </table>
26
27         <table>
28             <thead>
29                 <tr>
30                     <th>Title</th>
31                     <th>Item type</th>
32                     <th>Location</th>
33                     <th>Collection</th>
34                     <th>Call number</th>
35                     <th>Copy</th>
36                     <th>Status</td>
37                     <th>Date due</td>
38                     <th>Notes</th>
39                 </tr>
40             </thead>
41
42             <tbody>
43                 [% FOREACH cr IN course_reserves %]
44                     <tr>
45                         <td><a href="opac-detail.pl?biblionumber=[% cr.item.biblionumber %]">[% cr.item.title %]</a></td>
46                         <td>[% ItemTypes.GetDescription( cr.item.itype ) %]</td>
47                         <td>[% Branches.GetName( cr.item.holdingbranch ) %] <br/> <i>[% AuthorisedValues.GetByCode( 'LOC', cr.item.location ) %]</i></td>
48                         <td>[% AuthorisedValues.GetByCode( 'CCODE', cr.item.ccode ) %]</td>
49                         <td>[% cr.item.itemcallnumber %]</td>
50                         <td>[% cr.item.copynumber %]</td>
51                         <td>[% INCLUDE 'item-status.inc' item = cr.item %]</td>
52                         <td>[% cr.issue.date_due | $KohaDates %]</td>
53                         <td>[% cr.public_note %]</td>
54                     </tr>
55                 [% END %]
56             </tbody>
57         </table>
58
59     </div>
60 </div>
61
62
63 [% INCLUDE 'opac-bottom.inc' %]