--- loncom/interface/loncoursedata.pm 2003/09/26 19:23:14 1.90 +++ loncom/interface/loncoursedata.pm 2003/09/29 19:48:17 1.91 @@ -1,6 +1,6 @@ # The LearningOnline Network with CAPA # -# $Id: loncoursedata.pm,v 1.90 2003/09/26 19:23:14 matthew Exp $ +# $Id: loncoursedata.pm,v 1.91 2003/09/29 19:48:17 matthew Exp $ # # Copyright Michigan State University Board of Trustees # @@ -197,6 +197,10 @@ sub get_sequence_assessment_data { my @Ids = $curRes->responseIds($part); $partdata{$part}->{'ResponseTypes'}= \@Responses; $partdata{$part}->{'ResponseIds'} = \@Ids; + # Count how many responses of each type there are in this part + foreach (@Responses) { + $partdata{$part}->{$_}++; + } } my $assessment = { title => $title, src => $src,