--- loncom/homework/grades.pm 2004/11/17 20:42:35 1.229 +++ loncom/homework/grades.pm 2004/11/23 02:37:58 1.230 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # The LON-CAPA Grading handler # -# $Id: grades.pm,v 1.229 2004/11/17 20:42:35 albertel Exp $ +# $Id: grades.pm,v 1.230 2004/11/23 02:37:58 banghart Exp $ # # Copyright Michigan State University Board of Trustees # @@ -1663,6 +1663,7 @@ KEYWORDS } } my $order=&get_order($partid,$respid,$symb,$uname,$udom); + my $portfolio_path; if ($ENV{'form.lastSub'} eq 'lastonly' || ($ENV{'form.lastSub'} eq 'hdgrade' && $$handgrade{$part} eq 'yes')) { @@ -1670,10 +1671,20 @@ KEYWORDS $lastsubonly.='Part: '. $display_part.' ( ID '.$respid. ' )   '; + if ($record{"resource.$partid.$respid.portfiles"}) { + $portfolio_path = '/uploaded/'.$udom.'/'.$uname.'/portfolio'; + &Apache::lonnet::logthis("found a portfolio file".$record{"resource.$partid.$respid.portfiles"}); + &Apache::lonnet::logthis("uploaded URL file".$record{"resource.$partid.$respid.uploadedurl"}); + } else { + $portfolio_path = ''; + } if ($record{"resource.$partid.$respid.uploadedurl"}) { &Apache::lonnet::allowuploaded('/adm/grades', - $record{"resource.$partid.$respid.uploadedurl"}); - $lastsubonly.=' File uploaded by student Like all files provided by users, this file may contain virusses
'; + $record{"resource.$partid.$respid.uploadedurl"}); + $lastsubonly.=' File uploaded by student Like all files provided by users, this file may contain virusses
'; + } + if ($record{"resource.$partid.$respid.portfiles"}) { + $lastsubonly.=' File uploaded by student Like all files provided by users, this file may contain virusses
'; } $lastsubonly.='Submitted Answer: '. &cleanRecord($subval,$responsetype,$symb,$partid,