Lines 23-29
Link Here
|
23 |
[%# - sort2: select patron sort2 field %] |
23 |
[%# - sort2: select patron sort2 field %] |
24 |
[%# - search_field: select patron field list %] |
24 |
[%# - search_field: select patron field list %] |
25 |
[%# - search_type: select 'contains' or 'starts with' %] |
25 |
[%# - search_type: select 'contains' or 'starts with' %] |
26 |
[%- SET searchtype = Koha.Preference('DefaultPatronSearchMethod') -%] |
26 |
[%- searchtype = searchtype || Koha.Preference('DefaultPatronSearchMethod') -%] |
27 |
[% BLOCK patron_search_filters %] |
27 |
[% BLOCK patron_search_filters %] |
28 |
<form id="patron_search_form"> |
28 |
<form id="patron_search_form"> |
29 |
<fieldset class="brief"> |
29 |
<fieldset class="brief"> |
Lines 318-324
Link Here
|
318 |
"-and": function(){ |
318 |
"-and": function(){ |
319 |
let filters = []; |
319 |
let filters = []; |
320 |
|
320 |
|
321 |
let search_type = $("#searchtype_filter").val() || "contains"; |
321 |
let search_type = $("#searchtype_filter").val(); |
322 |
let search_fields = $("#searchfieldstype_filter").val() || "standard"; |
322 |
let search_fields = $("#searchfieldstype_filter").val() || "standard"; |
323 |
let pattern = $("#search_patron_filter").val(); |
323 |
let pattern = $("#search_patron_filter").val(); |
324 |
|
324 |
|
Lines 817-823
Link Here
|
817 |
|
817 |
|
818 |
function clearFilters() { |
818 |
function clearFilters() { |
819 |
$("#searchfieldstype_filter option:first").prop("selected", true); |
819 |
$("#searchfieldstype_filter option:first").prop("selected", true); |
820 |
$("#searchtype_filter option[value='[% searchtype || 'contains' | html %]']").prop("selected", true); |
820 |
$("#searchtype_filter option[value='[% searchtype | html %]']").prop("selected", true); |
821 |
$("#categorycode_filter option:first").prop("selected", true); |
821 |
$("#categorycode_filter option:first").prop("selected", true); |
822 |
$("#branchcode_filter option:first").prop("selected", true); |
822 |
$("#branchcode_filter option:first").prop("selected", true); |
823 |
$("#sort1_filter").val('').trigger("change"); |
823 |
$("#sort1_filter").val('').trigger("change"); |