--- loncom/homework/radiobuttonresponse.pm 2001/06/01 16:00:42 1.19 +++ loncom/homework/radiobuttonresponse.pm 2001/08/13 21:44:24 1.25 @@ -10,11 +10,15 @@ sub BEGIN { } sub start_radiobuttonresponse { - my ($target,$token,$parstack,$parser,$safeeval,$style)=@_; + my ($target,$token,$tagstack,$parstack,$parser,$safeeval,$style)=@_; #when in a radiobutton response use these + my $result; &Apache::lonxml::register('Apache::radiobuttonresponse',('foilgroup','foil','conceptgroup')); my $id = &Apache::response::start_response($parstack,$safeeval); - return ''; + if ($target eq 'meta') { + $result=&Apache::response::meta_package_write('radiobuttonresponse'); + } + return $result; } sub end_radiobuttonresponse { @@ -45,10 +49,10 @@ sub storesurvey { } sub end_foilgroup { - my ($target,$token,$parstack,$parser,$safeeval,$style)=@_; + my ($target,$token,$tagstack,$parstack,$parser,$safeeval,$style)=@_; my $result; - if ($target ne 'meta') { + if ($target eq 'grade' || $target eq 'web') { my $style = &Apache::lonxml::get_param('style',$parstack,$safeeval,'-2'); if ( $style eq 'survey' ) { if ($target eq 'web') { @@ -187,7 +191,7 @@ sub start_conceptgroup { } sub end_conceptgroup { - my ($target,$token,$parstack,$parser,$safeeval,$style)=@_; + my ($target,$token,$tagstack,$parstack,$parser,$safeeval,$style)=@_; $Apache::radiobuttonresponse::conceptgroup=0; if ($target eq 'web' || $target eq 'grade') { my @names = @{ $Apache::response::conceptgroup{'names'} }; @@ -204,12 +208,14 @@ sub end_conceptgroup { } sub start_foil { - &Apache::lonxml::startredirection; + my ($target,$token,$tagstack,$parstack,$parser,$safeeval,$style)=@_; + my $result=''; + if ($target eq 'web') { &Apache::lonxml::startredirection; } return ''; } sub end_foil { - my ($target,$token,$parstack,$parser,$safeeval,$style)=@_; + my ($target,$token,$tagstack,$parstack,$parser,$safeeval,$style)=@_; my $text=''; if ($target eq 'web') { $text=&Apache::lonxml::endredirection; } if ($target eq 'web' || $target eq 'grade') {