--- loncom/homework/response.pm 2000/11/28 19:15:48 1.9
+++ loncom/homework/response.pm 2000/11/28 20:11:25 1.10
@@ -11,26 +11,27 @@ sub BEGIN {
}
sub meta_parameter_write {
- my ($partid,$name,$type,$default,$display)=@_;
- return ''
+ '" display="'.$display.
+ ' [Part: '.$Apache::inputtags::part.']">'
."\n";
}
sub meta_stores_write {
- my ($partid,$name,$type,$display)=@_;
- return ''
+ '" display="'.$display.
+ ' [Part: '.$Apache::inputtags::part.']">'
."\n";
}
sub mandatory_part_meta {
- my $partid=shift;
#
# Autogenerate metadata for mandatory
# input (from RAT or lonparmset) and
@@ -38,22 +39,22 @@ sub mandatory_part_meta {
# of each part
#
return
- &meta_parameter_write($partid,'opendate','date_start','',
+ &meta_parameter_write('opendate','date_start','',
'Opening Date').
- &meta_parameter_write($partid,'duedate','date_end','',
+ &meta_parameter_write('duedate','date_end','',
'Due Date').
- &meta_parameter_write($partid,'answerdate','date_start','',
+ &meta_parameter_write('answerdate','date_start','',
'Show Answer Date').
- &meta_parameter_write($partid,'weight','int_zeropos','',
+ &meta_parameter_write('weight','int_zeropos','',
'Available Points').
- &meta_parameter_write($partid,'maxtries','int_pos','',
+ &meta_parameter_write('maxtries','int_pos','',
'Maximum Number of Tries').
- &meta_stores_write($partid,'solved','string',
+ &meta_stores_write('solved','string',
'Problem Status').
- &meta_stores_write($partid,'tries','int_zeropos',
+ &meta_stores_write('tries','int_zeropos',
'Number of Unsuccessful Tries').
- &meta_stores_write($partid,'awarded','float',
+ &meta_stores_write('awarded','float',
'Partial Credit Factor');
#
# Note: responseid-specific data 'submission' and 'awarddetail'
@@ -87,9 +88,7 @@ sub start_responseparam {
}
return '';
} else {
- return &meta_parameter_write(
- $Apache::inputtags::part,
- $token->[2]->{'name'},
+ return &meta_parameter_write($token->[2]->{'name'},
$token->[2]->{'type'},
$token->[2]->{'default'},
$token->[2]->{'description'});