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)
committerTomas Cohen Arazi <tomascohen@theke.io>
Thu, 6 Apr 2023 12:47:22 +0000 (09:47 -0300)
commit0d125917a1a8dfe1fddf68de219e09d3c9ad11c3
tree416f029ab0b65b7fb11cc4470c84e71ff4cee49f
parent74007678bfe3c26b4e7bdeafaab5dbf3fa4fcc40
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>
koha-tmpl/intranet-tmpl/prog/en/includes/search_indexes.inc