Answer for Part:'.
+ $Apache::inputtags::part. ' | '."\n";
+ }
}
- return '';
- } elsif ($target eq 'meta') {
- return &meta_parameter_write($token->[2]->{'name'},
- $token->[2]->{'type'},
- $token->[2]->{'default'},
- $token->[2]->{'description'});
- } elsif ($target eq 'edit') {
- my $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;
return $result;
- } elsif ($target eq 'modified') {
+}
+
+sub answer_part {
+ my ($type,$answer) = @_;
my $result;
- 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();
+ if ($ENV{'form.answer_output_mode'} eq 'tex') {
+ $result = ' '.$answer.'\\\\ \hline ';
+ } else {
+ if ($type eq 'optionresponse' || $type eq 'radiobuttonresponse') {
+ $result = '