From 4c1eef73802d4ce34ad28be340a81c72bd20d784 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=UTF-8 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 --- koha-tmpl/intranet-tmpl/prog/en/includes/admin-menu.inc | 3 +++ .../prog/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 4a52ef3..d41968e 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 cecd8de..74466db 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") %]