Bug 14899: Add the mapping configuration page in the admin module
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Fri, 25 Sep 2015 15:06:55 +0000 (16:06 +0100)
committerBrendan Gallagher <brendan@bywatersolutions.com>
Tue, 11 Oct 2016 05:22:00 +0000 (05:22 +0000)
commit39bdb865fcf8a9147a891496459e1a7ecd57e30e
tree92f1b40129410bb0e1b2e61f72c30e46137741b0
parent57ffd456ded327b85db1da710345037dc21b5897
Bug 14899: Add the mapping configuration page in the admin module

This new page (admin/searchengine/elasticsearch/mappings.pl) will permit
to manage the ES mappings.
For the biblios and authorities indexes, the different mappings can be
managed from this single page.
The interface let you add, remove and update mappings and search fields.
It's also possible to reorder the mappings, as the order can be important
in the indexation process. Note that the table can be displayed in a
different order that the one it was before saving, but the mappings are grouped
by search field and the order inside the search field is preserved.

Limitations:
- If something went wrong during the insertion/deletion/modification,
  the users will loose all these changes.

TODO:
- Add a specific permission (?)
- Add some data checks client side (JS)
- Use checkboxes for facet and suggestible (lazy today...)
- Understand the difference between the 3 values that sortable can have
  and improve the value for the options in the select box.

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Brendan Gallagher <brendan@bywatersolutions.com>
admin/searchengine/elasticsearch/mappings.pl [new file with mode: 0755]
koha-tmpl/intranet-tmpl/prog/en/modules/admin/searchengine/elasticsearch/mappings.tt [new file with mode: 0644]