version 1.5, 2001/12/04 15:17:56
|
version 1.7, 2002/01/18 17:45:30
|
Line 29
|
Line 29
|
package Apache::essayresponse; |
package Apache::essayresponse; |
use strict; |
use strict; |
|
|
sub BEGIN { |
BEGIN { |
&Apache::lonxml::register('Apache::essayresponse',('essayresponse')); |
&Apache::lonxml::register('Apache::essayresponse',('essayresponse')); |
} |
} |
|
|
Line 50 sub end_essayresponse {
|
Line 50 sub end_essayresponse {
|
my $id = $Apache::inputtags::response['-1']; |
my $id = $Apache::inputtags::response['-1']; |
my $response = $ENV{'form.HWVAL'.$Apache::inputtags::response['-1']}; |
my $response = $ENV{'form.HWVAL'.$Apache::inputtags::response['-1']}; |
if ( $response =~ /[^\s]/) { |
if ( $response =~ /[^\s]/) { |
$Apache::lonhomework::results{"resource.$Apache::inputtags::part.$id.submission"}=$response; |
my $part=$Apache::inputtags::part; |
$Apache::lonhomework::results{"resource.$Apache::inputtags::part.$id.awarddetail"}="SUBMITTED"; |
$Apache::lonhomework::results{"resource.$part.$id.submission"}=$response; |
|
$Apache::lonhomework::results{"resource.$part.$id.awarddetail"}="SUBMITTED"; |
|
my %previous=&Apache::response::check_for_previous($response,$part,$id); |
|
&Apache::response::handle_previous(\%previous,'SUBMITTED'); |
} |
} |
} |
} |
} |
} |