--- loncom/homework/grades.pm 2006/04/02 00:17:26 1.345
+++ loncom/homework/grades.pm 2006/04/10 06:34:07 1.349
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# The LON-CAPA Grading handler
#
-# $Id: grades.pm,v 1.345 2006/04/02 00:17:26 bowersj2 Exp $
+# $Id: grades.pm,v 1.349 2006/04/10 06:34:07 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -722,7 +722,14 @@ LISTJAVASCRIPT
$gradeTable.=''."\n".
''."\n".
''."\n".
- ''."\n".
+ '
'."\n".
+ ' Grading Increments: '.
+
''."\n".
''."\n".
'
'."\n".
@@ -1436,6 +1443,15 @@ sub sub_page_kw_js {
SUBJAVASCRIPT
}
+sub get_increment {
+ my $increment = $env{'form.increment'};
+ if ($increment != 1 && $increment != .5 && $increment != .25 &&
+ $increment != .1) {
+ $increment = 1;
+ }
+ return $increment;
+}
+
#--- displays the grading box, used in essay type problem and grading by page/sequence
sub gradeBox {
my ($request,$symb,$uname,$udom,$counter,$partid,$record) = @_;
@@ -1458,13 +1474,16 @@ sub gradeBox {
$result.='
'. 'Part: '.$display_part.' Points: | '."\n";
my $ctr = 0;
+ my $thisweight = 0;
+ my $increment = &get_increment();
$result.=' | |