From d7a48299f1c4bd87b78d6deaffe6654a8bd8f8b4 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Mon, 25 Jun 2012 10:06:57 +0200 Subject: [PATCH] Bug 8233: Hide the search engine configuration link for Zebra --- admin/admin-home.pl | 2 ++ .../prog/en/modules/admin/admin-home.tt | 6 ++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/admin/admin-home.pl b/admin/admin-home.pl index ad7a897..3db17c1 100755 --- a/admin/admin-home.pl +++ b/admin/admin-home.pl @@ -34,4 +34,6 @@ my ($template, $loggedinuser, $cookie) debug => 1, }); +$template->param( SearchEngine => C4::Context->preference('SearchEngine') ); + output_html_with_http_headers $query, $cookie, $template->output; diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/admin-home.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/admin-home.tt index 6e19132..cabe94f 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/admin-home.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/admin-home.tt @@ -76,8 +76,10 @@
Manage rules for automatically matching MARC records during record imports.
OAI sets configuration
Manage OAI Sets
-
Search engine configuration
-
Manage indexes, facets, and their mappings to MARC fields and subfields.
+ [% IF ( SearchEngine != 'Zebra' ) %] +
Search engine configuration
+
Manage indexes, facets, and their mappings to MARC fields and subfields.
+ [% END %]

Acquisition parameters

-- 1.7.7.3