[LON-CAPA-cvs] cvs: loncom /xml londefdef.pm lontexconvert.pm
bisitz
bisitz@source.lon-capa.org
Thu, 10 Jun 2010 15:54:07 -0000
bisitz Thu Jun 10 15:54:07 2010 EDT
Modified files:
/loncom/xml londefdef.pm lontexconvert.pm
Log:
Removed leftovers of already removed alternative login mode (accessibility).
Index: loncom/xml/londefdef.pm
diff -u loncom/xml/londefdef.pm:1.416 loncom/xml/londefdef.pm:1.417
--- loncom/xml/londefdef.pm:1.416 Tue May 4 19:40:47 2010
+++ loncom/xml/londefdef.pm Thu Jun 10 15:54:06 2010
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Tags Default Definition Module
#
-# $Id: londefdef.pm,v 1.416 2010/05/04 19:40:47 faziophi Exp $
+# $Id: londefdef.pm,v 1.417 2010/06/10 15:54:06 bisitz Exp $
#
#
# Copyright Michigan State University Board of Trustees
@@ -3159,24 +3159,13 @@
# Render unto browsers that which are the browser's...
if ($target eq 'web' || $target eq 'webgrade') {
- if ($env{'browser.imagesuppress'} ne 'on') {
- my $enc = ('yes' eq
- lc(&Apache::lonxml::get_param('encrypturl',$parstack,
- $safeeval)));
- $currentstring.=&Apache::lonenc::encrypt_ref($token,{'src'=>$src},
- $enc);
- } else {
- my $alttag = &Apache::lonxml::get_param('alt',$parstack,$safeeval,
- undef,1);
- if (!$alttag) {
- $alttag = &Apache::lonmeta::alttag($Apache::lonxml::pwd[-1],
- $src);
- }
- $currentstring.='[IMAGE: '.$alttag.']';
- }
-
- # and render unto TeX that which is LaTeX
+ my $enc = ('yes' eq
+ lc(&Apache::lonxml::get_param('encrypturl',$parstack,
+ $safeeval)));
+ $currentstring.=&Apache::lonenc::encrypt_ref($token,{'src'=>$src},
+ $enc);
+ # and render unto TeX that which is LaTeX
} elsif ($target eq 'tex') {
#
# The alignment will require some superstructure to be put around
@@ -3358,23 +3347,12 @@
&Apache::lonxml::extlink($archive);
my $currentstring = '';
if ($target eq 'web' || $target eq 'webgrade') {
- if ($env{'browser.appletsuppress'} ne 'on') {
- $currentstring = &Apache::lonenc::encrypt_ref($token,
- {'code'=>$code,
- 'archive'=>$archive}
- );
- } else {
- my $alttag= &Apache::lonxml::get_param('alt',$parstack,
- $safeeval,undef,1);
- unless ($alttag) {
- $alttag=&Apache::lonmeta::alttag($Apache::lonxml::pwd[-1],
- $code);
- }
- $currentstring='[APPLET: '.$alttag.']';
- }
+ $currentstring = &Apache::lonenc::encrypt_ref($token,
+ {'code'=>$code,
+ 'archive'=>$archive}
+ );
} elsif ($target eq 'tex') {
- # Turn off some stuff we can't be inside thank you LaTeX
-
+ # Turn off some stuff we can't be inside thank you LaTeX
my $restart_sub = 0;
my $restart_sup = 0;
@@ -3438,16 +3416,7 @@
&Apache::lonxml::extlink($src);
my $currentstring = '';
if ($target eq 'web' || $target eq 'webgrade') {
- if ($env{'browser.embedsuppress'} ne 'on') {
- $currentstring=&Apache::lonenc::encrypt_ref($token,{'src'=>$src});
- } else {
- my $alttag=&Apache::lonxml::get_param
- ('alt',$parstack,$safeeval,undef,1);
- unless ($alttag) {
- $alttag=&Apache::lonmeta::alttag($Apache::lonxml::pwd[-1],$src);
- }
- $currentstring='[EMBED: '.$alttag.']';
- }
+ $currentstring=&Apache::lonenc::encrypt_ref($token,{'src'=>$src});
} elsif ($target eq 'tex') {
}
return $currentstring;
@@ -3457,9 +3426,10 @@
my ($target,$token) = @_;
my $currentstring = '';
if ($target eq 'web' || $target eq 'webgrade') {
- $currentstring = $token->[2];
- } elsif ($target eq 'tex') {
- }
+ $currentstring = $token->[2];
+ } elsif ($target eq 'tex') {
+ # ./.
+ }
return $currentstring;
}
Index: loncom/xml/lontexconvert.pm
diff -u loncom/xml/lontexconvert.pm:1.103 loncom/xml/lontexconvert.pm:1.104
--- loncom/xml/lontexconvert.pm:1.103 Tue Apr 27 20:29:20 2010
+++ loncom/xml/lontexconvert.pm Thu Jun 10 15:54:06 2010
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# TeX Conversion Module
#
-# $Id: lontexconvert.pm,v 1.103 2010/04/27 20:29:20 faziophi Exp $
+# $Id: lontexconvert.pm,v 1.104 2010/06/10 15:54:06 bisitz Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -335,7 +335,6 @@
sub smiley {
my $expression=shift;
- if ($env{'browser.imagesuppress'} eq 'on') { return $expression; }
my %smileys=(
'\:\-*\)' => 'face-smile.png',
'8\-\)' => 'face-cool.png',