--- loncom/interface/loncommon.pm 2003/06/24 22:16:32 1.107
+++ loncom/interface/loncommon.pm 2003/07/25 10:44:36 1.110
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# a pile of common routines
#
-# $Id: loncommon.pm,v 1.107 2003/06/24 22:16:32 albertel Exp $
+# $Id: loncommon.pm,v 1.110 2003/07/25 10:44:36 www Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -549,7 +549,8 @@ sub help_open_topic {
my ($topic, $text, $stayOnPage, $width, $height) = @_;
$text = "" if (not defined $text);
$stayOnPage = 0 if (not defined $stayOnPage);
- if ($ENV{'browser.interface'} eq 'textual') {
+ if ($ENV{'browser.interface'} eq 'textual' ||
+ $ENV{'environment.remote'} eq 'off' ) {
$stayOnPage=1;
}
$width = 350 if (not defined $width);
@@ -1352,9 +1353,11 @@ sub aboutmewrapper {
sub syllabuswrapper {
- my ($link,$un,$do,$tf)=@_;
- if ($tf) { $link=''.$link.''; }
- return "$link";
+ my ($linktext,$coursedir,$domain,$fontcolor)=@_;
+ if ($fontcolor) {
+ $linktext=''.$linktext.'';
+ }
+ return "$linktext";
}
# ---------------------------------------------------------------- Language IDs
@@ -1718,6 +1721,17 @@ Returns: value of designparamter $which
##############################################
sub designparm {
my ($which,$domain)=@_;
+ if ($ENV{'browser.blackwhite'} eq 'on') {
+ if ($which=~/\.(font|alink|vlink|link)$/) {
+ return '#000000';
+ }
+ if ($which=~/\.(pgbg|sidebg)$/) {
+ return '#FFFFFF';
+ }
+ if ($which=~/\.tabbg$/) {
+ return '#CCCCCC';
+ }
+ }
if ($ENV{'environment.color.'.$which}) {
return $ENV{'environment.color.'.$which};
}
@@ -1782,7 +1796,11 @@ sub bodytag {
my $alink=&designparm($function.'.alink',$domain);
my $vlink=&designparm($function.'.vlink',$domain);
my $sidebg=&designparm($function.'.sidebg',$domain);
-
+# Accessibility font enhance
+ unless ($addentries) { $addentries=''; }
+ if ($ENV{'browser.fontenhance'} eq 'on') {
+ $addentries.=' style="font-size: x-large"';
+ }
# role and realm
my ($role,$realm)
=&Apache::lonnet::plaintext((split(/\./,$ENV{'request.role'}))[0]);