Lines 22-28
Link Here
|
22 |
[% empty_option || "All" %] |
22 |
[% empty_option || "All" %] |
23 |
</option> |
23 |
</option> |
24 |
[% FOREACH option IN options %] |
24 |
[% FOREACH option IN options %] |
25 |
[% IF values.grep(option.value).size %] |
25 |
[% IF values != '' && values.grep(option.value).size %] |
26 |
<option value="[% option.value %]" selected="selected">[% option.label %]</option> |
26 |
<option value="[% option.value %]" selected="selected">[% option.label %]</option> |
27 |
[% ELSE %] |
27 |
[% ELSE %] |
28 |
<option value="[% option.value %]">[% option.label %]</option> |
28 |
<option value="[% option.value %]">[% option.label %]</option> |
Lines 210-215
Link Here
|
210 |
$('#results').dataTable($.extend(true, {}, dataTablesDefaults, { |
210 |
$('#results').dataTable($.extend(true, {}, dataTablesDefaults, { |
211 |
'bDestroy': true, |
211 |
'bDestroy': true, |
212 |
'bServerSide': true, |
212 |
'bServerSide': true, |
|
|
213 |
'bProcessing': true, |
213 |
'sAjaxSource': '/cgi-bin/koha/catalogue/itemsearch.pl', |
214 |
'sAjaxSource': '/cgi-bin/koha/catalogue/itemsearch.pl', |
214 |
'fnServerParams': function(aoData) { |
215 |
'fnServerParams': function(aoData) { |
215 |
aoData.push( { 'name': 'format', 'value': 'json' } ); |
216 |
aoData.push( { 'name': 'format', 'value': 'json' } ); |
Lines 217-223
Link Here
|
217 |
aoData.push(params[i]); |
218 |
aoData.push(params[i]); |
218 |
} |
219 |
} |
219 |
}, |
220 |
}, |
220 |
'sDom': '<"top pager"ilp>t<"bottom pager"ip>', |
221 |
'sDom': '<"top pager"ilp>t<"bottom pager"ip>r', |
221 |
'aoColumns': [ |
222 |
'aoColumns': [ |
222 |
{ 'sName': 'title' }, |
223 |
{ 'sName': 'title' }, |
223 |
{ 'sName': 'publicationyear' }, |
224 |
{ 'sName': 'publicationyear' }, |
Lines 345-350
Link Here
|
345 |
options = ccodes |
346 |
options = ccodes |
346 |
empty_option = "All collection codes" |
347 |
empty_option = "All collection codes" |
347 |
%] |
348 |
%] |
|
|
349 |
[% INCLUDE form_field_select |
350 |
name="notforloan" |
351 |
label="Status" |
352 |
options = notforloans |
353 |
empty_option = "All statuses" |
354 |
%] |
348 |
</fieldset> |
355 |
</fieldset> |
349 |
<fieldset> |
356 |
<fieldset> |
350 |
[% INCLUDE form_field_select_text_block %] |
357 |
[% INCLUDE form_field_select_text_block %] |
351 |
- |
|
|