--- loncom/homework/response.pm 2004/03/16 22:00:51 1.95 +++ loncom/homework/response.pm 2004/03/25 16:55:16 1.96 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # various response type definitons response definition # -# $Id: response.pm,v 1.95 2004/03/16 22:00:51 albertel Exp $ +# $Id: response.pm,v 1.96 2004/03/25 16:55:16 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -597,6 +597,15 @@ sub analyze_store_foilgroup { push (@{ $Apache::lonhomework::analyze{"$part_id.shown"} }, @{ $shown }); } +sub check_if_computed { + my ($token,$parstack,$safeeval,$name)=@_; + my $value = &Apache::lonxml::get_param($name,$parstack,$safeeval); + if ($value ne $token->[2]{$name}) { + my $part_id="$Apache::inputtags::part.$Apache::inputtags::response[-1]"; + $Apache::lonhomework::analyze{"$part_id.answercomputed"} = 1; + } +} + sub pick_foil_for_concept { my ($target,$attrs,$hinthash,$parstack,$safeeval)=@_; if (not defined(@{ $Apache::response::conceptgroup{'names'} })) { return; }