Line 0
Link Here
|
|
|
1 |
[% USE raw %] |
2 |
[% USE Asset %] |
3 |
[% USE Koha %] |
4 |
[% USE KohaDates %] |
5 |
[% USE AuthorisedValues %] |
6 |
[% USE ItemTypes %] |
7 |
[% USE Branches %] |
8 |
[% USE TablesSettings %] |
9 |
[% INCLUDE 'doc-head-open.inc' %] |
10 |
<title>[% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha online[% END %] catalog › Reserves for [% course.course_name | html %][%- IF course.section -%] - [% course.section | html %][%- END -%]</title> |
11 |
[% INCLUDE 'doc-head-close.inc' %] |
12 |
[% BLOCK cssinclude %] |
13 |
[% Asset.css("css/datatables.css") | $raw %] |
14 |
[% END %] |
15 |
|
16 |
</head> |
17 |
[% INCLUDE 'bodytag.inc' bodyid='opac-course-details' %] |
18 |
[% INCLUDE 'masthead.inc' %] |
19 |
|
20 |
<div class="main"> |
21 |
<nav aria-label="breadcrumb"> |
22 |
<ul class="breadcrumb"> |
23 |
<li class="breadcrumb-item"> |
24 |
<a href="/cgi-bin/koha/opac-main.pl">Home</a> |
25 |
</li> |
26 |
<li class="breadcrumb-item"> |
27 |
<a href="/cgi-bin/koha/opac-thesis-tables.pl">Research tables</a> |
28 |
</li> |
29 |
<li class="breadcrumb-item" aria-current="page"> |
30 |
Reserves for <em>[% course.course_name | html %][%- IF course.section -%] - [% course.section | html %][%- END -%]</em> |
31 |
</li> |
32 |
</ul> |
33 |
</nav> |
34 |
|
35 |
<div class="container-fluid"> |
36 |
<div class="row"> |
37 |
<div class="col"> |
38 |
<div id="thesis_tables" class="maincontent"> |
39 |
|
40 |
<h2>Reserves for <em>[% course.course_name | html %][%- IF course.section -%] - [% course.section | html %][%- END -%]</em></h2> |
41 |
<div class="rows"> |
42 |
<ol> |
43 |
[% IF ( course.instructors ) %] |
44 |
<li><span class="label">Researcher:</span> |
45 |
<ul> |
46 |
[% FOREACH i IN course.instructors %] |
47 |
<li><div class="instructor">[% i.firstname | html %] [% i.surname | html %]</div></li> |
48 |
[% END %] |
49 |
</ul> |
50 |
</li> |
51 |
[% END %] |
52 |
[% IF ( course.public_note ) %]<li><span class="label">Notes:</span> [% course.public_note | $raw %]</li>[% END %] |
53 |
</ol> |
54 |
</div> |
55 |
|
56 |
[% IF ( course_reserves ) %] |
57 |
<table id="thesis-table-items-table" class="table table-bordered table-striped table-condensed"> |
58 |
<thead> |
59 |
<tr> |
60 |
<th class="anti-the">Title</th> |
61 |
<th>Author</th> |
62 |
<th>Item type</th> |
63 |
<th>Location</th> |
64 |
<th>Collection</th> |
65 |
<th>Call number</th> |
66 |
<th>Copy number</th> |
67 |
<th>Status</th> |
68 |
<th class="title-string">Date due</th> |
69 |
<th>Notes</th> |
70 |
<th>Link</th> |
71 |
</tr> |
72 |
</thead> |
73 |
|
74 |
<tbody> |
75 |
[% FOREACH cr IN course_reserves %] |
76 |
<tr> |
77 |
<td><a href="opac-detail.pl?biblionumber=[% cr.biblio.biblionumber | uri %]">[% INCLUDE 'biblio-title-head.inc' biblio=cr.biblio %]</a></td> |
78 |
<td>[% cr.biblio.author | html %]</td> |
79 |
<td>[% ItemTypes.GetDescription( cr.item.itype ) | html %]</td> |
80 |
<td>[% Branches.GetName( cr.item.holdingbranch ) | html %] <br/> <em>[% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.location', authorised_value => cr.item.location, opac => 1 ) | html %]</em></td> |
81 |
<td>[% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.ccode', authorised_value => cr.item.ccode, opac => 1 ) | html %]</td> |
82 |
<td>[% cr.item.itemcallnumber | html %]</td> |
83 |
<td>[% cr.item.copynumber | html %]</td> |
84 |
<td>[% INCLUDE 'item-status.inc' item=cr.item issue=cr.issue %]</td> |
85 |
<td><span title="[% cr.issue.date_due | html %]">[% cr.issue.date_due | $KohaDates as_due_date => 1 %]</span></td> |
86 |
<td>[% IF ( cr.public_note ) %] |
87 |
[% cr.public_note | $raw %] |
88 |
[% ELSIF ( cr.item.itemnotes ) %] |
89 |
[% cr.item.itemnotes | $raw %] |
90 |
[% END %] |
91 |
</td> |
92 |
<td>[% IF (cr.item.uri) %] |
93 |
<a href="[% cr.item.uri | url %]">Item URI</a> |
94 |
[% ELSIF (cr.biblioitem.url) %] |
95 |
<a href="[% cr.biblioitem.url | url %]">Record URL</a> |
96 |
[% END %] |
97 |
</td> |
98 |
</tr> |
99 |
[% END %] |
100 |
</tbody> |
101 |
</table> |
102 |
[% ELSE %] |
103 |
<br style="clear:both;" /> |
104 |
<div class="alert alert-info"> |
105 |
<p>No reserves have been selected for this research table.</p> |
106 |
</div> |
107 |
[% END %] |
108 |
</div> <!-- / #course_reserves --> |
109 |
</div> <!-- / .col --> |
110 |
</div> <!-- / .row --> |
111 |
</div> <!-- / .container-fluid --> |
112 |
</div> <!-- / .main --> |
113 |
[% INCLUDE 'opac-bottom.inc' %] |
114 |
[% BLOCK jsinclude %] |
115 |
[% INCLUDE 'datatables.inc' %] |
116 |
[% INCLUDE 'columns_settings.inc' %] |
117 |
<script> |
118 |
$(document).ready(function() { |
119 |
columns_settings = [% TablesSettings.GetColumns( 'opac', 'biblio-detail', 'thesis-table-items-table', 'json' ) | $raw %]; |
120 |
KohaTable("#thesis-table-items-table", { |
121 |
"dom": '<"top"f>rt<"clear">', |
122 |
"sorting": [[ 1, "asc" ]], |
123 |
"autoWidth": false, |
124 |
}, columns_settings ); |
125 |
}); |
126 |
</script> |
127 |
[% END %] |