From b719bfb6bdb27363029e7c924b2f340d3f683b1c Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Thu, 17 Oct 2024 14:41:23 +0200 Subject: [PATCH] Bug 33484: External filter into state - patron search Signed-off-by: Pedro Amorim Signed-off-by: Jonathan Druart Signed-off-by: Martin Renvoize Signed-off-by: Katrin Fischer --- .../intranet-tmpl/prog/en/includes/patron-search.inc | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc index 7af7ba0ac1..708a82b45e 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc @@ -406,6 +406,14 @@ return filters; } }; + let external_filter_nodes = { + search_patron_filter: '.search_patron_filter', + firstletter_filter: '.firstletter_filter', + searchtype_filter: '.searchtype_filter', + searchfieldstype_filter: '.searchfieldstype_filter', + categorycode_filter: '.categorycode_filter', + branchcode_filter: '.branchcode_filter' + }; [% UNLESS default_sort_column %] [% default_sort_column = "name" %] @@ -717,7 +725,7 @@ }, [% END %] fixedHeader: false, - }, typeof table_settings !== 'undefined' ? table_settings : null, 1, additional_filters); + }, typeof table_settings !== 'undefined' ? table_settings : null, 1, additional_filters, undefined, external_filter_nodes); patron_search_form.on('submit', filter); patron_search_form.on('submit', update_search_type); -- 2.39.5