@@ -, +, @@ --- catalogue/search.pl | 4 ++++ .../prog/en/modules/catalogue/results.tt | 24 ++++++++++++++++++++++ 2 files changed, 28 insertions(+) --- a/catalogue/search.pl +++ a/catalogue/search.pl @@ -493,6 +493,10 @@ my $searcher = Koha::SearchEngine::Search->new( = $builder->build_query_compat( \@operators, \@operands, \@indexes, \@limits, \@sort_by, $scan, $lang, { weighted_fields => !$cgi->param('advsearch'), whole_record => $whole_record }); +use JSON; +my $json_query = JSON->new->pretty->encode($query); +$template->param( json_query => $json_query ); + ## parse the query_cgi string and put it into a form suitable for s my @query_inputs; my $scan_index_to_use; --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt @@ -267,6 +267,10 @@ [% END %] + + @@ -284,6 +288,9 @@ [% ELSE %]

You did not specify any search criteria.

[% END %] + [% END # /IF total %] @@ -670,6 +677,23 @@ + + [% MACRO jsinclude BLOCK %] [% INCLUDE 'strings.inc' %] [% Asset.js("js/browser.js") | $raw %] --