|
Lines 20-25
Link Here
|
| 20 |
} ) ); |
20 |
} ) ); |
| 21 |
|
21 |
|
| 22 |
var csrlt = $("#csrlt").dataTable($.extend(true, {}, dataTablesDefaults, { |
22 |
var csrlt = $("#csrlt").dataTable($.extend(true, {}, dataTablesDefaults, { |
|
|
23 |
// FIXME sort function of additional_fields! |
| 23 |
"sPaginationType": "four_button", |
24 |
"sPaginationType": "four_button", |
| 24 |
"aoColumnDefs": [ |
25 |
"aoColumnDefs": [ |
| 25 |
{ 'bSortable': false, 'aTargets': [ 'NoSort' ] }, |
26 |
{ 'bSortable': false, 'aTargets': [ 'NoSort' ] }, |
|
Lines 116-121
Link Here
|
| 116 |
<label for="to">Expires before:</label> |
117 |
<label for="to">Expires before:</label> |
| 117 |
<input type="text" id="to" name="expiration_date_filter" value="[% expiration_date_filter | $KohaDates %]" size="10" maxlength="10" class="datepickerto" /> |
118 |
<input type="text" id="to" name="expiration_date_filter" value="[% expiration_date_filter | $KohaDates %]" size="10" maxlength="10" class="datepickerto" /> |
| 118 |
</li> |
119 |
</li> |
|
|
120 |
[% FOR field IN additional_fields_for_subscription %] |
| 121 |
<li> |
| 122 |
<label for="additional_field_[% field.id %]"> [% field.name %]: </label> |
| 123 |
[% IF field.authorised_value_choices %] |
| 124 |
<select id="additional_field_[% field.id %]" name="additional_field_[% field.id %]_filter"> |
| 125 |
<option value="">All</option> |
| 126 |
[% FOREACH av IN field.authorised_value_choices %] |
| 127 |
<option value="[% av.authorised_value %]">[% av.lib %]</option> |
| 128 |
[% END %] |
| 129 |
</select> |
| 130 |
[% ELSE %] |
| 131 |
<input id="additional_field_[% field.id %]" type="text" value="[% additional_fields.${field.name} %]" name="additional_field_[% field.id %]_filter" /> |
| 132 |
[% END %] |
| 133 |
</li> |
| 134 |
[% END %] |
| 119 |
</ol> |
135 |
</ol> |
| 120 |
<input type="hidden" name="searched" value="1" /> |
136 |
<input type="hidden" name="searched" value="1" /> |
| 121 |
<fieldset class="action"> |
137 |
<fieldset class="action"> |
|
Lines 144-149
Link Here
|
| 144 |
<th>Location</th> |
160 |
<th>Location</th> |
| 145 |
<th>Call number</th> |
161 |
<th>Call number</th> |
| 146 |
<th class="title-string">Expiration date</th> |
162 |
<th class="title-string">Expiration date</th> |
|
|
163 |
[% FOR field IN additional_fields_for_subscription %] |
| 164 |
<th>[% field.name %]</th> |
| 165 |
[% END %] |
| 147 |
<th class="NoSort">Actions</th> |
166 |
<th class="NoSort">Actions</th> |
| 148 |
</tr> |
167 |
</tr> |
| 149 |
</thead> |
168 |
</thead> |
|
Lines 156-161
Link Here
|
| 156 |
<td><input type="text" class="dt-filter" data-column_num="4" placeholder="Search location" /></td> |
175 |
<td><input type="text" class="dt-filter" data-column_num="4" placeholder="Search location" /></td> |
| 157 |
<td><input type="text" class="dt-filter" data-column_num="5" placeholder="Search callnumber" /></td> |
176 |
<td><input type="text" class="dt-filter" data-column_num="5" placeholder="Search callnumber" /></td> |
| 158 |
<td><input type="text" class="dt-filter" data-column_num="6" placeholder="Search expiration date" /></td> |
177 |
<td><input type="text" class="dt-filter" data-column_num="6" placeholder="Search expiration date" /></td> |
|
|
178 |
[% FOR field IN additional_fields_for_subscription %] |
| 179 |
<td><input type="text" class="dt-filter" data-column_num="[% loop.count + 6 %]" placeholder="Search [% field.name %]" /></td> |
| 180 |
[% END %] |
| 159 |
<td></td> |
181 |
<td></td> |
| 160 |
</tr> |
182 |
</tr> |
| 161 |
</tfoot> |
183 |
</tfoot> |
|
Lines 189-194
Link Here
|
| 189 |
[% END %] |
211 |
[% END %] |
| 190 |
</td> |
212 |
</td> |
| 191 |
|
213 |
|
|
|
214 |
[% FOR field IN additional_fields_for_subscription %] |
| 215 |
[% IF field.authorised_value_category %] |
| 216 |
<td>[% AuthorisedValues.GetByCode( field.authorised_value_category, subscription.additional_fields.${field.name} ) %]</td> |
| 217 |
[% ELSE %] |
| 218 |
<td>[% subscription.additional_fields.${field.name} %]</td> |
| 219 |
[% END %] |
| 220 |
[% END %] |
| 221 |
|
| 192 |
<td> |
222 |
<td> |
| 193 |
<div class="dropdown"> |
223 |
<div class="dropdown"> |
| 194 |
<a class="btn btn-mini dropdown-toggle" id="subactions[% subscription.subscriptionid %]" role="button" data-toggle="dropdown" href="#"> |
224 |
<a class="btn btn-mini dropdown-toggle" id="subactions[% subscription.subscriptionid %]" role="button" data-toggle="dropdown" href="#"> |
|
Lines 237-242
Link Here
|
| 237 |
<div id="closed"> |
267 |
<div id="closed"> |
| 238 |
[% IF closedsubscriptions %] |
268 |
[% IF closedsubscriptions %] |
| 239 |
<table id="csrlt"> |
269 |
<table id="csrlt"> |
|
|
270 |
<!-- FIXME add additional_fields for closed subs --> |
| 240 |
<thead> |
271 |
<thead> |
| 241 |
<tr> |
272 |
<tr> |
| 242 |
<th>ISSN</th> |
273 |
<th>ISSN</th> |
|
Lines 245-250
Link Here
|
| 245 |
<th>Library</th> |
276 |
<th>Library</th> |
| 246 |
<th>Location</th> |
277 |
<th>Location</th> |
| 247 |
<th>Call number</th> |
278 |
<th>Call number</th> |
|
|
279 |
[% FOR field IN additional_fields_for_subscription %] |
| 280 |
<th>[% field.name %]</th> |
| 281 |
[% END %] |
| 248 |
<th class="NoSort">Actions</th> |
282 |
<th class="NoSort">Actions</th> |
| 249 |
</tr> |
283 |
</tr> |
| 250 |
</thead> |
284 |
</thead> |
|
Lines 256-261
Link Here
|
| 256 |
<td><input type="text" class="dt-filter" data-column_num="3" placeholder="Search library" /></td> |
290 |
<td><input type="text" class="dt-filter" data-column_num="3" placeholder="Search library" /></td> |
| 257 |
<td><input type="text" class="dt-filter" data-column_num="4" placeholder="Search location" /></td> |
291 |
<td><input type="text" class="dt-filter" data-column_num="4" placeholder="Search location" /></td> |
| 258 |
<td><input type="text" class="dt-filter" data-column_num="5" placeholder="Search callnumber" /></td> |
292 |
<td><input type="text" class="dt-filter" data-column_num="5" placeholder="Search callnumber" /></td> |
|
|
293 |
[% FOR field IN additional_fields_for_subscription %] |
| 294 |
<td><input type="text" class="dt-filter" data-column_num="[% loop.count + 5 %]" placeholder="Search [% field.name %]" /></td> |
| 295 |
[% END %] |
| 259 |
<td></td> |
296 |
<td></td> |
| 260 |
</tr> |
297 |
</tr> |
| 261 |
</tfoot> |
298 |
</tfoot> |
|
Lines 284-289
Link Here
|
| 284 |
<td> |
321 |
<td> |
| 285 |
[% IF ( subscription.callnumber ) %][% subscription.callnumber %][% END %] |
322 |
[% IF ( subscription.callnumber ) %][% subscription.callnumber %][% END %] |
| 286 |
</td> |
323 |
</td> |
|
|
324 |
[% FOR field IN additional_fields_for_subscription %] |
| 325 |
[% IF field.authorised_value_category %] |
| 326 |
<td>[% KohaAuthorisedValues.GetByCode( field.authorised_value_category, subscription.additional_fields.${field.name} ) %]</td> |
| 327 |
[% ELSE %] |
| 328 |
<td>[% subscription.additional_fields.${field.name} %]</td> |
| 329 |
[% END %] |
| 330 |
[% END %] |
| 287 |
<td> |
331 |
<td> |
| 288 |
<div class="dropdown"> |
332 |
<div class="dropdown"> |
| 289 |
<a class="btn btn-mini dropdown-toggle" id="closedsubactions[% subscription.subscriptionid %]" role="button" data-toggle="dropdown" href="#"> |
333 |
<a class="btn btn-mini dropdown-toggle" id="closedsubactions[% subscription.subscriptionid %]" role="button" data-toggle="dropdown" href="#"> |
|
Lines 394-399
Link Here
|
| 394 |
<input type="text" id="to" name="expiration_date_filter" value="[% expiration_date_filter | $KohaDates %]" size="10" maxlength="10" class="datepickerto" /> |
438 |
<input type="text" id="to" name="expiration_date_filter" value="[% expiration_date_filter | $KohaDates %]" size="10" maxlength="10" class="datepickerto" /> |
| 395 |
</li> |
439 |
</li> |
| 396 |
|
440 |
|
|
|
441 |
[% FOR field IN additional_fields_for_subscription %] |
| 442 |
<li> |
| 443 |
<label for="additional_field_[% field.id %]ID"> [% field.name %]: </label> |
| 444 |
[% IF field.authorised_value_choices %] |
| 445 |
<select id="additional_field_[% field.id %]" name="additional_field_[% field.id %]_filter"> |
| 446 |
<option value="">All</option> |
| 447 |
[% FOREACH av IN field.authorised_value_choices %] |
| 448 |
[% IF av.authorised_value == additional_field_filters.${field.name} %] |
| 449 |
<option value="[% av.authorised_value %]" selected="selected">[% av.lib %]</option> |
| 450 |
[% ELSE %] |
| 451 |
<option value="[% av.authorised_value %]">[% av.lib %]</option> |
| 452 |
[% END %] |
| 453 |
[% END %] |
| 454 |
</select> |
| 455 |
[% ELSE %] |
| 456 |
<input id="additional_field_[% field.id %]" type="text" value="[% additional_field_filters.${field.name} %]" name="additional_field_[% field.id %]_filter" /> |
| 457 |
[% END %] |
| 458 |
</li> |
| 459 |
[% END %] |
| 397 |
</ol> |
460 |
</ol> |
| 398 |
<input type="hidden" name="searched" value="1" /> |
461 |
<input type="hidden" name="searched" value="1" /> |
| 399 |
<fieldset class="action"> |
462 |
<fieldset class="action"> |