[LON-CAPA-cvs] cvs: doc /homework datastorage loncom/homework inputtags.pm
albertel
lon-capa-cvs@mail.lon-capa.org
Sun, 19 Jan 2003 08:16:43 -0000
albertel Sun Jan 19 03:16:43 2003 EDT
Modified files:
/loncom/homework inputtags.pm
/doc/homework datastorage
Log:
- committing new awarddetail MISORDERED_RANK
Index: loncom/homework/inputtags.pm
diff -u loncom/homework/inputtags.pm:1.78 loncom/homework/inputtags.pm:1.79
--- loncom/homework/inputtags.pm:1.78 Mon Jan 13 16:22:43 2003
+++ loncom/homework/inputtags.pm Sun Jan 19 03:16:43 2003
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# input definitons
#
-# $Id: inputtags.pm,v 1.78 2003/01/13 21:22:43 sakharuk Exp $
+# $Id: inputtags.pm,v 1.79 2003/01/19 08:16:43 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -239,6 +239,9 @@
foreach $award (@_) { if ($award eq 'INCORRECT') {$result=$award; last;} }
}
if ($result eq '' ) {
+ foreach $award (@_) { if ($award eq 'MISORDERED_RANK') {$result=$award; last;} }
+ }
+ if ($result eq '' ) {
foreach $award (@_) { if ($award eq 'DRAFT') {$result=$award; last;} }
}
if ($result eq '' ) {
@@ -291,6 +294,10 @@
$button = 1;
} elsif ($award eq 'WANTED_NUMERIC') {
$message = "This question expects a numeric answer";
+ $button=1;
+ } elsif ($award eq 'MISORDERED_RANK') {
+ $message = 'You have provided an invalid ranking, look '.
+ '<a href="/adm/pages/misordered_rank.html">here</a> for more information.';
$button=1;
} elsif ($award eq 'SIG_FAIL') {
$message = "Please adjust significant figures.";# you provided %s significant figures";
Index: doc/homework/datastorage
diff -u doc/homework/datastorage:1.15 doc/homework/datastorage:1.16
--- doc/homework/datastorage:1.15 Mon Nov 11 17:00:09 2002
+++ doc/homework/datastorage Sun Jan 19 03:16:43 2003
@@ -92,7 +92,7 @@
# INCORRECT : answer was wrong
# SUBMITTED : submission wasn't graded
# DRAFT : submission only stored
-
+ # MISORDER_RANK : student submitted a poorly order rank response
# ERROR : unable to get a grade
resource.partid.responseid.message (optional) (not yet supported)