--- loncom/homework/caparesponse/caparesponse.pm 2005/02/21 20:29:00 1.163 +++ loncom/homework/caparesponse/caparesponse.pm 2005/02/23 23:41:23 1.165 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # caparesponse definition # -# $Id: caparesponse.pm,v 1.163 2005/02/21 20:29:00 albertel Exp $ +# $Id: caparesponse.pm,v 1.165 2005/02/23 23:41:23 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -361,6 +361,9 @@ sub end_numericalresponse { push (@{ $Apache::lonhomework::analyze{"$part_id.ans_high"} }, $high); push (@{ $Apache::lonhomework::analyze{"$part_id.ans_low"} }, $low); } + if ($fmt) { + push (@{ $Apache::lonhomework::analyze{"$part_id.format"} }, $fmt); + } } } if (defined($unit) and ($unit ne '') and @@ -613,16 +616,6 @@ sub end_stringresponse { if ($Apache::lonhomework::type eq 'exam' || &Apache::response::submitted('scantron')) { $increment=&Apache::response::scored_response($part,$id); - } elsif (0 && $Apache::lonhomework::type eq 'survey') { - my $response = &Apache::response::getresponse(); - if ( $response =~ /[^\s]/) { - my %previous=&Apache::response::check_for_previous($response, - $part,$id); - $Apache::lonhomework::results{"resource.$part.$id.submission"}= - $response; - my $ad=$Apache::lonhomework::results{"resource.$part.$id.awarddetail"}='SUBMITTED'; - &Apache::response::handle_previous(\%previous,$ad); - } } else { my $response = &Apache::response::getresponse(); if ( $response =~ /[^\s]/) {