From 20e16571a54d86aa2c590988e6ca423c7778b6fb 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 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Séverine Queune --- .../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 29a9f5f6644..e101b7c1ee3 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 %] @@ -720,7 +721,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; } @@ -734,7 +737,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 @@ -748,7 +753,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 f8c60f664b1..e57e6334f51 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/member.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/member.tt @@ -312,6 +312,7 @@ sticky_header => "searchheader", sticky_to => "searchresults", default_sort_column => 'name-address', + display_search_description => 1, %] -- 2.25.1