Bugzilla – Attachment 74669 Details for
Bug 20617
Add 'Search Engine configuration' link to administration menu
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 20617: Add 'Search Engine configuration' link to administration menu
Bug-20617-Add-Search-Engine-configuration-link-to-.patch (text/plain), 2.94 KB, created by
Séverine Queune
on 2018-04-21 07:01:33 UTC
(
hide
)
Description:
Bug 20617: Add 'Search Engine configuration' link to administration menu
Filename:
MIME Type:
Creator:
Séverine Queune
Created:
2018-04-21 07:01:33 UTC
Size:
2.94 KB
patch
obsolete
>From 4c1eef73802d4ce34ad28be340a81c72bd20d784 Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >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 <david.bourgault@inlibro.com> >Signed-off-by: Séverine QUEUNE <severine.queune@bulac.fr> >--- > 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 @@ > <li><a href="/cgi-bin/koha/admin/matching-rules.pl">Record matching rules</a></li> > <li><a href="/cgi-bin/koha/admin/oai_sets.pl">OAI sets configuration</a></li> > <li><a href="/cgi-bin/koha/admin/items_search_fields.pl">Item search fields</a></li> >+ [% IF Koha.Preference('SearchEngine') == 'Elasticsearch' %] >+ <li><a href="/cgi-bin/koha/admin/searchengine/elasticsearch/mappings.pl">Search engine configuration</a></li> >+ [% END %] > </ul> > > <h5>Acquisition parameters</h5> >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' %] >-<title>Koha › Administration › Elastic Search mappings</title> >+<title>Koha › Administration › Search engine configuration</title> > [% INCLUDE 'doc-head-close.inc' %] > [% Asset.js("lib/jquery/plugins/jquery.tablednd.js") %] > <script type="text/javascript"> >-- >2.1.4
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 20617
:
74530
|
74658
|
74665
|
74669
|
74708