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

albertel lon-capa-cvs-allow@mail.lon-capa.org
Thu, 27 Sep 2007 19:05:05 -0000


albertel		Thu Sep 27 15:05:05 2007 EDT

  Modified files:              
    /loncom/homework	response.pm 
  Log:
  - we want to save the exact bubbled letters
  
  
Index: loncom/homework/response.pm
diff -u loncom/homework/response.pm:1.177 loncom/homework/response.pm:1.178
--- loncom/homework/response.pm:1.177	Tue Sep 25 16:18:56 2007
+++ loncom/homework/response.pm	Thu Sep 27 15:05:03 2007
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # various response type definitons response definition
 #
-# $Id: response.pm,v 1.177 2007/09/25 20:18:56 albertel Exp $
+# $Id: response.pm,v 1.178 2007/09/27 19:05:03 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -899,6 +899,11 @@
 	    }
 	    
 	}
+
+	# save bubbled letter for later
+	$Apache::lonhomework::results{"resource.$part.$id.scantron"}.=
+	    $response;
+
 	if ($resulttype ne 'letter') {
 	    if ($resulttype eq 'A is 1') {
 		$response = $let_to_num{$response}+1;
@@ -913,9 +918,6 @@
 		$response = chr(ord($response) + $line * $bubbles_per_line);
 	    }
 	}
-	# save submitted response for later
-	$Apache::lonhomework::results{"resource.$part.$id.scantron"}.=
-	    $response;
 
     } else {
 	$response = $env{$formparm};