|
Lines 228-233
Link Here
|
| 228 |
[%# display_search_description: boolean, default off. Display the description of the search %] |
228 |
[%# display_search_description: boolean, default off. Display the description of the search %] |
| 229 |
[%# adjust_history: boolean, default off. Change the current url when a first letter is selected %] |
229 |
[%# adjust_history: boolean, default off. Change the current url when a first letter is selected %] |
| 230 |
[%# defer_loading: boolean, default on. If true, it will not load the table until a search is triggered %] |
230 |
[%# defer_loading: boolean, default on. If true, it will not load the table until a search is triggered %] |
|
|
231 |
[%# empty_table_settings: boolean, default off. If true, it will ensure no table_settings are utilized %] |
| 231 |
[% BLOCK patron_search_js %] |
232 |
[% BLOCK patron_search_js %] |
| 232 |
|
233 |
|
| 233 |
[% IF redirect_if_one_result && !redirect_url %] |
234 |
[% IF redirect_if_one_result && !redirect_url %] |
|
Lines 282-287
Link Here
|
| 282 |
av_bsort2, |
283 |
av_bsort2, |
| 283 |
}; |
284 |
}; |
| 284 |
|
285 |
|
|
|
286 |
var empty_table_settings = '[% empty_table_settings | html %]' |
| 287 |
|
| 285 |
[% IF Koha.Preference('ExtendedPatronAttributes') %] |
288 |
[% IF Koha.Preference('ExtendedPatronAttributes') %] |
| 286 |
[% SET extended_attribute_types = ExtendedAttributeTypes.codes( staff_searchable => 1, searched_by_default => 1 ) %] |
289 |
[% SET extended_attribute_types = ExtendedAttributeTypes.codes( staff_searchable => 1, searched_by_default => 1 ) %] |
| 287 |
[% IF ( extended_attribute_types ) %][% extended_attribute_types = [ extended_attribute_types ] %][% END %] |
290 |
[% IF ( extended_attribute_types ) %][% extended_attribute_types = [ extended_attribute_types ] %][% END %] |
|
Lines 790-796
Link Here
|
| 790 |
}, |
793 |
}, |
| 791 |
[% END %] |
794 |
[% END %] |
| 792 |
fixedHeader: false, |
795 |
fixedHeader: false, |
| 793 |
}, typeof table_settings !== 'undefined' ? table_settings : null, 1, additional_filters, filters_options, external_filter_nodes, parent_block.find(".search_description"), additional_search_descriptions ); |
796 |
}, typeof table_settings !== 'undefined' && !empty_table_settings ? table_settings : null, 1, additional_filters, filters_options, external_filter_nodes, parent_block.find(".search_description"), additional_search_descriptions ); |
| 794 |
|
797 |
|
| 795 |
patron_search_form.on('submit', filter); |
798 |
patron_search_form.on('submit', filter); |
| 796 |
patron_search_form.on('submit', update_search_type); |
799 |
patron_search_form.on('submit', update_search_type); |