From f5f3aa51cb53adaa5b36bed4d309f3251bd2902d Mon Sep 17 00:00:00 2001 From: kados Date: Tue, 14 Mar 2006 15:29:15 +0000 Subject: [PATCH] hide authorities search if Disable_Dictionary is set --- opac/opac-main.pl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/opac/opac-main.pl b/opac/opac-main.pl index b58c1730df..d07e3f4f6f 100755 --- a/opac/opac-main.pl +++ b/opac/opac-main.pl @@ -66,7 +66,6 @@ foreach my $language (getalllanguages()) { $counter++; } my $languages_count = @options; - if($languages_count > 1){ $template->param(languages => \@options); } @@ -85,4 +84,7 @@ $template->param(CGIitemtype => $CGIitemtype, opaccolorstylesheet => C4::Context->preference("opaccolorstylesheet"), opaclanguagesdisplay => C4::Context->preference("opaclanguagesdisplay"), ); + +$template->param('Disable_Dictionary'=>C4::Context->preference("Disable_Dictionary")) if (C4::Context->preference("Disable_Dictionary")); + output_html_with_http_headers $input, $cookie, $template->output; -- 2.39.5