[LON-CAPA-cvs] cvs: loncom /interface/statistics lonstathelpers.pm
matthew
lon-capa-cvs@mail.lon-capa.org
Tue, 15 Jun 2004 14:26:10 -0000
matthew Tue Jun 15 10:26:10 2004 EDT
Modified files:
/loncom/interface/statistics lonstathelpers.pm
Log:
ProblemSelector: skip survey problems.
Index: loncom/interface/statistics/lonstathelpers.pm
diff -u loncom/interface/statistics/lonstathelpers.pm:1.13 loncom/interface/statistics/lonstathelpers.pm:1.14
--- loncom/interface/statistics/lonstathelpers.pm:1.13 Tue Jun 15 10:22:45 2004
+++ loncom/interface/statistics/lonstathelpers.pm Tue Jun 15 10:26:10 2004
@@ -1,6 +1,6 @@
# The LearningOnline Network with CAPA
#
-# $Id: lonstathelpers.pm,v 1.13 2004/06/15 14:22:45 matthew Exp $
+# $Id: lonstathelpers.pm,v 1.14 2004/06/15 14:26:10 matthew Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -109,6 +109,7 @@
Returns: A string containing html for a table which lists the sequences
and their contents. A radiobutton is provided for each problem.
+Skips 'survey' problems.
=cut
@@ -125,6 +126,7 @@
next if ($res->{'type'} ne 'assessment');
foreach my $part (@{$res->{'parts'}}) {
my $partdata = $res->{'partdata'}->{$part};
+ next if ($partdata->{'Survey'});
for (my $i=0;$i<scalar(@{$partdata->{'ResponseTypes'}});$i++){
my $respid = $partdata->{'ResponseIds'}->[$i];
my $resptype = $partdata->{'ResponseTypes'}->[$i];