--- loncom/interface/statistics/lonproblemstatistics.pm 2002/07/30 22:09:01 1.7
+++ loncom/interface/statistics/lonproblemstatistics.pm 2002/07/30 23:08:56 1.8
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# (Publication Handler
#
-# $Id: lonproblemstatistics.pm,v 1.7 2002/07/30 22:09:01 minaeibi Exp $
+# $Id: lonproblemstatistics.pm,v 1.8 2002/07/30 23:08:56 minaeibi Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -427,7 +427,11 @@ sub BuildStatisticsTable {
$Temp = ''.$cache->{$ResId.':title'}.$Dummy.'';
- my $res = &Apache::lonnet::declutter($cache->{'src_'.$ResId});
+ #$r->print('
rid='.$ResId);
+ #$r->print('
src='.$cache->{$ResId.':source'});
+ #$r->print('
tit='.$cache->{$ResId.':title'});
+
+ my $res = &Apache::lonnet::declutter($cache->{$ResId.':source'});
my $urlres=$res;
$ResId=~/(\d+)\.(\d+)/;
@@ -579,46 +583,46 @@ sub TableRow {
my($PrOrd,$Temp,$StdNo,$TotalTries,$MxTries,$Avg,$YES,$Override,
$Wrng,$DoD,$SD,$Sk,$_D1,$_D2,$DiscNo,$Prob)=split(/\&/,$Str);
# $r->print('
'.$Str);
+ my $Ptr;
if ($ENV{'form.showcsv'}) {
my ($ResId,$Dummy)=split(/\*/,$Prob);
- my $Ptr = "\n".'
'.
- "\n".'"'.($RealIdx+1).'",'.
- "\n".'"'.$cache->{'title_'.$ResId}.$Dummy.'",'.
- "\n".'"'.$cache->{'src_'.$ResId}.'",'.
- "\n".'"'.$StdNo.'",'.
- "\n".'"'.$TotalTries.'",'.
- "\n".'"'.$MxTries.'",'.
- "\n".'"'.$Avg.'",'.
- "\n".'"'.$YES.'",'.
- "\n".'"'.$Override.'",'.
- "\n".'"'.$Wrng.'",'.
- "\n".'"'.$DoD.'",'.
- "\n".'"'.$SD.'",'.
- "\n".'"'.$Sk.'",'.
- "\n".'"'.$_D1.'",'.
- "\n".'"'.$_D2.'"'.
- "\n".'"'.$DiscNo.'"';
+ $Ptr="\n".'
'.
+ "\n".'"'.($RealIdx+1).'",'.
+ "\n".'"'.$cache->{'title_'.$ResId}.$Dummy.'",'.
+ "\n".'"'.$cache->{'src_'.$ResId}.'",'.
+ "\n".'"'.$StdNo.'",'.
+ "\n".'"'.$TotalTries.'",'.
+ "\n".'"'.$MxTries.'",'.
+ "\n".'"'.$Avg.'",'.
+ "\n".'"'.$YES.'",'.
+ "\n".'"'.$Override.'",'.
+ "\n".'"'.$Wrng.'",'.
+ "\n".'"'.$DoD.'",'.
+ "\n".'"'.$SD.'",'.
+ "\n".'"'.$Sk.'",'.
+ "\n".'"'.$_D1.'",'.
+ "\n".'"'.$_D2.'"'.
+ "\n".'"'.$DiscNo.'"';
$r->print("\n".$Ptr);
- }
- else{
- my $Ptr = "\n".'