--- loncom/interface/statistics/lonstathelpers.pm 2004/06/15 14:22:45 1.13 +++ loncom/interface/statistics/lonstathelpers.pm 2004/06/15 14:43:45 1.15 @@ -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.15 2004/06/15 14:43:45 matthew Exp $ # # Copyright Michigan State University Board of Trustees # @@ -109,6 +109,7 @@ all option response and radiobutton prob 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 @@ sub ProblemSelector { 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{'ResponseTypes'}});$i++){ my $respid = $partdata->{'ResponseIds'}->[$i]; my $resptype = $partdata->{'ResponseTypes'}->[$i]; @@ -260,12 +262,14 @@ sub get_prev_curr_next { next if ($res->{'type'} ne 'assessment'); foreach my $part (@{$res->{'parts'}}) { my $partdata = $res->{'partdata'}->{$part}; - if ($granularity eq 'part_survey' && $partdata->{'Survey'}){ - push (@Resource, - { symb => $res->{symb}, - part => $part, - resource => $res, - } ); + if ($partdata->{'Survey'}) { + if ($granularity eq 'part_survey'){ + push (@Resource, + { symb => $res->{symb}, + part => $part, + resource => $res, + } ); + } } elsif ($granularity eq 'part') { push (@Resource, { symb => $res->{symb},