[LON-CAPA-cvs] cvs: loncom /homework/caparesponse caparesponse.pm

sakharuk lon-capa-cvs@mail.lon-capa.org
Wed, 26 Mar 2003 18:44:13 -0000


sakharuk		Wed Mar 26 13:44:13 2003 EDT

  Modified files:              
    /loncom/homework/caparesponse	caparesponse.pm 
  Log:
   Small changes were implemented toward to Ed's critical notes.
  
  
Index: loncom/homework/caparesponse/caparesponse.pm
diff -u loncom/homework/caparesponse/caparesponse.pm:1.85 loncom/homework/caparesponse/caparesponse.pm:1.86
--- loncom/homework/caparesponse/caparesponse.pm:1.85	Fri Mar 21 10:39:24 2003
+++ loncom/homework/caparesponse/caparesponse.pm	Wed Mar 26 13:44:13 2003
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # caparesponse definition
 #
-# $Id: caparesponse.pm,v 1.85 2003/03/21 15:39:24 sakharuk Exp $
+# $Id: caparesponse.pm,v 1.86 2003/03/26 18:44:13 sakharuk Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -236,7 +236,7 @@
         if ($target eq 'web') {
 	  if ($$tagstack[-1] eq 'numericalresponse') {
 	    my $id=$Apache::inputtags::response[-1];
-	    if ($unit=~/\S/) {$result.=' (<i>in '.$unit.'</i>)<br /><br />';}
+	    if ($unit=~/\S/) {$result.=' (in '.$unit.')<br /><br />';}
 	    $result.= '<table border="1"><tr>';
 	    for ($ind=0;$ind<$number_of_bubbles;$ind++) {
 		my $ans;
@@ -259,7 +259,7 @@
 	    }
 	    $result.='</tr></table>';
 	  } elsif ($$tagstack[-1] eq 'formularesponse') {
-	    $result.= '<br /><br /><font color="red"> Formula have to be entered here! </font><br /><br />';
+	    $result.= '<br /><br /><font color="red"><textarea name="formulainput" rows="4" cols="50"> </textarea></font> <br /><br />';
 	  }
 	} elsif ($target eq 'tex') {
 	 if (defined $unit and $Apache::lonhomework::type eq 'exam') {
@@ -331,7 +331,7 @@
 	     $result.='\end{enumerate}';
 	     &Apache::lonxml::increment_counter();
          } else {
-	     $result.='\fbox{\fbox{\parbox{\textwidth-5mm}{\strut\\\\\strut\\\\\strut\\\\\strut\\\\\strut\\\\\strut\\\\}}}';
+	     $result.='\fbox{\fbox{\parbox{\textwidth-5mm}{\strut\\\\\strut\\\\\strut\\\\\strut\\\\}}}';
 	    my $id = $Apache::inputtags::part;
 	    my $weight = &Apache::lonnet::EXT("resource.$id.weight");
             my $repetition = int $weight/9;