version 1.26, 2001/05/04 21:19:37
|
version 1.27, 2001/05/31 22:37:11
|
Line 12 sub BEGIN {
|
Line 12 sub BEGIN {
|
|
|
sub start_response { |
sub start_response { |
my ($parstack,$safeeval)=@_; |
my ($parstack,$safeeval)=@_; |
my $args =''; |
my $id= &Apache::lonxml::get_param('id',$parstack,$safeeval); |
if ( $#$parstack > -1 ) { $args=$$parstack[$#$parstack]; } |
|
my $id = &Apache::run::run("{$args;".'return $id}',$safeeval); |
|
if ($id eq '') { $id = $Apache::lonxml::curdepth; } |
if ($id eq '') { $id = $Apache::lonxml::curdepth; } |
push (@Apache::inputtags::response,$id); |
push (@Apache::inputtags::response,$id); |
push (@Apache::inputtags::responselist,$id); |
push (@Apache::inputtags::responselist,$id); |
Line 144 sub start_essayresponse {
|
Line 142 sub start_essayresponse {
|
sub start_responseparam { |
sub start_responseparam { |
my ($target,$token,$parstack,$parser,$safeeval)=@_; |
my ($target,$token,$parstack,$parser,$safeeval)=@_; |
if ($target eq 'grade' || $target eq 'web') { |
if ($target eq 'grade' || $target eq 'web') { |
my $args=''; |
my $default= &Apache::lonxml::get_param('default',$parstack,$safeeval); |
if ( $#$parstack > -1 ) { $args=$$parstack[$#$parstack]; } |
my $name= &Apache::lonxml::get_param('name',$parstack,$safeeval); |
my $default = &Apache::run::run("{$args;".'return $default}',$safeeval); |
|
my $name = &Apache::run::run("{$args;".'return $name}',$safeeval); |
|
&Apache::lonxml::debug("looking for resource.$Apache::inputtags::part.$name"); |
&Apache::lonxml::debug("looking for resource.$Apache::inputtags::part.$name"); |
my $value = &Apache::lonnet::EXT("resource.$Apache::inputtags::part.$name"); |
my $value = &Apache::lonnet::EXT("resource.$Apache::inputtags::part.$name"); |
&Apache::lonxml::debug("$name has value :$value: and default :$default:"); |
&Apache::lonxml::debug("$name has value :$value: and default :$default:"); |