View | Details | Raw Unified | Return to bug 40504
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc (-1 / +4 lines)
Lines 236-241 Link Here
236
[%# display_search_description: boolean, default off. Display the description of the search %]
236
[%# display_search_description: boolean, default off. Display the description of the search %]
237
[%# adjust_history: boolean, default off. Change the current url when a first letter is selected %]
237
[%# adjust_history: boolean, default off. Change the current url when a first letter is selected %]
238
[%# defer_loading: boolean, default on. If true, it will not load the table until a search is triggered %]
238
[%# defer_loading: boolean, default on. If true, it will not load the table until a search is triggered %]
239
[%# empty_table_settings: boolean, default off. If true, it will ensure no table_settings are utilized %]
239
[% BLOCK patron_search_js %]
240
[% BLOCK patron_search_js %]
240
241
241
    [% IF redirect_if_one_result && !redirect_url %]
242
    [% IF redirect_if_one_result && !redirect_url %]
Lines 285-290 Link Here
285
            return map;
286
            return map;
286
        }, {});
287
        }, {});
287
288
289
        var empty_table_settings = '[% empty_table_settings | html %]'
290
288
        [% IF Koha.Preference('ExtendedPatronAttributes') %]
291
        [% IF Koha.Preference('ExtendedPatronAttributes') %]
289
            [% SET extended_attribute_types = ExtendedAttributeTypes.codes( staff_searchable => 1, searched_by_default => 1 ) %]
292
            [% SET extended_attribute_types = ExtendedAttributeTypes.codes( staff_searchable => 1, searched_by_default => 1 ) %]
290
            [% IF ( extended_attribute_types ) %][% extended_attribute_types = [ extended_attribute_types ]  %][% END %]
293
            [% IF ( extended_attribute_types ) %][% extended_attribute_types = [ extended_attribute_types ]  %][% END %]
Lines 783-789 Link Here
783
                        },
786
                        },
784
                    [% END %]
787
                    [% END %]
785
                    fixedHeader: false,
788
                    fixedHeader: false,
786
                }, typeof table_settings !== 'undefined' ? table_settings : null, 1, additional_filters, undefined, external_filter_nodes, parent_block.find(".search_description"), additional_search_descriptions );
789
                }, typeof table_settings !== 'undefined' && !empty_table_settings ? table_settings : null, 1, additional_filters, undefined, external_filter_nodes, parent_block.find(".search_description"), additional_search_descriptions );
787
790
788
                patron_search_form.on('submit', filter);
791
                patron_search_form.on('submit', filter);
789
                patron_search_form.on('submit', update_search_type);
792
                patron_search_form.on('submit', update_search_type);
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/select_manager.inc (-1 / +1 lines)
Lines 14-19 Link Here
14
        preview_on_name_click => 1,
14
        preview_on_name_click => 1,
15
        table_id => 'patron_search_modal_manager_table',
15
        table_id => 'patron_search_modal_manager_table',
16
        callback => 'select_manager'
16
        callback => 'select_manager'
17
        empty_table_settings => 1
17
    %]
18
    %]
18
[% END %]
19
[% END %]
19
<script>
20
<script>
20
- 

Return to bug 40504