--- loncom/homework/grades.pm 2004/11/06 01:11:38 1.224 +++ loncom/homework/grades.pm 2004/11/17 20:32:44 1.228 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # The LON-CAPA Grading handler # -# $Id: grades.pm,v 1.224 2004/11/06 01:11:38 albertel Exp $ +# $Id: grades.pm,v 1.228 2004/11/17 20:32:44 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -3474,7 +3474,7 @@ sub scantron_CODElist { my $cnum = $ENV{'course.'.$ENV{'request.course.id'}.'.num'}; my @names=&Apache::lonnet::getkeys('CODEs',$cdom,$cnum); my $namechoice=''; - foreach my $name (sort(@names)) { + foreach my $name (sort {uc($a) cmp uc($b)} @names) { if ($name =~ /^error: 2 /) { next; } $namechoice.=''.$name.''; } @@ -3511,8 +3511,8 @@ sub scantron_selectphase { $result.= < + - $default_form_data @@ -3549,8 +3549,8 @@ sub scantron_selectphase { - - + + SCANTRONFORM @@ -3606,8 +3606,8 @@ SCANTRONFORM } $r->print(< - - + + @@ -3624,14 +3624,13 @@ SCANTRONFORM - - + + SCANTRONFORM $r->print(< - $grading_menu_button SCANTRONFORM @@ -4631,6 +4630,10 @@ SCANTRONFORM $form{'CODE'}=''; } my $result=&Apache::lonnet::ssi($resource->src(),%form); + if ($result ne '') { + &Apache::lonnet::logthis("scantron grading error -> $result"); + &Apache::lonnet::logthis("scantron grading error info name $uname domain $domain course $ENV{'request.course.id'} url $resource->src()"); + } if (&Apache::loncommon::connection_aborted($r)) { last; } } $completedstudents{$uname}={'line'=>$line};