[Koha-cvs] koha/opac opac-main.pl [rel_3_0]
Antoine Farnault
antoine at koha-fr.org
Thu Sep 28 10:16:14 CEST 2006
CVSROOT: /sources/koha
Module name: koha
Branch: rel_3_0
Changes by: Antoine Farnault <toins> 06/09/28 08:16:14
Modified files:
opac : opac-main.pl
Log message:
Display "change language" only if there is more than one language.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/koha/opac/opac-main.pl?cvsroot=koha&only_with_tag=rel_3_0&r1=1.23.2.1&r2=1.23.2.2
Patches:
Index: opac-main.pl
===================================================================
RCS file: /sources/koha/koha/opac/opac-main.pl,v
retrieving revision 1.23.2.1
retrieving revision 1.23.2.2
diff -u -b -r1.23.2.1 -r1.23.2.2
--- opac-main.pl 29 Aug 2006 07:27:13 -0000 1.23.2.1
+++ opac-main.pl 28 Sep 2006 08:16:14 -0000 1.23.2.2
@@ -61,7 +61,10 @@
# Template params
if( (scalar @options) > 1){
- $template->param(languages => \@options);
+ $template->param(
+ languages => \@options,
+ opaclanguagesdisplay => C4::Context->preference("opaclanguagesdisplay")
+ );
}
$template->param(
branchloop=>\@branchloop,
@@ -76,9 +79,9 @@
opacsmallimage => C4::Context->preference("opacsmallimage"),
opaclayoutstylesheet => C4::Context->preference("opaclayoutstylesheet"),
opaccolorstylesheet => C4::Context->preference("opaccolorstylesheet"),
- opaclanguagesdisplay => C4::Context->preference("opaclanguagesdisplay"),
-
+ opaclanguagesdisplay => 0,
);
+
$template->param('Disable_Dictionary'=>C4::Context->preference("Disable_Dictionary")) if (C4::Context->preference("Disable_Dictionary"));
output_html_with_http_headers $input, $cookie, $template->output;
More information about the Koha-cvs
mailing list