--- loncom/homework/grades.pm 2009/08/19 19:25:21 1.579
+++ loncom/homework/grades.pm 2010/01/06 18:43:57 1.581.2.1
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# The LON-CAPA Grading handler
#
-# $Id: grades.pm,v 1.579 2009/08/19 19:25:21 raeburn Exp $
+# $Id: grades.pm,v 1.581.2.1 2010/01/06 18:43:57 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -1735,8 +1735,7 @@ sub gradeBox {
#&mt('
Part: | [_1] | Points: | [_2] | or | [_3] | ',$display_part,$radio,$line);
$result .=
- ''.&mt('Part:').' | '.$display_part.' | '.&mt('Points:').' | '.$radio.' | '.&mt('or').' | '.$line.' | '.
-
+ ''.&mt('Part:').' | '.$display_part.' | '.&mt('Points:').' | '.$radio.' | '.&mt('or').' | '.$line.' | ';
$result.=''."\n";
$result.=''."\n".
''."\n".
@@ -4698,7 +4697,7 @@ sub updateGradeByPage {
#
#-------------------------------------------------------------------
-#--------------------Scantron Grading-----------------------------------
+#-------------------- Bubblesheet (Scantron) Grading -------------------
#
#------ start of section for handling grading by page/sequence ---------
@@ -7991,8 +7990,8 @@ sub checkscantron_results {
my %completedstudents;
my $count=&Apache::grades::get_todo_count($scanlines,$scan_data);
- my %prog_state=&Apache::lonhtmlcommon::Create_PrgWin($r,'Scantron/Submissions Comparison Status',
- 'Progress of Scantron Data/Submission Records Comparison',$count,
+ my %prog_state=&Apache::lonhtmlcommon::Create_PrgWin($r,'Bubblesheet/Submissions Comparison Status',
+ 'Progress of Bubblesheet Data/Submission Records Comparison',$count,
'inline',undef,'checkscantron');
my ($username,$domain,$started);
@@ -8069,14 +8068,14 @@ sub checkscantron_results {
if ($scandata{$pid} eq $record{$pid}) {
my $css_class = ($passed % 2)?'LC_odd_row':'LC_even_row';
$okstudents .= ''.
-''.&mt('Scantron').' | '.$showscandata.' | '.$last.' | '.$pid.' | '."\n".
+''.&mt('Bubblesheet').' | '.$showscandata.' | '.$last.' | '.$pid.' | '."\n".
'
'."\n".
''."\n".
'Submissions | '.$showrecord.' |
'."\n";
$passed ++;
} else {
my $css_class = ($failed % 2)?'LC_odd_row':'LC_even_row';
- $badstudents .= ''.&mt('Scantron').' | '.$scandata{$pid}.' | '.$last.' | '.$pid.' | '."\n".
+ $badstudents .= '
'.&mt('Bubblesheet').' | '.$scandata{$pid}.' | '.$last.' | '.$pid.' | '."\n".
'
'."\n".
''."\n".
'Submissions | '.$record{$pid}.' | '."\n".
@@ -8321,7 +8320,7 @@ sub grading_menu {
icon => 'addClickerInfoFile.png',
linktitle => 'Specify a file containing the clicker information for this resource.'
},
- { linktext => 'Grade/Manage/Review Scantron Forms',
+ { linktext => 'Grade/Manage/Review Bubblesheet Forms',
url => $url4,
permission => 'F',
icon => 'stat.png',
@@ -9117,6 +9116,11 @@ sub handler {
my $brcrum = [{href=>"/adm/grades",text=>"Grading"}];
$request->print(&Apache::loncommon::start_page('Grading',undef,
{'bread_crumbs' => $brcrum}));
+ if (&Apache::loncommon::needs_gci_custom()) {
+ $request->print(''.&mt('Grading screens are unavailable for GCI Concept Tests').'
'.&Apache::loncommon::end_page());
+ &reset_caches();
+ return '';
+ }
if ($symb eq '' && $command eq '') {
if ($env{'user.adv'}) {
if (($env{'form.codeone'}) && ($env{'form.codetwo'}) &&