--- loncom/interface/statistics/lonstathelpers.pm 2004/09/23 15:31:40 1.25 +++ loncom/interface/statistics/lonstathelpers.pm 2004/09/30 13:44:07 1.27 @@ -1,6 +1,6 @@ # The LearningOnline Network with CAPA # -# $Id: lonstathelpers.pm,v 1.25 2004/09/23 15:31:40 matthew Exp $ +# $Id: lonstathelpers.pm,v 1.27 2004/09/30 13:44:07 matthew Exp $ # # Copyright Michigan State University Board of Trustees # @@ -118,6 +118,7 @@ sub ProblemSelector { my ($AcceptedResponseTypes) = @_; my $Str; $Str = "\n\n"; + my $rb_count =0; foreach my $seq (&Apache::lonstatistics::Sequences_with_Assess('all')) { next if ($seq->{'num_assess'}<1); my $seq_str = ''; @@ -141,16 +142,17 @@ sub ProblemSelector { if (! defined($title) || $title eq '') { ($title) = ($res->{'src'} =~ m:/([^/]*)$:); } - $seq_str .= ''. + qq{}. + ''. + '\n"; + $rb_count++; } } } @@ -304,8 +306,10 @@ sub new_accumulator { $target .= 'id="'.$seq_id.':'.$item_id++.'" '; $target.= 'value="'.&Apache::lonnet::escape($res->symb).'" />'. - ' '.$res->compTitle.''. - ''.$/; + ' '.$res->compTitle.''. + (' 'x2).'view'. + ''.$/; } else { if (defined($target)) { return { title => $title,
'. - ''. - ''. - $resptype.''. - ''.$title.' '; -# ''.$resptype.' '.$res->{'title'}.' '; + $seq_str .= '
'; if (scalar(@{$partdata->{'ResponseIds'}}) > 1) { $seq_str .= &mt('response').' '.$respid; } + $seq_str .= (' 'x2). + qq{view}; $seq_str .= "