]> 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)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Fri, 10 Jan 2020 16:22:47 +0000 (16:22 +0000)
commitfbf326f8573c74359f3b1914184d132e629d89c6
tree59850948c6af519a2620d2c074d7bf3efdc58779
parentbed334ee4dd8e8f0ec5205c1faabdc1e40e00061
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>
Koha/SearchEngine/Elasticsearch/QueryBuilder.pm