--- loncom/interface/statistics/lonproblemanalysis.pm 2003/11/11 22:07:46 1.48 +++ loncom/interface/statistics/lonproblemanalysis.pm 2003/12/10 23:09:26 1.50 @@ -1,6 +1,6 @@ # The LearningOnline Network with CAPA # -# $Id: lonproblemanalysis.pm,v 1.48 2003/11/11 22:07:46 matthew Exp $ +# $Id: lonproblemanalysis.pm,v 1.50 2003/12/10 23:09:26 matthew Exp $ # # Copyright Michigan State University Board of Trustees # @@ -73,6 +73,19 @@ sub render_resource { sub BuildProblemAnalysisPage { my ($r,$c)=@_; # + my %Saveable_Parameters = ('Status' => 'scalar', + 'Section' => 'array', + 'NumPlots' => 'scalar', + 'AnalyzeAs' => 'scalar', + 'AnalyzeOver' => 'scalar', + ); + &Apache::loncommon::store_course_settings('problem_analysis', + \%Saveable_Parameters); + &Apache::loncommon::restore_course_settings('problem_analysis', + \%Saveable_Parameters); + # + &Apache::lonstatistics::PrepareClasslist(); + # $r->print('

'.&mt('Option Response Problem Analysis').'

'); $r->print(&CreateInterface()); # @@ -1478,10 +1491,14 @@ sub ProblemSelector { if ($ENV{'form.problemchoice'} eq $value) { $checked = 'checked '; } + my $title = $res->{'title'}; + if (! defined($title) || $title eq '') { + ($title) = ($res->{'src'} =~ m:/([^/]*)$:); + } $seq_str .= ''. ''. ''. - ''.$res->{'title'}.' '; + ''.$title.' '; # ''.$resptype.' '.$res->{'title'}.' '; if ($partdata->{'option'} > 1) { $seq_str .= &mt('response').' '.$respid;