--- loncom/interface/statistics/lonproblemanalysis.pm 2004/12/06 16:22:21 1.108 +++ loncom/interface/statistics/lonproblemanalysis.pm 2004/12/23 19:58:06 1.110 @@ -1,6 +1,6 @@ # The LearningOnline Network with CAPA # -# $Id: lonproblemanalysis.pm,v 1.108 2004/12/06 16:22:21 matthew Exp $ +# $Id: lonproblemanalysis.pm,v 1.110 2004/12/23 19:58:06 matthew Exp $ # # Copyright Michigan State University Board of Trustees # @@ -86,7 +86,8 @@ sub BuildProblemAnalysisPage { # # Support for numerical and radio response isn't complete enough to # include in 1.2 release. - my $problem_types = '(option|radiobutton|numerical)'; + # my $problem_types = '(option|radiobutton|numerical)'; + my $problem_types = '(option|radiobutton)'; # my $problem_types = '.';#(option)'; if (exists($ENV{'form.problemchoice'}) && ! exists($ENV{'form.SelectAnother'})) { @@ -456,19 +457,14 @@ sub numerical_classify_responses { my ($sname,$sdom) = split(':',$subm{'student'}); # Note that $subm{'unit'} is modified by the following call # We do not use it again but you should be aware just in case. -# my ($myunit,$mysub) = ($subm{'unit'},$subm{'submission'}); -# $myunit = 'm'; -# # &Apache::lonnet::logthis($myunit); -# my $result = -# &capa::caparesponse_get_real_response($myunit, -# $mysub, -# \$scaled); -# # &Apache::lonnet::logthis(' '.$myunit.':'.$subm{'unit'}. -# # ' '.$mysub.':'.$subm{'submission'}.'; '.$result); -# next if (! defined($scaled)); -# next if ($result ne '6'); -# my $submission = $scaled; - my $submission = $subm{'submission'}; + my ($myunit,$mysub) = ($subm{'unit'},$subm{'submission'}); + my $result = + &capa::caparesponse_get_real_response($myunit, + $mysub, + \$scaled); + next if (! defined($scaled)); + next if ($result ne '6'); + my $submission = $scaled; $students{$subm{'student'}}++; if (&numerical_submission_is_correct($subm{'award'})) { &Apache::lonnet::logthis('correct:'.$submission.':'.$subm{'correct'});