From 619239beea16766546cfaaa678ca76f102efc939 Mon Sep 17 00:00:00 2001 From: David Cook Date: Mon, 17 Oct 2022 03:45:48 +0000 Subject: [PATCH] Bug 31841: Use location,wrdl when searching Shelving location The "location" index only has a word index defined, so we need to specify the wrdl qualifier when searching it via the staff interface dropdown menu Test plan: 1) Change QueryAutoTruncate to "only if * is added" 2) Change IntranetCatalogSearchPulldown to "Show" 3) Search for "Shelving location" of "GEN" in catalogue search bar 4) Note no results returned 5) Apply patch 6) koha-plack --restart kohadev 7) Repeat Step #3 8) Note that results appear for 'location,wrdl: GEN' Signed-off-by: Magnus Enger Works as advertised. Signed-off-by: Nick Clemens Signed-off-by: Tomas Cohen Arazi (cherry picked from commit 0d125917a1a8dfe1fddf68de219e09d3c9ad11c3) Signed-off-by: Jacob O'Mara --- koha-tmpl/intranet-tmpl/prog/en/includes/search_indexes.inc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/search_indexes.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/search_indexes.inc index 6b3eee37f0..2b8879be31 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/search_indexes.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/search_indexes.inc @@ -101,10 +101,10 @@ [% ELSE %] [% END %] -[% IF ms_location %] - +[% IF ms_locationcommawrdl %] + [% ELSE %] - + [% END %] [% IF ( Koha.Preference('IntranetNumbersPreferPhrase') ) %] [% IF ms_identcommaphr %] -- 2.39.5