--- loncom/interface/statistics/lonproblemstatistics.pm 2005/03/01 00:07:21 1.97 +++ loncom/interface/statistics/lonproblemstatistics.pm 2005/03/03 18:56:26 1.98 @@ -1,6 +1,6 @@ # The LearningOnline Network with CAPA # -# $Id: lonproblemstatistics.pm,v 1.97 2005/03/01 00:07:21 matthew Exp $ +# $Id: lonproblemstatistics.pm,v 1.98 2005/03/03 18:56:26 matthew Exp $ # # Copyright Michigan State University Board of Trustees # @@ -353,17 +353,18 @@ my @Fields = ( # selectable => 'no', # defaultselected => 'yes', # }, -## weight included for research purposes. Commented out most of the time. -# { name => 'weight', -# title => 'weight', -# align => 'right', -# color => '#FFFFFF', -# sortable => 'no', -# graphable => 'no', -# long_title => 'Problem weight (for instructor)', -# selectable => 'no', -# defaultselected => 'yes', -# }, +# +## problem weight for instructor + { name => 'weight', + title => 'weight', + align => 'right', + color => '#FFFFFF', + sortable => 'no', + graphable => 'no', + long_title => 'Problem weight (for instructor)', + selectable => 'no', + defaultselected => 'yes', + }, ); my @SeqFields = ( @@ -1598,8 +1599,8 @@ sub get_statistics { # &Apache::lonnet::EXT('resource.'.$part.'.maxtries',$symb); # $data->{'hinttries'} = # &Apache::lonnet::EXT('resource.'.$part.'.hinttries',$symb); -# $data->{'weight'} = -# &Apache::lonnet::EXT('resource.'.$part.'.weight',$symb); + $data->{'weight'} = + &Apache::lonnet::EXT('resource.'.$part.'.weight',$symb); # $data->{'resptypes'} = join(',',@{$resource->{'partdata'}->{$part}->{'ResponseTypes'}}); return $data; }