@@ -, +, @@ --- .../prog/en/includes/patron-search.inc | 13 ++++++++++--- .../intranet-tmpl/prog/en/modules/members/member.tt | 1 + 2 files changed, 11 insertions(+), 3 deletions(-) --- a/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc +++ a/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 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/member.tt +++ a/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, %] --