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

www lon-capa-cvs@mail.lon-capa.org
Wed, 19 Jul 2006 19:54:31 -0000


www		Wed Jul 19 15:54:31 2006 EDT

  Modified files:              
    /loncom/homework	inputtags.pm 
  Log:
  Bug #4926: in exam mode, not the computer's, but the user's answer is shown. Say so.
  
  
Index: loncom/homework/inputtags.pm
diff -u loncom/homework/inputtags.pm:1.201 loncom/homework/inputtags.pm:1.202
--- loncom/homework/inputtags.pm:1.201	Fri Jul 14 14:17:58 2006
+++ loncom/homework/inputtags.pm	Wed Jul 19 15:54:30 2006
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # input  definitons
 #
-# $Id: inputtags.pm,v 1.201 2006/07/14 18:17:58 albertel Exp $
+# $Id: inputtags.pm,v 1.202 2006/07/19 19:54:30 www Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -553,7 +553,10 @@
 	('yes' eq lc(&Apache::lonnet::EXT("resource.$part.handgrade")));
     
     my $computer = ($handgrade)? ''
-	                       : " ".&mt("Computer's answer now shown above.");
+	                       : " ".
+			       (($Apache::lonhomework::type eq 'exam')?
+                                " ".&mt("Your answer now shown above."): 
+				" ".&mt("Computer's answer now shown above."));
     &Apache::lonxml::debug("handgrade has :$handgrade:");
 
     if ($previous) { $previousmsg=&mt('You have entered that answer before'); }