From e3a7eb42c7d08e76bfeedbf8247de92e89ec1267 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 15 Feb 2022 11:18:09 +0100 Subject: [PATCH] Bug 30063: Display search description for main search only --- .../prog/en/includes/patron-search.inc | 13 ++++++++++--- .../intranet-tmpl/prog/en/modules/members/member.tt | 1 + 2 files changed, 11 insertions(+), 3 deletions(-) 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 7e50abceb39..3baf5dcef4d 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc @@ -202,6 +202,7 @@ [%# actions: list of buttons to display in the action column. Possible values are: 'select', 'add', 'edit', 'checkout' %] [%# sticky_header and sticky_to: If we need a sticky header %] [%# callback: name of the JS function that will be called when a patron is selected. Only work with action=select %] +[%# display_search_description: boolean, default off. Display the description of the search %] [% BLOCK patron_search_js %] [% IF redirect_if_one_result && !redirect_url %] @@ -712,7 +713,9 @@ table_dt.search(""); first_draw = 1; // Only redirect if we are coming from here table_dt.draw(); - update_search_description(); + [% IF display_search_description %] + update_search_description(); + [% END %] return false; } @@ -726,7 +729,9 @@ /* remove any search string added by firstletter search */ history.pushState( {}, null, window.location.href.split("?" )[0]); $("#[% table_id | html %]_search_results").hide(); - update_search_description(); + [% IF display_search_description %] + update_search_description(); + [% END %] } // User has clicked on a letter @@ -740,7 +745,9 @@ } patrons_table.DataTable().draw(); - update_search_description(); + [% IF display_search_description %] + update_search_description(); + [% END %] } // modify parent window owner element diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/member.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/member.tt index e0122edbc1e..9572d8c17f5 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/member.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/member.tt @@ -311,6 +311,7 @@ redirect_url => redirect_url, sticky_header => "searchheader", sticky_to => "searchresults", + display_search_description => 1, %] -- 2.25.1