--- loncom/xml/scripttag.pm 2001/01/10 14:12:03 1.30
+++ loncom/xml/scripttag.pm 2001/02/19 20:43:00 1.33
@@ -10,8 +10,7 @@ use Apache::lonnet;
sub BEGIN {
&Apache::lonxml::register('Apache::scripttag',('script','scriptlib',
'parserlib','import',
- 'window','meta'));
- 'footnote','display'));
+ 'window','display'));
}
sub start_script {
@@ -29,7 +28,7 @@ sub start_script {
&Apache::run::run($bodytext,$safeeval);
} elsif ($target eq "edit" ) {
&Apache::run::run($bodytext,$safeeval);
- $result="
<$token->[1]> output:
$bodytext
Source:
";
+ $result="
<$token->[1]> output:
$bodytext
Source:
";
$result.=&editfield($token->[1],$bodytext);
}
} else {
@@ -67,7 +66,7 @@ sub start_display {
}
if ($target eq "edit" ) {
$result =
- "
<$token->[1]> output:
$bodytext
Source:
";
+ "
<$token->[1]> output:
$bodytext
Source:
";
$result.=&editfield($token->[1],$bodytext);
}
return $result;
@@ -91,7 +90,7 @@ sub start_scriptlib {
return "";
}
&Apache::run::run($script,$safeeval);
- #&Apache::lonxml::debug("ran $bodytext:
".&Apache::lonnet::getfile($bodytext)."
");
+ #&Apache::lonxml::debug("ran $bodytext:
".&Apache::lonnet::getfile($bodytext)."
");
if ($target eq "edit" ) {
$result.=&editfield($token->[1],$bodytext);
@@ -130,34 +129,29 @@ sub end_parserlib {
sub start_window {
my ($target,$token,$parstack,$parser,$safeeval,$style)=@_;
my $result = '';
- if ($target eq 'web') {
- $Apache::lonxml::redirection = 0;
- } elsif ($target eq 'tex') {
- $result = '\footnote{';
- }
+ if ($target eq 'web') {
+ $Apache::lonxml::redirection = 0;
+ }
return $result;
}
sub end_window {
my ($target,$token,$parstack,$parser,$safeeval,$style)=@_;
my $result;
- if ($target eq 'web') {
- $Apache::lonxml::outputstack =~ s/\"/\"\;/g;
- $result = "newwindow $Apache::lonxml::outputstack