From 0106f3957d54d33cfbfdccdb0420f898e09084a1 Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Thu, 3 Nov 2022 12:29:59 +0000 Subject: [PATCH] Bug 31271: Preselect previous search index This patch passes the constructed value of the preselect to search_indexes.inc To test: 1 - Perform an advanced search, making sure to select different indexes 2 - Click 'Edit search' on results page 3 - Confirm index selections are preselected 4 - Enable IntranetCatalogSearchPulldown 5 - Do a search form the top bar using an index 6 - Confirm 'Edit search' correctly popluates the chosen index Signed-off-by: Andrew Fuerste-Henry Signed-off-by: Katrin Fischer Signed-off-by: Tomas Cohen Arazi --- koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/advsearch.tt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/advsearch.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/advsearch.tt index 52b46a764a..efabb12bdf 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/advsearch.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/advsearch.tt @@ -170,7 +170,7 @@
[% END %] [% SET preselect = 'ms_' _ indexes.${loop.index}.replace(',','comma') %] - [% INCLUDE 'search_indexes.inc' %] + [% INCLUDE 'search_indexes.inc' ${preselect} = 1 %] [% IF ( expanded_options ) %] [% IF ( loop.last ) %] -- 2.39.5