From cb88fcefd911661f2c1dfd5d59aae00d84b1374e 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' --- 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.30.2