--- loncom/homework/grades.pm 2004/11/23 14:19:32 1.231
+++ loncom/homework/grades.pm 2004/11/23 14:37:33 1.232
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# The LON-CAPA Grading handler
#
-# $Id: grades.pm,v 1.231 2004/11/23 14:19:32 albertel Exp $
+# $Id: grades.pm,v 1.232 2004/11/23 14:37:33 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -1670,17 +1670,25 @@ KEYWORDS
$lastsubonly.='
Part: '.
$display_part.' ( ID '.$respid.
' ) ';
- my $file_url;
+ my @files;
if ($record{"resource.$partid.$respid.portfiles"}) {
- $file_url = '/uploaded/'.$udom.'/'.$uname.'/portfolio'.$record{"resource.$partid.$respid.portfiles"};
- &Apache::lonnet::logthis("found a portfolio file".$record{"resource.$partid.$respid.portfiles"});
- &Apache::lonnet::logthis("uploaded URL file".$record{"resource.$partid.$respid.uploadedurl"});
- } else {
- $file_url=$record{"resource.$partid.$respid.uploadedurl"};
+ my $file_url = '/uploaded/'.$udom.'/'.$uname.'/portfolio';
+ foreach my $file (split(',',$record{"resource.$partid.$respid.portfiles"})) {
+ push(@files,$file_url.$file);
+
+ &Apache::lonnet::logthis("found a portfolio file".$record{"resource.$partid.$respid.portfiles"});
+ &Apache::lonnet::logthis("uploaded URL file".$record{"resource.$partid.$respid.uploadedurl"});
+ }
+ }
+ if ($record{"resource.$partid.$respid.uploadedurl"}) {
+ push(@files,$record{"resource.$partid.$respid.uploadedurl"});
}
- if ($file_url) {
- &Apache::lonnet::allowuploaded('/adm/grades',$file_url);
- $lastsubonly.=' File uploaded by student Like all files provided by users, this file may contain virusses ';
+ if (@files) {
+ $lastsubonly.=' Like all files provided by users, this file may contain virusses ';
+ foreach my $file (@files) {
+ &Apache::lonnet::allowuploaded('/adm/grades',$file);
+ $lastsubonly.=' '.$file.'';
+ }
}
$lastsubonly.='Submitted Answer: '.
&cleanRecord($subval,$responsetype,$symb,$partid,
|