--- loncom/homework/bridgetask.pm 2005/03/16 19:09:44 1.1 +++ loncom/homework/bridgetask.pm 2005/03/17 21:56:04 1.3 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # definition of tags that give a structure to a document # -# $Id: bridgetask.pm,v 1.1 2005/03/16 19:09:44 albertel Exp $ +# $Id: bridgetask.pm,v 1.3 2005/03/17 21:56:04 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -64,6 +64,7 @@ sub start_Task { if (( $status eq 'CLOSED' ) || ( $status eq 'BANNED') || ( $status eq 'UNAVAILABLE') || + ( $status eq 'NOT_IN_A_SLOT') || ( $status eq 'INVALID_ACCESS')) { my $bodytext=&Apache::lonxml::get_all_text("/task",$parser); if ( $target eq "web" ) { @@ -71,6 +72,10 @@ sub start_Task { my $msg=$body_tag_start; if ($status eq 'UNAVAILABLE') { $msg.='

'.&mt('Unable to determine if this resource is open due to network problems. Please try again later.').'

'; + } elsif ($status eq 'NOT_IN_A_SLOT') { + $msg.='

'.&mt('You are not currently signed up to work at this time and/or place.').'

'; + } elsif ($status eq 'IN_A_SLOT') { + $msg.='

'.&mt('You need the Proctor to validate you.').'

'; } elsif ($status ne 'NOT_YET_VIEWED') { $msg.='

'.&mt('Not open to be viewed').'

'; } @@ -125,7 +130,7 @@ sub end_Task { #&finalize_storage(); } } elsif ($target eq 'meta') { - #$result=&Apache::response::mandatory_part_meta; + $result.=''."\n"; #$result.=&Apache::response::meta_part_order(); #$result.=&Apache::response::meta_response_order(); } @@ -167,7 +172,7 @@ sub end_Dimension { #to randomly pick one until all have been seen #then start repicking my $instance=$dimension{'instances'}->[0]; - my $result=$dimension{'intro'}. + $result=$dimension{'intro'}. $dimension{$instance.'.text'}. '
Criteria
'; foreach my $id (@{$dimension{$instance.'.criterias'}}) {