Lines 1-5
Link Here
|
1 |
[% INCLUDE 'doc-head-open.inc' %] |
1 |
[% INCLUDE 'doc-head-open.inc' %] |
2 |
[% USE KohaDates %] |
2 |
[% USE KohaDates %] |
|
|
3 |
[% USE KohaAuthorisedValues %] |
3 |
<title>Koha › Serials [% biblionumber %]</title> |
4 |
<title>Koha › Serials [% biblionumber %]</title> |
4 |
<link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" /> |
5 |
<link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" /> |
5 |
[% INCLUDE 'doc-head-close.inc' %] |
6 |
[% INCLUDE 'doc-head-close.inc' %] |
Lines 14-19
Link Here
|
14 |
[% END %] |
15 |
[% END %] |
15 |
var osrlt = $("#osrlt").dataTable($.extend(true, {}, dataTablesDefaults, { |
16 |
var osrlt = $("#osrlt").dataTable($.extend(true, {}, dataTablesDefaults, { |
16 |
|
17 |
|
|
|
18 |
// FIXME sort function of additional_fields! |
17 |
"aoColumnDefs": [ |
19 |
"aoColumnDefs": [ |
18 |
{ "aTargets": [ -1, -2, -3 ], "bSortable": false, "bSearchable": false }, |
20 |
{ "aTargets": [ -1, -2, -3 ], "bSortable": false, "bSearchable": false }, |
19 |
], |
21 |
], |
Lines 21-26
Link Here
|
21 |
} ) ); |
23 |
} ) ); |
22 |
|
24 |
|
23 |
var csrlt = $("#csrlt").dataTable($.extend(true, {}, dataTablesDefaults, { |
25 |
var csrlt = $("#csrlt").dataTable($.extend(true, {}, dataTablesDefaults, { |
|
|
26 |
// FIXME sort function of additional_fields! |
24 |
"aoColumnDefs": [ |
27 |
"aoColumnDefs": [ |
25 |
{ "aTargets": [ -1, -2 ], "bSortable": false, "bSearchable": false }, |
28 |
{ "aTargets": [ -1, -2 ], "bSortable": false, "bSearchable": false }, |
26 |
], |
29 |
], |
Lines 92-97
Link Here
|
92 |
[% END %] |
95 |
[% END %] |
93 |
</select> |
96 |
</select> |
94 |
</li> |
97 |
</li> |
|
|
98 |
[% FOR field IN additional_fields_for_subscription %] |
99 |
<li> |
100 |
<label for="additional_field_[% field.name %]"> [% field.name %]: </label> |
101 |
[% IF field.authorised_value_choices %] |
102 |
<select id="additional_field_[% field.name %]" name="additional_field_[% field.name %]_filter"> |
103 |
<option value="">All</option> |
104 |
[% FOREACH av IN field.authorised_value_choices %] |
105 |
<option value="[% av.authorised_value %]">[% av.lib %]</option> |
106 |
[% END %] |
107 |
</select> |
108 |
[% ELSE %] |
109 |
<input id="additional_field_[% field.name %]" type="text" value="[% additional_fields.${field.name} %]" name="additional_field_[% field.name %]_filter" /> |
110 |
[% END %] |
111 |
</li> |
112 |
[% END %] |
95 |
</ol> |
113 |
</ol> |
96 |
<input type="hidden" name="searched" value="1" /> |
114 |
<input type="hidden" name="searched" value="1" /> |
97 |
<fieldset class="action"> |
115 |
<fieldset class="action"> |
Lines 119-124
Link Here
|
119 |
<th>Library</th> |
137 |
<th>Library</th> |
120 |
<th>Call number</th> |
138 |
<th>Call number</th> |
121 |
<th>Expiration date</th> |
139 |
<th>Expiration date</th> |
|
|
140 |
[% FOR field IN additional_fields_for_subscription %] |
141 |
<th>[% field.name %]</th> |
142 |
[% END %] |
122 |
[% IF ( routing && CAN_user_serials_routing ) %] |
143 |
[% IF ( routing && CAN_user_serials_routing ) %] |
123 |
<th>Routing list</th> |
144 |
<th>Routing list</th> |
124 |
[% END %] |
145 |
[% END %] |
Lines 134-139
Link Here
|
134 |
<td><input type="text" class="filter" data-column_num="3" placeholder="Search library" /></td> |
155 |
<td><input type="text" class="filter" data-column_num="3" placeholder="Search library" /></td> |
135 |
<td><input type="text" class="filter" data-column_num="4" placeholder="Search callnumber" /></td> |
156 |
<td><input type="text" class="filter" data-column_num="4" placeholder="Search callnumber" /></td> |
136 |
<td><input type="text" class="filter" data-column_num="5" placeholder="Search expiration date" /></td> |
157 |
<td><input type="text" class="filter" data-column_num="5" placeholder="Search expiration date" /></td> |
|
|
158 |
[% FOR field IN additional_fields_for_subscription %] |
159 |
<td><input type="text" class="filter" data-column_num="[% loop.count + 5 %]" placeholder="Search [% field.name %]" /></td> |
160 |
[% END %] |
137 |
[% IF ( routing && CAN_user_serials_routing ) %]<td></td>[% END %] |
161 |
[% IF ( routing && CAN_user_serials_routing ) %]<td></td>[% END %] |
138 |
<td></td> |
162 |
<td></td> |
139 |
<td></td> |
163 |
<td></td> |
Lines 161-166
Link Here
|
161 |
[% IF ( subscription.enddate ) %][% subscription.enddate | $KohaDates %][% END %] |
185 |
[% IF ( subscription.enddate ) %][% subscription.enddate | $KohaDates %][% END %] |
162 |
</td> |
186 |
</td> |
163 |
[% IF ( routing && CAN_user_serials_routing ) %] |
187 |
[% IF ( routing && CAN_user_serials_routing ) %] |
|
|
188 |
[% END %] |
189 |
[% FOR field IN additional_fields_for_subscription %] |
190 |
[% IF field.authorised_value_category %] |
191 |
<td>[% KohaAuthorisedValues.GetByCode( field.authorised_value_category, subscription.additional_fields.${field.name} ) %]</td> |
192 |
[% ELSE %] |
193 |
<td>[% subscription.additional_fields.${field.name} %]</td> |
194 |
[% END %] |
195 |
[% END %] |
196 |
<td><a href="/cgi-bin/koha/serials/serials-collection.pl?subscriptionid=[% subscription.subscriptionid %]">Issue history</a> |
197 |
</td> |
164 |
<td> |
198 |
<td> |
165 |
[% IF ( subscription.cannotedit ) %] |
199 |
[% IF ( subscription.cannotedit ) %] |
166 |
|
200 |
|
Lines 173-181
Link Here
|
173 |
[% END %] |
207 |
[% END %] |
174 |
[% END %] |
208 |
[% END %] |
175 |
</td> |
209 |
</td> |
176 |
[% END %] |
|
|
177 |
<td><a href="/cgi-bin/koha/serials/serials-collection.pl?subscriptionid=[% subscription.subscriptionid %]">Issue history</a> |
178 |
</td> |
179 |
<td> |
210 |
<td> |
180 |
[% IF ( subscription.cannotedit ) %] |
211 |
[% IF ( subscription.cannotedit ) %] |
181 |
|
212 |
|
Lines 196-201
Link Here
|
196 |
<div id="closed"> |
227 |
<div id="closed"> |
197 |
[% IF closedsubscriptions %] |
228 |
[% IF closedsubscriptions %] |
198 |
<table id="csrlt"> |
229 |
<table id="csrlt"> |
|
|
230 |
<!-- FIXME add additional_fields for closed subs --> |
199 |
<thead> |
231 |
<thead> |
200 |
<tr> |
232 |
<tr> |
201 |
<th>ISSN</th> |
233 |
<th>ISSN</th> |
Lines 312-317
Link Here
|
312 |
[% END %] |
344 |
[% END %] |
313 |
</select> |
345 |
</select> |
314 |
</li> |
346 |
</li> |
|
|
347 |
[% FOR field IN additional_fields_for_subscription %] |
348 |
<li> |
349 |
<label for="additional_field_[% field.name %]"> [% field.name %]: </label> |
350 |
[% IF field.authorised_value_choices %] |
351 |
<select id="additional_field_[% field.name %]" name="additional_field_[% field.name %]_filter"> |
352 |
<option value="">All</option> |
353 |
[% FOREACH av IN field.authorised_value_choices %] |
354 |
[% IF av.authorised_value == additional_field_filters.${field.name} %] |
355 |
<option value="[% av.authorised_value %]" selected="selected">[% av.lib %]</option> |
356 |
[% ELSE %] |
357 |
<option value="[% av.authorised_value %]">[% av.lib %]</option> |
358 |
[% END %] |
359 |
[% END %] |
360 |
</select> |
361 |
[% ELSE %] |
362 |
<input id="additional_field_[% field.name %]" type="text" value="[% additional_field_filters.${field.name} %]" name="additional_field_[% field.name %]_filter" /> |
363 |
[% END %] |
364 |
</li> |
365 |
[% END %] |
315 |
</ol> |
366 |
</ol> |
316 |
<input type="hidden" name="searched" value="1" /> |
367 |
<input type="hidden" name="searched" value="1" /> |
317 |
<fieldset class="action"> |
368 |
<fieldset class="action"> |