From a905b119035dda28130293b9160b6e1bfaad3f6a Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Fri, 20 Apr 2018 18:35:14 +0000 Subject: [PATCH] Bug 20617: Add 'Search Engine configuration' link to administration menu MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit This patch adds a link to the Elasticsearch configuration page in the administration sidebar menu when Elasticsearch is enabled. This patch also corrects the title of the Elasticsearch page to match the page heading. "Search engine configuration" instead of "Elasticsearch mappings." To test, apply the patch and set the SearchEngine system preference to "Elasticsearch." - View any page in the administration module which shows the left-hand sidebar menu. The link to search engine configuration should be there. - View the search engine configuration page and confirm that the page title is correct. - Set the SearchEngine system preferenc to "Zebra." - The search engine configuration link should no longer appear in the administration sidebar menu. Signed-off-by: David Bourgault Signed-off-by: Séverine QUEUNE Signed-off-by: Katrin Fischer Signed-off-by: Jonathan Druart --- koha-tmpl/intranet-tmpl/prog/en/includes/admin-menu.inc | 3 +++ .../en/modules/admin/searchengine/elasticsearch/mappings.tt | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/admin-menu.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/admin-menu.inc index 4a52ef39ba..d41968e204 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/admin-menu.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/admin-menu.inc @@ -37,6 +37,9 @@
  • Record matching rules
  • OAI sets configuration
  • Item search fields
  • + [% IF Koha.Preference('SearchEngine') == 'Elasticsearch' %] +
  • Search engine configuration
  • + [% END %]
    Acquisition parameters
    diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/searchengine/elasticsearch/mappings.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/searchengine/elasticsearch/mappings.tt index 5014c807ff..1cb3c41dd5 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/searchengine/elasticsearch/mappings.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/searchengine/elasticsearch/mappings.tt @@ -1,6 +1,6 @@ [% USE Asset %] [% INCLUDE 'doc-head-open.inc' %] -Koha › Administration › Elastic Search mappings +Koha › Administration › Search engine configuration [% INCLUDE 'doc-head-close.inc' %] [% Asset.js("lib/jquery/plugins/jquery.tablednd.js") %]