[LON-CAPA-cvs] cvs: loncom /homework grades.pm

www www@source.lon-capa.org
Tue, 20 Apr 2010 19:04:55 -0000


www		Tue Apr 20 19:04:55 2010 EDT

  Modified files:              
    /loncom/homework	grades.pm 
  Log:
  Part ID is actually Response ID
  Don't lose the symb!
  
  
Index: loncom/homework/grades.pm
diff -u loncom/homework/grades.pm:1.624 loncom/homework/grades.pm:1.625
--- loncom/homework/grades.pm:1.624	Sun Apr 18 19:29:10 2010
+++ loncom/homework/grades.pm	Tue Apr 20 19:04:54 2010
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # The LON-CAPA Grading handler
 #
-# $Id: grades.pm,v 1.624 2010/04/18 19:29:10 www Exp $
+# $Id: grades.pm,v 1.625 2010/04/20 19:04:54 www Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -2586,18 +2586,19 @@
 	    my $processUser = $env{'form.unamedom'.$ctr};
 	    ($env{'form.student'},$env{'form.userdom'}) = split(/:/,$processUser);
 	    $env{'form.fullname'} = $$fullname{$processUser};
-	    &submission($request,$ctr,$total-1);
+	    &submission($request,$ctr,$total-1,$symb);
 	    $ctr++;
 	}
 	return '';
     }
 
 # Go directly to grade student - from submission or link from chart page
+# FIXME: looks like reading off the button label!
     if ($button eq 'Grade Student') {
 	my $processUser = $env{'form.unamedom'.$env{'form.studentNo'}};
 	($env{'form.student'},$env{'form.userdom'}) = split(/:/,$processUser);
 	$env{'form.fullname'} = $$fullname{$processUser};
-	&submission($request,0,0);
+	&submission($request,0,0,$symb);
 	return '';
     }
 
@@ -2684,7 +2685,7 @@
 	$env{'form.student'}  = $uname;
 	$env{'form.userdom'}  = $udom;
 	$env{'form.fullname'} = $$fullname{$_};
-	&submission($request,$ctr,$total);
+	&submission($request,$ctr,$total,$symb);
 	$ctr++;
     }
     if ($total < 0) {
@@ -4525,7 +4526,7 @@
                     $displaySub[0].='<span class="LC_nobreak"';
                     $displaySub[0].='<b>'.&mt('Part: [_1]',$display_part).'</b>'
                                    .' <span class="LC_internal_info">'
-                                   .'('.&mt('Part ID: [_1]',$responseId).')'
+                                   .'('.&mt('Response ID: [_1]',$responseId).')'
                                    .'</span>'
                                    .' <b>';
                     if ($hidden) {