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

sakharuk lon-capa-cvs@mail.lon-capa.org
Thu, 27 Mar 2003 16:55:31 -0000


sakharuk		Thu Mar 27 11:55:31 2003 EDT

  Modified files:              
    /loncom/homework	rankresponse.pm 
  Log:
  The same comment as for optionresponse (corrections to problem mode).
  
  
Index: loncom/homework/rankresponse.pm
diff -u loncom/homework/rankresponse.pm:1.10 loncom/homework/rankresponse.pm:1.11
--- loncom/homework/rankresponse.pm:1.10	Wed Mar 26 17:59:09 2003
+++ loncom/homework/rankresponse.pm	Thu Mar 27 11:55:31 2003
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # rank style response
 #
-# $Id: rankresponse.pm,v 1.10 2003/03/26 22:59:09 albertel Exp $
+# $Id: rankresponse.pm,v 1.11 2003/03/27 16:55:31 sakharuk Exp $
 # Copyright Michigan State University Board of Trustees
 #
 # This file is part of the LearningOnline Network with CAPA (LON-CAPA).
@@ -457,7 +457,7 @@
 		 && !&Apache::response::showallfoils() ) {
 		push @{ $Apache::response::conceptgroup{'names'} }, $name;
 		$Apache::response::conceptgroup{"$name.value"} = $value;
-		if ($target eq 'tex') {
+		if ($target eq 'tex' and $Apache::lonhomework::type eq 'exam') {
 		    $Apache::response::conceptgroup{"$name.text"} = ' $\triangleright$ '.$text;
 		} else {
 		    $Apache::response::conceptgroup{"$name.text"} = $text;
@@ -469,7 +469,7 @@
 		if ($target eq 'tex' and $Apache::lonhomework::type eq 'exam') {
 		    $Apache::response::foilgroup{"$name.text"} = '\vskip 5 mm $\triangleright$ '.$text;
 		} else {
-		    if ($target eq 'tex') {
+		    if ($target eq 'tex' and $Apache::lonhomework::type eq 'exam') {
 			$Apache::response::foilgroup{"$name.text"} = ' $\triangleright$ '.$text;
 		    } else {
 			$Apache::response::foilgroup{"$name.text"} = $text;