version 1.102, 2004/09/09 08:59:56
|
version 1.108, 2004/10/21 06:33:37
|
Line 268 sub handle_previous {
|
Line 268 sub handle_previous {
|
if ($$previous{'used'} && ($$previous{'award'} eq $ad) ) { |
if ($$previous{'used'} && ($$previous{'award'} eq $ad) ) { |
if ($$previous{'last'}) { |
if ($$previous{'last'}) { |
push(@Apache::inputtags::previous,'PREVIOUSLY_LAST'); |
push(@Apache::inputtags::previous,'PREVIOUSLY_LAST'); |
} else { |
push(@Apache::inputtags::previous_version,$$previous{'version'}); |
|
} elsif ($Apache::lonhomework::type ne 'survey') { |
push(@Apache::inputtags::previous,'PREVIOUSLY_USED'); |
push(@Apache::inputtags::previous,'PREVIOUSLY_USED'); |
|
push(@Apache::inputtags::previous_version,$$previous{'version'}); |
} |
} |
push(@Apache::inputtags::previous_version,$$previous{'version'}); |
|
} |
} |
} |
} |
|
|
Line 507 sub showallfoils {
|
Line 508 sub showallfoils {
|
return 1; |
return 1; |
} |
} |
} |
} |
|
if ($Apache::lonhomework::type eq 'survey') { return 1; } |
return 0; |
return 0; |
} |
} |
|
|
Line 532 sub getresponse {
|
Line 534 sub getresponse {
|
$Apache::lonhomework::results{"resource.$part.$id.scantron"}.= |
$Apache::lonhomework::results{"resource.$part.$id.scantron"}.= |
$response; |
$response; |
if ($resulttype ne 'letter') { |
if ($resulttype ne 'letter') { |
$response = $let_to_num{$response}; |
if ($resulttype eq 'A is 1') { |
|
$response = $let_to_num{$response}+1; |
|
} else { |
|
$response = $let_to_num{$response}; |
|
} |
} |
} |
} else { |
} else { |
$response = $ENV{$formparm}; |
$response = $ENV{$formparm}; |
Line 642 sub analyze_store_foilgroup {
|
Line 648 sub analyze_store_foilgroup {
|
sub check_if_computed { |
sub check_if_computed { |
my ($token,$parstack,$safeeval,$name)=@_; |
my ($token,$parstack,$safeeval,$name)=@_; |
my $value = &Apache::lonxml::get_param($name,$parstack,$safeeval); |
my $value = &Apache::lonxml::get_param($name,$parstack,$safeeval); |
if ($value ne $token->[2]{$name}) { |
if (ref($token->[2]) eq 'HASH' && $value ne $token->[2]{$name}) { |
my $part_id="$Apache::inputtags::part.$Apache::inputtags::response[-1]"; |
my $part_id="$Apache::inputtags::part.$Apache::inputtags::response[-1]"; |
$Apache::lonhomework::analyze{"$part_id.answercomputed"} = 1; |
$Apache::lonhomework::analyze{"$part_id.answercomputed"} = 1; |
} |
} |