Lines 900-910
Link Here
|
900 |
[% SWITCH c %] |
900 |
[% SWITCH c %] |
901 |
[% CASE 'branch' %] |
901 |
[% CASE 'branch' %] |
902 |
let library_id = patron_search_form.find(".branchcode_filter").val() || ""; |
902 |
let library_id = patron_search_form.find(".branchcode_filter").val() || ""; |
903 |
patrons_table.find('thead tr:eq(1) th[data-filter="libraries"] select').val(library_id); |
903 |
patrons_table.find('thead tr:eq(1) th[data-filter="libraries"] select').val('^' + library_id + '$'); |
904 |
table_dt.column([% loop.count - 1 %]).search(library_id ? '^'+library_id+'$' : ''); |
904 |
table_dt.column([% loop.count - 1 %]).search(library_id ? '^'+library_id+'$' : ''); |
905 |
[% CASE 'category' %] |
905 |
[% CASE 'category' %] |
906 |
let category_id = patron_search_form.find(".categorycode_filter").val() || ""; |
906 |
let category_id = patron_search_form.find(".categorycode_filter").val() || ""; |
907 |
patrons_table.find('thead tr:eq(1) th[data-filter="categories"] select').val(category_id.toLowerCase()); |
907 |
patrons_table.find('thead tr:eq(1) th[data-filter="categories"] select').val('^' + category_id.toLowerCase() + '$'); |
908 |
table_dt.column([% loop.count - 1 %]).search(category_id ? '^'+category_id+'$' : ''); |
908 |
table_dt.column([% loop.count - 1 %]).search(category_id ? '^'+category_id+'$' : ''); |
909 |
[% END %] |
909 |
[% END %] |
910 |
[% END %] |
910 |
[% END %] |
911 |
- |
|
|