@@ -, +, @@ --- catalogue/search.pl | 2 +- koha-tmpl/intranet-tmpl/prog/en/includes/cat-search.inc | 2 +- .../intranet-tmpl/prog/en/modules/catalogue/results.tt | 17 +++++++++++++++++ 3 files changed, 19 insertions(+), 2 deletions(-) --- a/catalogue/search.pl +++ a/catalogue/search.pl @@ -366,7 +366,7 @@ if ($indexes[0] && (!$indexes[1] || $params->{'scan'})) { my $idx = "ms_".$indexes[0]; $idx =~ s/\,/comma/g; # template toolkit doesn't like variables with a , in it $idx =~ s/-/dash/g; # template toolkit doesn't like variables with a dash in it - $template->param($idx => 1); + $template->param(header_pulldown => $idx); } # an operand can be a single term, a phrase, or a complete ccl query --- a/koha-tmpl/intranet-tmpl/prog/en/includes/cat-search.inc +++ a/koha-tmpl/intranet-tmpl/prog/en/includes/cat-search.inc @@ -28,7 +28,7 @@
[% IF ( Koha.Preference('IntranetCatalogSearchPulldown') ) %] - [% INCLUDE 'search_indexes.inc' %] + [% INCLUDE 'search_indexes.inc' $header_pulldown = 1 %] [% ELSE %] [% END %] --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt @@ -66,6 +66,16 @@ [% total | html %] result(s) found [% IF ( query_desc ) %]for '[% query_desc | html %]'[% END %][% IF limit_desc %] with limit(s): '[% limit_desc | html %]'[% END %][% IF ( LibraryName ) %] in [% LibraryName | html %] Catalog[% END %]. Edit this search +
+ + + [% IF ( Koha.Preference('IntranetCatalogSearchPulldown') ) %] + [% INCLUDE 'search_indexes.inc' ms_kw = 1 %] + [% END %] + + + +
@@ -769,6 +779,13 @@ first_biblionumber: "[% SEARCH_RESULTS.first.biblionumber | html %]", last_biblionumber: "[% SEARCH_RESULTS.last.biblionumber | html %]", } + + $("#refine_search").on('submit',function(e){ + e.preventDefault(); + var index = $("#refine_search #idx").val() || ""; + if( index){index += ":";} + window.location.href = "/cgi-bin/koha/catalogue/search.pl?[% query_cgi | $raw %]&[% limit_cgi | $raw %]&[% sort_cgi | $raw %]&limit="+index+$("#refiner").val(); + }); [% Asset.js("js/pages/results.js") | $raw %] [% END %] --