Bug 31841: Use location,wrdl when searching Shelving location
authorDavid Cook <dcook@prosentient.com.au>
Mon, 17 Oct 2022 03:45:48 +0000 (03:45 +0000)
committerJacob O'Mara <jacobomara901@gmail.com>
Sun, 16 Apr 2023 17:38:56 +0000 (18:38 +0100)
commit619239beea16766546cfaaa678ca76f102efc939
treed2e8fe052976ffc898ee1557c8b3bddd381c241d
parent572ad39a6570a6460c43c151c56d239f97f9ad3d
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 <magnus@libriotech.no>
Works as advertised.
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit 0d125917a1a8dfe1fddf68de219e09d3c9ad11c3)
Signed-off-by: Jacob O'Mara <jacobomara901@gmail.com>
koha-tmpl/intranet-tmpl/prog/en/includes/search_indexes.inc