--- loncom/homework/grades.pm 2004/04/24 08:35:10 1.189 +++ loncom/homework/grades.pm 2004/04/24 09:01:52 1.190 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # The LON-CAPA Grading handler # -# $Id: grades.pm,v 1.189 2004/04/24 08:35:10 albertel Exp $ +# $Id: grades.pm,v 1.190 2004/04/24 09:01:52 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -3521,8 +3521,8 @@ sub scantron_selectphase { Options: - Redo skipped records
- Ignore Original Corrections + Redo skipped records
+ Ignore Original Corrections @@ -3836,7 +3836,15 @@ sub scantron_process_corrections { 'username'=>$ENV{'form.scantron_username'}, 'domain'=>$ENV{'form.scantron_domain'}}); } elsif ($ENV{'form.scantron_corrections'} =~ /^(duplicate|incorrect)CODE$/) { - my $newCODE=$ENV{'form.scantron_CODE'}; + my $resolution=$ENV{'form.scantron_CODE_resolution'}; + my $newCODE; + if ($resolution eq 'use_unfound') { + &FIXME_blow_up(); + } elsif ($resolution eq 'use_found') { + $newCODE=$ENV{'form.scantron_CODE_selectedvalue'}; + } elsif ($resolution eq 'use_typed') { + $newCODE=$ENV{'form.scantron_CODE_newvalue'}; + } ($line,$err,$errmsg)= &scantron_fixup_scanline(\%scantron_config,$scan_data,$line,$which, 'CODE',{'CODE'=>$newCODE}); @@ -3876,6 +3884,10 @@ sub scantron_validate_file { + + + + $default_form_data SCANTRONFORM $r->print($result); @@ -4116,12 +4128,12 @@ sub scantron_get_correction { $$scan_record{'scantron.FirstName'}."

"); $r->print("

How should I handle this?
\n"); $r->print("\n
"); - $r->print(" Use the CODE ".$$scan_record{'scantron.CODE'}." that is was on the paper, ignoring the error."); + $r->print(" Use the CODE ".$$scan_record{'scantron.CODE'}." that is was on the paper, ignoring the error."); $r->print("\n
"); $r->print(< function change_radio(field) { - var slct=document.scantronupload.scan_CODE_resolution; + var slct=document.scantronupload.scantron_CODE_resolution; var i; for (i=0;i Select a CODE from the list of all CODEs and use it. Selected CODE is "); + $r->print(" Select a CODE from the list of all CODEs and use it. Selected CODE is "); $r->print("\n
"); - $r->print(" Use as the CODE."); + $r->print(" Use as the CODE."); $r->print("\n

"); } elsif ($error eq 'doublebubble') { #FIXME Need to print out who this is along with the paper info @@ -4198,7 +4210,6 @@ sub scantron_validate_CODE { &FIXME_blow_up() } } else { - &Apache::lonnet::logthis(" CODE stuf $scantron_config{'CODElocation'}:$scantron_config{'CODEstart'}:$scantron_config{'CODElength'}"); return (0,$currentphase+1); }