]> git.koha-community.org Git - koha.git/commit
Bug 26958: Move Elasticsearch mapping template JS to the footer
authorOwen Leonard <oleonard@myacpl.org>
Fri, 6 Nov 2020 16:18:07 +0000 (16:18 +0000)
committerAndrew Fuerste-Henry <andrew@bywatersolutions.com>
Mon, 22 Feb 2021 22:59:47 +0000 (22:59 +0000)
commit9f2714afc8f23a956378c9e439d6bc3dde60ddc2
tree5a23e83e651f3eef3638a3ad90715463ddcb3d42
parent5fb93c86f343bd1b02cdb05aba5c323dead6008d
Bug 26958: Move Elasticsearch mapping template JS to the footer

This patch moves inclusion of JavaScript to the footer of the
Elasticsearch mapping template. It also moves the JS into a separate
file.

To test you should have SearchEngine system preference set to
"Elasticsearch."

 - Apply the patch and go to Administration -> Search engine
   configuration (Elasticsearch).
 - Confirm that JavaScript dependent interactions work correctly:
   - Tabs
   - Under the bibliographic records and authorities tabs, table row
     drag-and-drop
   - Under the bibliographic records and authorities tabs, test the
     "Add" line at the bottom of the table.
   - Under the bibliographic records and authorities tabs, test the
     "Delete" button.

Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit 3cfa9b1e993481defd6e7ec796031ec31279bf71)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
(cherry picked from commit 7421e4c3caf97e7cc0cd02e0d644aa7045eb06ea)

Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com>
koha-tmpl/intranet-tmpl/prog/en/modules/admin/searchengine/elasticsearch/mappings.tt
koha-tmpl/intranet-tmpl/prog/js/elasticsearch-mappings.js [new file with mode: 0644]