--- loncom/homework/response.pm 2002/01/07 18:03:03 1.55 +++ loncom/homework/response.pm 2002/01/30 17:33:15 1.58 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # various response type definitons response definition # -# $Id: response.pm,v 1.55 2002/01/07 18:03:03 albertel Exp $ +# $Id: response.pm,v 1.58 2002/01/30 17:33:15 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -32,8 +32,8 @@ package Apache::response; use strict; -sub BEGIN { - &Apache::lonxml::register('Apache::response',('responseparam','parameter','caparesponse','numericalresponse','formularesponse','stringresponse','radiobuttonresponse','optionresponse','imageresponse','essayresponse','dataresponse')); +BEGIN { + &Apache::lonxml::register('Apache::response',('responseparam','parameter','caparesponse','numericalresponse','formularesponse','stringresponse','radiobuttonresponse','optionresponse','imageresponse','essayresponse','dataresponse','externalresponse')); } sub start_response { @@ -262,6 +262,13 @@ sub start_essayresponse { return &Apache::essayresponse::start_essayresponse($target,$token,$tagstack,$parstack,$parser,$safeeval,$style); } +sub start_externalresponse { + require Apache::externalresponse; + import Apache::externalresponse; + my ($target,$token,$tagstack,$parstack,$parser,$safeeval,$style)=@_; + return &Apache::externalresponse::start_externalresponse($target,$token,$tagstack,$parstack,$parser,$safeeval,$style); +} + sub view_or_modify { my ($symb,$courseid,$domain,$name) = &Apache::lonxml::whichuser(); my $myself=0; @@ -333,8 +340,7 @@ sub start_responseparam { $token->[2]->{'default'}, $token->[2]->{'description'}); } elsif ($target eq 'edit') { - $result.=&Apache::edit::tag_start($target,$token, - &Apache::lonxml::description($token)); + $result.=&Apache::edit::tag_start($target,$token); $result.=&Apache::edit::text_arg('Name:','name',$token). &Apache::edit::text_arg('Type:','type',$token). &Apache::edit::text_arg('Description:','description',$token).