--- loncom/interface/Attic/lonspreadsheet.pm 2001/11/05 18:22:24 1.73 +++ loncom/interface/Attic/lonspreadsheet.pm 2001/11/28 18:42:50 1.76 @@ -7,7 +7,7 @@ # 03/05,03/08,03/10,03/12,03/13,03/15,03/17, # 03/19,03/20,03/21,03/27,04/05,04/09, # 07/09,07/14,07/21,09/01,09/10,9/11,9/12,9/13,9/14,9/17, -# 10/16,10/17,10/20,11/05 Gerd Kortemeyer +# 10/16,10/17,10/20,11/05,11/28 Gerd Kortemeyer package Apache::lonspreadsheet; @@ -1245,7 +1245,13 @@ sub updatestudentassesssheet { # --------------------------------------------------------- Get all assessments my %allkeys=('timestamp' => - 'Timestamp of Last Transaction
timestamp'); + 'Timestamp of Last Transaction
timestamp', + 'subnumber' => + 'Number of Submissions
subnumber', + 'tutornumber' => + 'Number of Tutor Responses
tutornumber', + 'totalpoints' => + 'Total Points Granted
totalpoints'); my $adduserstr=''; if ((&getuname($safeeval) ne $ENV{'user.name'}) || @@ -1262,7 +1268,10 @@ sub updatestudentassesssheet { '">Evaluation', '_tutoring' => 'Tutoring' + '">Tutoring', + '_discussion' => + 'Discussion' ); map { @@ -1538,6 +1547,18 @@ sub loadassessment { } # ----------------------------- returnhash now has all stores for this resource +# --------- convert all "_" to "." to be able to use libraries, multiparts, etc + + my @oldkeys=keys %returnhash; + + map { + my $name=$_; + my $value=$returnhash{$_}; + delete $returnhash{$_}; + $name=~s/\_/\./g; + $returnhash{$name}=$value; + } @oldkeys; + # ---------------------------- initialize coursedata and userdata for this user undef %courseopt; undef %useropt; @@ -1716,6 +1737,11 @@ sub forcedrecalc { sub exportsheet { my ($uname,$udom,$stype,$usymb,$fn)=@_; my @exportarr=(); + + if (($usymb=~/^\_(\w+)/) && (!$fn)) { + $fn='default_'.$1; + } + # # Check if cached #