version 1.206.2.1, 2008/12/11 04:11:09
|
version 1.207, 2008/11/24 16:53:26
|
Line 217 sub meta_stores_write {
|
Line 217 sub meta_stores_write {
|
} |
} |
|
|
sub mandatory_part_meta { |
sub mandatory_part_meta { |
# |
=pod |
# Autogenerate metadata for mandatory |
|
# input (from RAT or lonparmset) and |
=item meta_part_order |
# output (to lonspreadsheet) |
|
# of each part |
Autogenerate metadata for mandatory |
|
input (from RAT or lonparmset) and |
|
output (to lonspreadsheet) |
|
of each part |
# |
# |
return |
return |
# &meta_parameter_write('opendate','date_start','', |
&meta_parameter_write('opendate','date_start','', |
# 'Opening Date'). |
'Opening Date'). |
# &meta_parameter_write('duedate','date_end','', |
&meta_parameter_write('duedate','date_end','', |
# 'Due Date'). |
'Due Date'). |
# &meta_parameter_write('answerdate','date_start','', |
&meta_parameter_write('answerdate','date_start','', |
# 'Show Answer Date'). |
'Show Answer Date'). |
# &meta_parameter_write('weight','int_zeropos','', |
&meta_parameter_write('weight','int_zeropos','', |
# 'Available Points'). |
'Available Points'). |
# &meta_parameter_write('maxtries','int_pos','', |
&meta_parameter_write('maxtries','int_pos','', |
# 'Maximum Number of Tries'). |
'Maximum Number of Tries'). |
&meta_package_write('part'). |
&meta_package_write('part'). |
&meta_stores_write('solved','string', |
&meta_stores_write('solved','string', |
'Problem Status'). |
'Problem Status'). |
Line 241 sub mandatory_part_meta {
|
Line 244 sub mandatory_part_meta {
|
'Number of Attempts'). |
'Number of Attempts'). |
&meta_stores_write('awarded','float', |
&meta_stores_write('awarded','float', |
'Partial Credit Factor'); |
'Partial Credit Factor'); |
# |
|
# Note: responseid-specific data 'submission' and 'awarddetail' |
Note: responseid-specific data 'submission' and 'awarddetail' |
# not available to spreadsheet -> skip here |
not available to spreadsheet -> skip here |
# |
|
|
=cut |
|
|
} |
} |
|
|
sub meta_part_order { |
sub meta_part_order { |
Line 288 sub check_for_previous {
|
Line 293 sub check_for_previous {
|
$previous{'last'}='1'; |
$previous{'last'}='1'; |
} |
} |
if (! $previous{'award'} ) { $previous{'award'} = 'UNKNOWN'; } |
if (! $previous{'award'} ) { $previous{'award'} = 'UNKNOWN'; } |
if ($previous{'award'} eq 'INTERNAL_ERROR') { $previous{'used'}=0; } |
|
&Apache::lonxml::debug("got a match :$previous{'award'}:$previous{'used'}:"); |
&Apache::lonxml::debug("got a match :$previous{'award'}:$previous{'used'}:"); |
} |
} |
} |
} |