Bug 8233: Hide the search engine configuration link for Zebra
authorJonathan Druart <jonathan.druart@biblibre.com>
Mon, 25 Jun 2012 08:06:57 +0000 (10:06 +0200)
committerPaul Poulain <paul.poulain@biblibre.com>
Fri, 6 Jul 2012 14:53:53 +0000 (16:53 +0200)
Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
admin/admin-home.pl
koha-tmpl/intranet-tmpl/prog/en/modules/admin/admin-home.tt

index ad7a897..3db17c1 100755 (executable)
@@ -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;
index 6e19132..cabe94f 100644 (file)
     <dd>Manage rules for automatically matching MARC records during record imports.</dd>
     <dt><a href="/cgi-bin/koha/admin/oai_sets.pl">OAI sets configuration</a></dt>
     <dd>Manage OAI Sets</dd>
-    <dt><a href="/cgi-bin/koha/admin/searchengine/solr/indexes.pl">Search engine configuration</a></dt>
-    <dd>Manage indexes, facets, and their mappings to MARC fields and subfields.</dd>
+    [% IF ( SearchEngine != 'Zebra' ) %]
+      <dt><a href="/cgi-bin/koha/admin/searchengine/solr/indexes.pl">Search engine configuration</a></dt>
+      <dd>Manage indexes, facets, and their mappings to MARC fields and subfields.</dd>
+    [% END %]
 </dl>
 
 <h3>Acquisition parameters</h3>