]> git.koha-community.org Git - koha.git/commit
Bug 36396: Link facet with authorised value category - ES
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Thu, 21 Mar 2024 15:48:56 +0000 (16:48 +0100)
committerKatrin Fischer <katrin.fischer@bsz-bw.de>
Tue, 7 May 2024 13:53:53 +0000 (15:53 +0200)
commit901f550a47bce01f6f4cd503ff0abb2417ba44e9
treeb3c9b1e978b63f52d0cba71ddf8b7f7cea03ba2d
parent58d097d2aa3884162bbc4acaf6f14c3beec9b8cb
Bug 36396: Link facet with authorised value category - ES

This new feature adds the ability to link an ES facet to an authorised
value category, in order to display a description instead of the code.

Test plan:
1. Go to the ES mapping admin page
2. Notice the new "Authorized value category" column in the facets
   config table
3. Create a new facet that is linked to a search field containing values
   from an authorised value category. Pick this category in the list
4. Save
5. Reindex
6. Notice that the descriptions are now displayed (staff and OPAC) in
   the search result page.

QA: See the related bug report for possible improvements. It's not
easy at all to deal with the "specials" here, a lot of changes must be
done in how we fetch/cache the AVs.

Sponsored-by: The Research University in the Helmholtz Association (KIT)
Signed-off-by: Lukas Koszyk <lukasz.koszyk@kit.edu>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
Koha/SearchEngine/Elasticsearch/Search.pm
admin/searchengine/elasticsearch/mappings.pl
koha-tmpl/intranet-tmpl/prog/en/includes/facets.inc
koha-tmpl/intranet-tmpl/prog/en/modules/admin/searchengine/elasticsearch/mappings.tt
koha-tmpl/intranet-tmpl/prog/js/elasticsearch-mappings.js