Lines 27-105
Link Here
|
27 |
<div class="container-fluid"> |
27 |
<div class="container-fluid"> |
28 |
<div class="row-fluid"> |
28 |
<div class="row-fluid"> |
29 |
<div class="span12"> |
29 |
<div class="span12"> |
30 |
|
30 |
<div id="course_reserves" class="maincontent"> |
31 |
<h2>Course reserves for <i>[% course.course_name | html %]</i></h2> |
31 |
<h2>Course reserves for <i>[% course.course_name | html %]</i></h2> |
32 |
<div class="rows"> |
32 |
<div class="rows"> |
33 |
<ol> |
33 |
<ol> |
34 |
[% IF ( course.term ) %]<li><span class="label">Term:</span> [% AuthorisedValues.GetByCode( 'TERM', course.term, 1 ) | html %]</li>[% END %] |
34 |
[% IF ( course.term ) %]<li><span class="label">Term:</span> [% AuthorisedValues.GetByCode( 'TERM', course.term, 1 ) | html %]</li>[% END %] |
35 |
<li><span class="label">Department:</span> [% AuthorisedValues.GetByCode( 'DEPARTMENT', course.department, 1 ) | html %]</li> |
35 |
<li><span class="label">Department:</span> [% AuthorisedValues.GetByCode( 'DEPARTMENT', course.department, 1 ) | html %]</li> |
36 |
[% IF ( course.course_number ) %]<li><span class="label">Course number:</span> [% course.course_number | html %]</li>[% END %] |
36 |
[% IF ( course.course_number ) %]<li><span class="label">Course number:</span> [% course.course_number | html %]</li>[% END %] |
37 |
[% IF ( course.section ) %]<li><span class="label">Section:</span> [% course.section | html %]</li>[% END %] |
37 |
[% IF ( course.section ) %]<li><span class="label">Section:</span> [% course.section | html %]</li>[% END %] |
38 |
[% IF ( course.instructors ) %] |
38 |
[% IF ( course.instructors ) %] |
39 |
<li><span class="label">Instructors:</span> |
39 |
<li><span class="label">Instructors:</span> |
40 |
<ul> |
40 |
<ul> |
41 |
[% FOREACH i IN course.instructors %] |
41 |
[% FOREACH i IN course.instructors %] |
42 |
<li><div class="instructor">[% i.firstname | html %] [% i.surname | html %]</div></li> |
42 |
<li><div class="instructor">[% i.firstname | html %] [% i.surname | html %]</div></li> |
43 |
[% END %] |
|
|
44 |
</ul> |
45 |
</li> |
46 |
[% END %] |
47 |
[% IF ( course.public_note ) %]<li><span class="label">Notes:</span> [% course.public_note | $raw %]</li>[% END %] |
48 |
</ol> |
49 |
</div> |
50 |
|
51 |
[% IF ( course_reserves ) %] |
52 |
<table id="course-items-table" class="table table-bordered table-striped table-condensed"> |
53 |
<thead> |
54 |
<tr> |
55 |
<th class="anti-the">Title</th> |
56 |
<th>Author</th> |
57 |
<th>Item type</th> |
58 |
<th>Location</th> |
59 |
<th>Collection</th> |
60 |
<th>Call number</th> |
61 |
<th>Copy number</th> |
62 |
<th>Status</th> |
63 |
<th class="title-string">Date due</th> |
64 |
<th>Notes</th> |
65 |
<th>Link</th> |
66 |
</tr> |
67 |
</thead> |
68 |
|
69 |
<tbody> |
70 |
[% FOREACH cr IN course_reserves %] |
71 |
<tr> |
72 |
<td><a href="opac-detail.pl?biblionumber=[% cr.biblio.biblionumber | uri %]">[% INCLUDE 'biblio-title-head.inc' biblio=cr.biblio %]</a></td> |
73 |
<td>[% cr.biblio.author | html %]</td> |
74 |
<td>[% ItemTypes.GetDescription( cr.item.itype ) | html %]</td> |
75 |
<td>[% Branches.GetName( cr.item.holdingbranch ) | html %] <br/> <i>[% AuthorisedValues.GetByCode( 'LOC', cr.item.location, 1 ) | html %]</i></td> |
76 |
<td>[% AuthorisedValues.GetByCode( 'CCODE', cr.item.ccode, 1 ) | html %]</td> |
77 |
<td>[% cr.item.itemcallnumber | html %]</td> |
78 |
<td>[% cr.item.copynumber | html %]</td> |
79 |
<td>[% INCLUDE 'item-status.inc' item=cr.item issue=cr.issue %]</td> |
80 |
<td><span title="[% cr.issue.date_due | html %]">[% cr.issue.date_due | $KohaDates as_due_date => 1 %]</span></td> |
81 |
<td>[% IF ( cr.public_note ) %] |
82 |
[% cr.public_note | $raw %] |
83 |
[% ELSIF ( cr.item.itemnotes ) %] |
84 |
[% cr.item.itemnotes | $raw %] |
85 |
[% END %] |
86 |
</td> |
87 |
<td>[% IF (cr.item.uri) %] |
88 |
<a href="[% cr.item.uri | url %]">Item URI</a> |
89 |
[% ELSIF (cr.biblioitem.url) %] |
90 |
<a href="[% cr.biblioitem.url | url %]">Record URL</a> |
91 |
[% END %] |
43 |
[% END %] |
92 |
</td> |
44 |
</ul> |
93 |
</tr> |
45 |
</li> |
94 |
[% END %] |
46 |
[% END %] |
95 |
</tbody> |
47 |
[% IF ( course.public_note ) %]<li><span class="label">Notes:</span> [% course.public_note | $raw %]</li>[% END %] |
96 |
</table> |
48 |
</ol> |
97 |
[% ELSE %] |
|
|
98 |
<br style="clear:both;" /> |
99 |
<div class="alert alert-info"> |
100 |
<p>No reserves have been selected for this course.</p> |
101 |
</div> |
49 |
</div> |
102 |
[% END %] |
50 |
|
|
|
51 |
[% IF ( course_reserves ) %] |
52 |
<table id="course-items-table" class="table table-bordered table-striped table-condensed"> |
53 |
<thead> |
54 |
<tr> |
55 |
<th class="anti-the">Title</th> |
56 |
<th>Author</th> |
57 |
<th>Item type</th> |
58 |
<th>Location</th> |
59 |
<th>Collection</th> |
60 |
<th>Call number</th> |
61 |
<th>Copy number</th> |
62 |
<th>Status</th> |
63 |
<th class="title-string">Date due</th> |
64 |
<th>Notes</th> |
65 |
<th>Link</th> |
66 |
</tr> |
67 |
</thead> |
68 |
|
69 |
<tbody> |
70 |
[% FOREACH cr IN course_reserves %] |
71 |
<tr> |
72 |
<td><a href="opac-detail.pl?biblionumber=[% cr.biblio.biblionumber | uri %]">[% INCLUDE 'biblio-title-head.inc' biblio=cr.biblio %]</a></td> |
73 |
<td>[% cr.biblio.author | html %]</td> |
74 |
<td>[% ItemTypes.GetDescription( cr.item.itype ) | html %]</td> |
75 |
<td>[% Branches.GetName( cr.item.holdingbranch ) | html %] <br/> <i>[% AuthorisedValues.GetByCode( 'LOC', cr.item.location, 1 ) | html %]</i></td> |
76 |
<td>[% AuthorisedValues.GetByCode( 'CCODE', cr.item.ccode, 1 ) | html %]</td> |
77 |
<td>[% cr.item.itemcallnumber | html %]</td> |
78 |
<td>[% cr.item.copynumber | html %]</td> |
79 |
<td>[% INCLUDE 'item-status.inc' item=cr.item issue=cr.issue %]</td> |
80 |
<td><span title="[% cr.issue.date_due | html %]">[% cr.issue.date_due | $KohaDates as_due_date => 1 %]</span></td> |
81 |
<td>[% IF ( cr.public_note ) %] |
82 |
[% cr.public_note | $raw %] |
83 |
[% ELSIF ( cr.item.itemnotes ) %] |
84 |
[% cr.item.itemnotes | $raw %] |
85 |
[% END %] |
86 |
</td> |
87 |
<td>[% IF (cr.item.uri) %] |
88 |
<a href="[% cr.item.uri | url %]">Item URI</a> |
89 |
[% ELSIF (cr.biblioitem.url) %] |
90 |
<a href="[% cr.biblioitem.url | url %]">Record URL</a> |
91 |
[% END %] |
92 |
</td> |
93 |
</tr> |
94 |
[% END %] |
95 |
</tbody> |
96 |
</table> |
97 |
[% ELSE %] |
98 |
<br style="clear:both;" /> |
99 |
<div class="alert alert-info"> |
100 |
<p>No reserves have been selected for this course.</p> |
101 |
</div> |
102 |
[% END %] |
103 |
</div> <!-- / #course_reserves --> |
103 |
</div> <!-- / .span12 --> |
104 |
</div> <!-- / .span12 --> |
104 |
</div> <!-- / .row-fluid --> |
105 |
</div> <!-- / .row-fluid --> |
105 |
</div> <!-- / .container-fluid --> |
106 |
</div> <!-- / .container-fluid --> |