Answer for Part:'.
+ $Apache::inputtags::part. ' | '."\n";
+ }
+ }
+ return $result;
}
-sub start_responseparam {
- my ($target,$token,$tagstack,$parstack,$parser,$safeeval)=@_;
- my $result='';
- if ($target eq 'meta') {
- $result = &meta_parameter_write($token->[2]->{'name'},
- $token->[2]->{'type'},
- $token->[2]->{'default'},
- $token->[2]->{'description'});
- } elsif ($target eq 'edit') {
- $result.=&Apache::edit::tag_start($target,$token,
- &Apache::lonxml::description($token));
- $result.=&Apache::edit::text_arg('Name:','name',$token).
- &Apache::edit::text_arg('Type:','type',$token).
- &Apache::edit::text_arg('Description:','description',$token).
- &Apache::edit::text_arg('Default:','default',$token).
- "
";
- $result.=&Apache::edit::end_table;
- } elsif ($target eq 'modified') {
- my $constructtag=&Apache::edit::get_new_args($token,$parstack,$safeeval,
- 'name','type','description',
- 'default');
- if ($constructtag) {
- $result = &Apache::edit::rebuild_tag($token);
- $result.=&Apache::edit::handle_insert();
+sub answer_part {
+ my ($type,$answer) = @_;
+ my $result;
+ if ($ENV{'form.answer_output_mode'} eq 'tex') {
+ $result = ' '.$answer.'\\\\ \hline ';
+ } else {
+ if ($type eq 'optionresponse' || $type eq 'radiobuttonresponse') {
+ $result = '