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

raeburn raeburn@source.lon-capa.org
Fri, 11 Sep 2009 16:34:10 -0000


raeburn		Fri Sep 11 16:34:10 2009 EDT

  Modified files:              (Branch: GCI_1)
    /loncom/homework	essayresponse.pm 
  Log:
  - GCI customization for submission to concept inventory.
  
  
Index: loncom/homework/essayresponse.pm
diff -u loncom/homework/essayresponse.pm:1.100 loncom/homework/essayresponse.pm:1.100.4.1
--- loncom/homework/essayresponse.pm:1.100	Wed Jan 21 16:43:30 2009
+++ loncom/homework/essayresponse.pm	Fri Sep 11 16:34:09 2009
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # essay (ungraded) style responses
 #
-# $Id: essayresponse.pm,v 1.100 2009/01/21 16:43:30 raeburn Exp $
+# $Id: essayresponse.pm,v 1.100.4.1 2009/09/11 16:34:09 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -60,17 +60,21 @@
 	}
 	$result.='<br /><table border="1">';
 	if ( $Apache::lonhomework::type ne 'survey' ) {
-	    $result.= '<tr><td>'.
-		'<label>'.
-		'<input type="radio" name="HWDRAFT'.$part.'_'.$id.'" value="yes" checked="checked" /> '.
-		&mt('Submit entries below as answer to receive credit').
-		'</label> <br />'.
-		'<label>'.
-		'<input type="radio" name="HWDRAFT'.$part.'_'.$id.'" value="no" /> '.
-		&mt('Save entries below as a draft answer (not submitting them for credit yet)').
-		'</label>'.
-		'</td></tr>';
-	}
+            if ($env{'request.uri'} eq '/res/gci/gci/internal/submission.problem') {
+                $result .= '<input type="hidden" name="HWDRAFT'.$part.'_'.$id.'" value="yes" />';
+            } else {
+                $result.= '<tr><td>'.
+                '<label>'.
+                '<input type="radio" name="HWDRAFT'.$part.'_'.$id.'" value="yes" checked="checked" /> '.
+                &mt('Submit entries below as answer to receive credit').
+                '</label> <br />'.
+                '<label>'.
+                '<input type="radio" name="HWDRAFT'.$part.'_'.$id.'" value="no" /> '.
+                &mt('Save entries below as a draft answer (not submitting them for credit yet)').
+                '</label>'.
+                '</td></tr>';
+            }
+        }
 
 	if ($ncol > 0) {
 	    $result .='<tr><td>'.'<label>'.