]> git.koha-community.org Git - koha.git/commit
Bug 22426: Map 'loc' to 'location' when building ES queries
authorFridolin Somers <fridolin.somers@biblibre.com>
Mon, 17 Jun 2019 14:09:38 +0000 (16:09 +0200)
committerLucas Gass <lucas@bywatersolutions.com>
Thu, 6 Feb 2020 17:09:05 +0000 (17:09 +0000)
commit9d22cd6a7e9324399d37af0e931743c25b5b00cc
tree602f6b41b19943667691a77e615102c23578375b
parent9117d40faa59c92dc135a87201e6569dc6e4cbc1
Bug 22426: Map 'loc' to 'location' when building ES queries

A search made on Shelving location tab in advanced search gives 0 result.

Test plan :
Without patch:
    - in advanced search, choose a location in shelving location tab and start search (opac-search.pl?idx=kw&op=and&idx=kw&op=and&idx=kw&do=Search&limit=mc-loc)
    - 0 result
    - check that location exist by doing a simple search and filtering on the    location facet
    - have some results
With patch:
    - in advanced search, choose a location in shelving location tab and start search (opac-search.pl?idx=kw&op=and&idx=kw&op=and&idx=kw&do=Search&limit=mc-loc)
    - found results

Signed-off-by: Séverine QUEUNE <severine.queune@bulac.fr>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Joy Nelson <joy@bywatersolutions.com>
(cherry picked from commit 439c73a2ed167f031741a2946bd04ade39d9d581)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
Koha/SearchEngine/Elasticsearch/QueryBuilder.pm