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