From 439c73a2ed167f031741a2946bd04ade39d9d581 Mon Sep 17 00:00:00 2001 From: Fridolin Somers Date: Mon, 17 Jun 2019 16:09:38 +0200 Subject: [PATCH] Bug 22426: Map 'loc' to 'location' when building ES queries MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 Signed-off-by: Jonathan Druart Signed-off-by: Martin Renvoize Signed-off-by: Joy Nelson --- Koha/SearchEngine/Elasticsearch/QueryBuilder.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/Koha/SearchEngine/Elasticsearch/QueryBuilder.pm b/Koha/SearchEngine/Elasticsearch/QueryBuilder.pm index 34aa972abc..c1011ecc1e 100644 --- a/Koha/SearchEngine/Elasticsearch/QueryBuilder.pm +++ b/Koha/SearchEngine/Elasticsearch/QueryBuilder.pm @@ -675,6 +675,7 @@ our %index_field_convert = ( 'mc-ccode' => 'ccode', 'branch' => 'homebranch', 'mc-loc' => 'location', + 'loc' => 'location', 'stocknumber' => 'number-local-acquisition', 'inv' => 'number-local-acquisition', 'bc' => 'barcode', -- 2.39.5