--- loncom/homework/caparesponse/caparesponse.pm 2004/06/04 22:06:07 1.146 +++ loncom/homework/caparesponse/caparesponse.pm 2004/06/29 22:42:50 1.150 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # caparesponse definition # -# $Id: caparesponse.pm,v 1.146 2004/06/04 22:06:07 albertel Exp $ +# $Id: caparesponse.pm,v 1.150 2004/06/29 22:42:50 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -45,7 +45,8 @@ sub start_numericalresponse { $result.=&Apache::edit::text_arg('Answer:','answer',$token); if ($token->[1] eq 'numericalresponse') { $result.=&Apache::edit::text_arg('Incorrect Answers:','incorrect', - $token); + $token). + &Apache::loncommon::help_open_topic('numerical_wrong_answers'); $result.=&Apache::edit::text_arg('Unit:','unit',$token,5). &Apache::loncommon::help_open_topic('Physical_Units'); $result.=&Apache::edit::text_arg('Format:','format',$token,4). @@ -115,7 +116,7 @@ sub start_numericalresponse { } chop $answertxt; if ($target eq 'web') { - $answertxt.=" $unit.
"; + $answertxt.=" $unit "; } $Apache::inputtags::answertxt{$id}=$answertxt; } @@ -517,6 +518,10 @@ sub get_tolrange { sub get_sigrange { my ($sig)=@_; &Apache::lonxml::debug("Got a sig of :$sig:"); + my $courseid=$ENV{'request.course.id'}; + if (lc($ENV{"course.$courseid.disablesigfigs"}) eq 'yes') { + return (15,0); + } my $sig_lbound; my $sig_ubound; if ($sig eq '') { @@ -548,9 +553,7 @@ sub start_stringresponse { my $result; my $id = &Apache::response::start_response($parstack,$safeeval); if ($target eq 'meta') { - &Apache::response::start_response($parstack,$safeeval); $result=&Apache::response::meta_package_write('stringresponse'); - &Apache::response::end_response(); } elsif ($target eq 'edit') { $result.=&Apache::edit::tag_start($target,$token); $result.=&Apache::edit::text_arg('Answer:','answer',$token);