]> 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)
committerFridolin Somers <fridolin.somers@biblibre.com>
Fri, 19 Feb 2021 14:55:48 +0000 (15:55 +0100)
commit7421e4c3caf97e7cc0cd02e0d644aa7045eb06ea
tree4ebe76f652c64bb58faf6a0cafe9642a37cf4ca1
parentfa597b5209a1d756c3a053fa2c93737172809c4a
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>
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]