[LON-CAPA-cvs] cvs: loncom /homework essayresponse.pm
ng
lon-capa-cvs@mail.lon-capa.org
Tue, 09 Jul 2002 17:18:25 -0000
ng Tue Jul 9 13:18:25 2002 EDT
Modified files:
/loncom/homework essayresponse.pm
Log:
beginnings of collaborators list written by Gerd
Index: loncom/homework/essayresponse.pm
diff -u loncom/homework/essayresponse.pm:1.7 loncom/homework/essayresponse.pm:1.8
--- loncom/homework/essayresponse.pm:1.7 Fri Jan 18 12:45:30 2002
+++ loncom/homework/essayresponse.pm Tue Jul 9 13:18:25 2002
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# essay (ungraded) style responses
#
-# $Id: essayresponse.pm,v 1.7 2002/01/18 17:45:30 albertel Exp $
+# $Id: essayresponse.pm,v 1.8 2002/07/09 17:18:25 ng Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -40,6 +40,10 @@
if ($target eq 'meta') {
$result=&Apache::response::meta_package_write('essayresponse');
}
+# if ($target eq 'web') {
+# $result='<br />Collaborators: <input type="text" size="20" name="HWCOL'.
+# $Apache::inputtags::response['-1']."' />';
+# }
return $result;
}
@@ -49,10 +53,12 @@
if ( defined $ENV{'form.submitted'}) {
my $id = $Apache::inputtags::response['-1'];
my $response = $ENV{'form.HWVAL'.$Apache::inputtags::response['-1']};
+ my $collaborators = $ENV{'form.HWCOL'.$Apache::inputtags::response['-1']};
if ( $response =~ /[^\s]/) {
my $part=$Apache::inputtags::part;
$Apache::lonhomework::results{"resource.$part.$id.submission"}=$response;
$Apache::lonhomework::results{"resource.$part.$id.awarddetail"}="SUBMITTED";
+# $Apache::lonhomework::results{"resource.$part.$id.collaborators"}=$collaborators;
my %previous=&Apache::response::check_for_previous($response,$part,$id);
&Apache::response::handle_previous(\%previous,'SUBMITTED');
}