[LON-CAPA-cvs] cvs: loncom /interface/statistics lonproblemstatistics.pm

matthew lon-capa-cvs@mail.lon-capa.org
Thu, 03 Mar 2005 18:56:27 -0000


matthew		Thu Mar  3 13:56:27 2005 EDT

  Modified files:              
    /loncom/interface/statistics	lonproblemstatistics.pm 
  Log:
  Allow output of problem weight.
  
  
Index: loncom/interface/statistics/lonproblemstatistics.pm
diff -u loncom/interface/statistics/lonproblemstatistics.pm:1.97 loncom/interface/statistics/lonproblemstatistics.pm:1.98
--- loncom/interface/statistics/lonproblemstatistics.pm:1.97	Mon Feb 28 19:07:21 2005
+++ loncom/interface/statistics/lonproblemstatistics.pm	Thu Mar  3 13:56:26 2005
@@ -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 @@
 #             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 @@
 #        &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;
 }