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

foxr lon-capa-cvs@mail.lon-capa.org
Mon, 16 Oct 2006 09:27:55 -0000


foxr		Mon Oct 16 05:27:55 2006 EDT

  Modified files:              
    /loncom/homework	essayresponse.pm 
  Log:
  Make it clearer that essay responses will be hand graded (bug 4250)
  
  
Index: loncom/homework/essayresponse.pm
diff -u loncom/homework/essayresponse.pm:1.75 loncom/homework/essayresponse.pm:1.76
--- loncom/homework/essayresponse.pm:1.75	Mon Sep 25 15:30:56 2006
+++ loncom/homework/essayresponse.pm	Mon Oct 16 05:27:54 2006
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # essay (ungraded) style responses
 #
-# $Id: essayresponse.pm,v 1.75 2006/09/25 19:30:56 albertel Exp $
+# $Id: essayresponse.pm,v 1.76 2006/10/16 09:27:54 foxr Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -170,9 +170,18 @@
 	$result .= &Apache::inputtags::exam_score_line($target);
 
     } elsif ($target eq 'answer') {
-	$result.=&Apache::response::answer_header($$tagstack[-1]);
-	$result.=&Apache::response::answer_part($$tagstack[-1],'');
-	$result.=&Apache::response::answer_footer($$tagstack[-1]);
+	if ($env{'form.answer_output_mode'} eq 'tex') {
+	    $result .= '\begin{tabular}{|l|}';
+	    $result .= '\hline';
+	    $result .= ' Answer for essay will be hand graded \\\\  ';
+	    $result .= '\\hline';
+	    $result .= '\end{tabular}';
+	    $result .= '\vskip 3mm';
+	} else {
+	    $result.=&Apache::response::answer_header($$tagstack[-1]);
+	    $result.=&Apache::response::answer_part($$tagstack[-1],'');
+	    $result.=&Apache::response::answer_footer($$tagstack[-1]);
+	}
     }
 
     if ($target eq 'grade' || $target eq 'web' || $target eq 'answer' ||