[LON-CAPA-cvs] cvs: loncom /xml scripttag.pm
sakharuk
lon-capa-cvs@mail.lon-capa.org
Tue, 13 May 2003 20:41:08 -0000
sakharuk Tue May 13 16:41:08 2003 EDT
Modified files:
/loncom/xml scripttag.pm
Log:
Changes to print single resource with answers. I've switched off some html stuff which is not neccessary in this particular case.
Index: loncom/xml/scripttag.pm
diff -u loncom/xml/scripttag.pm:1.86 loncom/xml/scripttag.pm:1.87
--- loncom/xml/scripttag.pm:1.86 Mon Feb 24 18:32:32 2003
+++ loncom/xml/scripttag.pm Tue May 13 16:41:08 2003
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# <script> definiton
#
-# $Id: scripttag.pm,v 1.86 2003/02/24 23:32:32 albertel Exp $
+# $Id: scripttag.pm,v 1.87 2003/05/13 20:41:08 sakharuk Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -96,6 +96,7 @@
$result.=$listing;
$result.= "</pre></body></html>\');newWindow.document.close();void(0);\">Script Vars</a><br />";
+ if ($ENV{'form.print_answer'} eq 'yes') {$result='';}
}
} elsif ($target eq "edit" ) {
#&Apache::run::run($bodytext,$safeeval);
@@ -308,7 +309,9 @@
my $id= &Apache::lonxml::get_param('id',$parstack,$safeeval);
if (!$id) { $id=$Apache::lonxml::curdepth; }
push(@Apache::inputtags::import,$id);
- &Apache::lonxml::newparser($parser,\$file,$dir);
+
+ &Apache::lonxml::newparser($parser,\$file,$dir);
+
} elsif ($target eq "edit" ) {
$result.=&Apache::edit::tag_start($target,$token);
$result.=&Apache::edit::editline($token->[1],$bodytext,'',40);