Bug 18235: ES - Facets configurable
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 8 Mar 2017 15:04:46 +0000 (12:04 -0300)
committerNick Clemens <nick@bywatersolutions.com>
Thu, 28 Mar 2019 13:48:53 +0000 (13:48 +0000)
commitb47e01cdc2affce3f0272b0ffe3c4890b1281be0
treecceaf6a260afe448c2394cd65237b4b4b8cdb289
parent856425db1e156ee4faf1aae70b0a78845711ba43
Bug 18235: ES - Facets configurable

This patch adds a new section 'Facet order' in the Biblio tab of the
'Search engine configuration' admin page of the Elastic mappings.
The idea is to let the librarians define the facet to display and order
them as their needs.

The ergonomic is not perfect and I am open to any suggestions.

Test plan:
Move up and down the field list to order the facets
Hide/show some facets
Rebuild index
At the OPAC and the staff interface you should see the changes on the
search result page.

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Nicolas Legrand <nicolas.legrand@bulac.fr>
Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Koha/SearchEngine/Elasticsearch.pm
Koha/SearchEngine/Elasticsearch/Search.pm
admin/searchengine/elasticsearch/mappings.pl
admin/searchengine/elasticsearch/mappings.yaml
koha-tmpl/intranet-tmpl/prog/en/modules/admin/searchengine/elasticsearch/mappings.tt