--- loncom/homework/grades.pm 2007/10/29 09:46:28 1.470 +++ loncom/homework/grades.pm 2007/10/31 18:01:34 1.473 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # The LON-CAPA Grading handler # -# $Id: grades.pm,v 1.470 2007/10/29 09:46:28 foxr Exp $ +# $Id: grades.pm,v 1.473 2007/10/31 18:01:34 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -5316,19 +5316,15 @@ sub scantron_parse_scanline { } elsif (!defined($currentquest) || (&occurence_count($currentquest, $$scantron_config{'Qoff'}) == length($currentquest)) || (&occurence_count($currentquest, "[A-Z]") == 0)) { - &Apache::lonnet::logthis("Missing if, $questnum, $ansnum"); for (my $ans = 0; $ans < $answers_needed; $ans++ ) { $record{"scantron.$ansnum.answer"}=''; $ansnum++; } if (!&scan_data($scan_data,"$whichline.no_bubble.$questnum")) { - &Apache::lonnet::logthis("Parsed missing: $questnum"); push(@{$record{"scantron.missingerror"}},$questnum); # $ansnum += $answers_needed; } - &Apache::lonnet::logthis("Residual scanline: '$questions'"); - } else { for (my $ans = 0; $ans < $answers_needed; $ans++) { $record{"scantron.$ansnum.answer"} = substr($currentquest, $ans, 1); @@ -6487,7 +6483,6 @@ ENDSCRIPT foreach my $question (@{$arg}) { my $selected = &get_response_bubbles($scan_record, $question); my @select_array = split(/:/,$selected); # ought to be an array of empties. - &Apache::lonnet::logthis("Calling bubble selector (missing)"); &scantron_bubble_selector($r,$scan_config,$question, @select_array); } } else { @@ -6529,7 +6524,6 @@ sub scantron_bubble_selector { my $total_lines = $lines*2; my @alphabet=('A'..'Z'); - &Apache::lonnet::logthis("Putting in question number $quest"); $r->print(""); for (my $l = 0; $l < $lines; $l++) { @@ -6885,7 +6879,6 @@ sub scantron_validate_missingbubbles { foreach my $missing (@{$$scan_record{'scantron.missingerror'}}) { if ($missing > $max_bubble) { next; } - &Apache::lonnet::logthis("Marking $missing for missing bubble check"); push(@to_correct,$missing); } if (@to_correct) { @@ -7397,9 +7390,8 @@ sub submit_options { GRADINGMENUJS &commonJSfunctions($request); - my $result='

 Manual Grading/View Submission

'; my ($table,undef,$hdgrade) = &showResourceInfo($symb,$probTitle); - $result.=$table; + my $result; my (undef,$sections) = &getclasslist('all','0'); my $savedState = &savedState(); my $saveCmd = ($$savedState{'saveCmd'} eq '' ? 'submission' : $$savedState{'saveCmd'}); @@ -7416,102 +7408,104 @@ GRADINGMENUJS ''."\n". ''."\n"; - $result.='
$quest
'."\n". - ''."\n". - ''; #'; - $result.= '
'."\n". - ' Select a Grading/Viewing Option
'."\n"; - - $result.=''; - $result.=''."\n"; - $result.=''; - $result.=''; - $result.=''."\n"; - $result.=''."\n"; - $result.=''; - $result.=''; - $result.=''; - - $result.=''."\n"; - - $result.=''."\n"; - - $result.=''."\n"; - - - $result.=''."\n"; - - $result.='
'.&mt('Sections').''.&mt('Groups').''.&mt('Access Status').''.&mt('Submission Status').'
'."\n". - ' '."\n"; if (ref($sections)) { - foreach (sort (@$sections)) { - $result.=''."\n"; + foreach my $section (sort (@$sections)) { + $result.=''."\n"; } } $result.= '   '; - $result.= ''."\n"; - $result.= &Apache::lonstatistics::GroupSelect('group','multiple',3); - $result.=''."\n"; - $result.=&Apache::lonhtmlcommon::StatusOptions($saveStatus,undef,3,undef,'mult'); - - $result.='
'. - '

'. - ''. - '
'. - '

'. - ''. - '
'."\n"; - - $result.='
'; - -# $result.=''; -# $result.=''."\n"; -# -# $result.=''."\n"; -# -# $result.=''."\n"; -# -# if ((&Apache::lonnet::allowed('mgr',$env{'request.course.id'})) && ($symb)) { -# $result.=''."\n"; -# } -# $result.=''."\n"; -# $result.=''."\n"; -# -# $result.='
'. -# ''. -# ' '.&mt('scores from file').'
'. -# ''. -# ' '.&mt('clicker file').'
'. -# ' scantron forms
'. -# ''. -# ' '.&mt('receipt').': '. -# &Apache::lonnet::recprefix($env{'request.course.id'}). -# '-'. -# '
'. -# ' access times.
'. -# ' saved CODEs.
'."\n".'
'."\n". - '
'."\n"; + $result.=' + + +
+
+ '.&mt('Groups').' +
+
+ '.&Apache::lonstatistics::GroupSelect('group','multiple',5).' +
+
+
+
+ '.&mt('Access Status').' +
+
+ '.&Apache::lonhtmlcommon::StatusOptions($saveStatus,undef,5,undef,'mult').' +
+
+
+
+ '.&mt('Submission Status').' +
+
+ +
+
+
+
+ +
+
+ +
+
+ +
+
+ + +
+

+ '.&mt('Grade Complete Folder for One Student').' +

+
+
+
+ +
+
+ +
+
+
+
+ + '; return $result; }