|
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 162-167
Link Here
|
| 162 |
[% IF ( subscription.enddate ) %][% subscription.enddate | $KohaDates %][% END %] |
186 |
[% IF ( subscription.enddate ) %][% subscription.enddate | $KohaDates %][% END %] |
| 163 |
</td> |
187 |
</td> |
| 164 |
[% IF ( routing && CAN_user_serials_routing ) %] |
188 |
[% IF ( routing && CAN_user_serials_routing ) %] |
|
|
189 |
[% END %] |
| 190 |
[% FOR field IN additional_fields_for_subscription %] |
| 191 |
[% IF field.authorised_value_category %] |
| 192 |
<td>[% KohaAuthorisedValues.GetByCode( field.authorised_value_category, subscription.additional_fields.${field.name} ) %]</td> |
| 193 |
[% ELSE %] |
| 194 |
<td>[% subscription.additional_fields.${field.name} %]</td> |
| 195 |
[% END %] |
| 196 |
[% END %] |
| 197 |
<td><a href="/cgi-bin/koha/serials/serials-collection.pl?subscriptionid=[% subscription.subscriptionid %]">Issue history</a> |
| 198 |
</td> |
| 165 |
<td> |
199 |
<td> |
| 166 |
[% IF ( subscription.cannotedit ) %] |
200 |
[% IF ( subscription.cannotedit ) %] |
| 167 |
|
201 |
|
|
Lines 174-182
Link Here
|
| 174 |
[% END %] |
208 |
[% END %] |
| 175 |
[% END %] |
209 |
[% END %] |
| 176 |
</td> |
210 |
</td> |
| 177 |
[% END %] |
|
|
| 178 |
<td><a href="/cgi-bin/koha/serials/serials-collection.pl?subscriptionid=[% subscription.subscriptionid %]">Issue history</a> |
| 179 |
</td> |
| 180 |
<td> |
211 |
<td> |
| 181 |
[% IF ( CAN_user_serials_receive_serials ) %] |
212 |
[% IF ( CAN_user_serials_receive_serials ) %] |
| 182 |
<a href="/cgi-bin/koha/serials/serials-edit.pl?subscriptionid=[% subscription.subscriptionid %]&serstatus=1,3,7">Serial receive</a> |
213 |
<a href="/cgi-bin/koha/serials/serials-edit.pl?subscriptionid=[% subscription.subscriptionid %]&serstatus=1,3,7">Serial receive</a> |
|
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 314-319
Link Here
|
| 314 |
[% END %] |
346 |
[% END %] |
| 315 |
</select> |
347 |
</select> |
| 316 |
</li> |
348 |
</li> |
|
|
349 |
[% FOR field IN additional_fields_for_subscription %] |
| 350 |
<li> |
| 351 |
<label for="additional_field_[% field.name %]"> [% field.name %]: </label> |
| 352 |
[% IF field.authorised_value_choices %] |
| 353 |
<select id="additional_field_[% field.name %]" name="additional_field_[% field.name %]_filter"> |
| 354 |
<option value="">All</option> |
| 355 |
[% FOREACH av IN field.authorised_value_choices %] |
| 356 |
[% IF av.authorised_value == additional_field_filters.${field.name} %] |
| 357 |
<option value="[% av.authorised_value %]" selected="selected">[% av.lib %]</option> |
| 358 |
[% ELSE %] |
| 359 |
<option value="[% av.authorised_value %]">[% av.lib %]</option> |
| 360 |
[% END %] |
| 361 |
[% END %] |
| 362 |
</select> |
| 363 |
[% ELSE %] |
| 364 |
<input id="additional_field_[% field.name %]" type="text" value="[% additional_field_filters.${field.name} %]" name="additional_field_[% field.name %]_filter" /> |
| 365 |
[% END %] |
| 366 |
</li> |
| 367 |
[% END %] |
| 317 |
</ol> |
368 |
</ol> |
| 318 |
<input type="hidden" name="searched" value="1" /> |
369 |
<input type="hidden" name="searched" value="1" /> |
| 319 |
<fieldset class="action"> |
370 |
<fieldset class="action"> |