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