--- loncom/homework/grades.pm 2004/02/17 16:45:58 1.176 +++ loncom/homework/grades.pm 2004/02/24 23:22:24 1.177 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # The LON-CAPA Grading handler # -# $Id: grades.pm,v 1.176 2004/02/17 16:45:58 albertel Exp $ +# $Id: grades.pm,v 1.177 2004/02/24 23:22:24 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -526,18 +526,28 @@ sub verifyreceipt { my ($string,$contents,$matches) = ('','',0); my (undef,undef,$fullname) = &getclasslist('all','0'); - + + my $receiptparts=0; + if ($ENV{"course.$courseid.receiptalg"} eq 'receipt2') { $receiptparts=1; } + my $parts=['0']; + if ($receiptparts) { ($parts)=&response_type($url,$symb); } + $request->print("got Parts ".join(':',@$parts)); foreach (sort {lc($$fullname{$a}) cmp lc($$fullname{$b}) } keys %$fullname) { my ($uname,$udom)=split(/\:/); - if ($receipt eq - &Apache::lonnet::ireceipt($uname,$udom,$courseid,$symb)) { - $contents.='
Fullname | '."\n". 'Username | '."\n". - 'Domain | Domain | '; + if ($receiptparts) { + $string.='Problem Part | '; + } + $string.=''."\n".$contents. '