--- loncom/homework/response.pm 2001/12/07 23:59:08 1.54 +++ loncom/homework/response.pm 2002/01/17 12:23:31 1.57 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # various response type definitons response definition # -# $Id: response.pm,v 1.54 2001/12/07 23:59:08 albertel Exp $ +# $Id: response.pm,v 1.57 2002/01/17 12:23:31 harris41 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','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')); } sub start_response { @@ -333,8 +333,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). @@ -365,6 +364,16 @@ sub end_responseparam { return ''; } +sub start_parameter { + my $result = &start_responseparam(@_); + return $result; +} + +sub end_parameter { + my $result = &end_responseparam(@_); + return $result; +} + sub setup_params { my ($tag) = @_;