--- loncom/homework/bridgetask.pm 2005/10/01 03:55:06 1.60 +++ loncom/homework/bridgetask.pm 2005/10/03 21:30:58 1.65 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # definition of tags that give a structure to a document # -# $Id: bridgetask.pm,v 1.60 2005/10/01 03:55:06 albertel Exp $ +# $Id: bridgetask.pm,v 1.65 2005/10/03 21:30:58 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -294,6 +294,7 @@ sub show_task { ( $status eq 'INVALID_ACCESS') )) { return 0; } + if ($env{'form.donescreen'}) { return 0; } return 1; } @@ -392,6 +393,18 @@ sub start_Task { ''.&proctor_validation_screen($slot); } elsif ($status eq 'WAITING_FOR_GRADE') { $msg.='
Files submitted: $files
+You are now done with the Bridge Task
+Showing only sections '.join(', ',@chosen_sections). + '.
'."\n"; + } my $regexp="^$symb\0"; my %queue=&Apache::lonnet::dump($queue,$cdom,$cnum,$regexp); @@ -957,6 +994,11 @@ sub show_queue { ($action,$description)=('unlock',&mt('Unlock')); } } + my $seclist; + foreach my $sec (@chosen_sections) { + $seclist.=''; + } if (time > $slot_data{'endtime'}) { $result.=(< FORM @@ -1171,13 +1214,19 @@ sub get_from_queue { sub select_user { my ($symb,$cid)=&Apache::lonxml::whichuser(); - my $result.=''.$fullname->{$student}. ' | ';
} else {
+ my $seclist;
+ foreach my $sec (@chosen_sections) {
+ $seclist.='';
+ }
$result.=<
@@ -1210,7 +1264,8 @@ sub select_user {
-
+
+ $seclist
| $fullname->{$student} |
@@ -1348,6 +1403,7 @@ sub get_instance {
$dim_info.=' | Question : you did not pass this '.$mandatory.' question'; } my $man_count=0; + my $man_passed=0; my $opt_count=0; my $opt_passed=0; foreach my $id (@{$dimension{$instance.'.criterias'}}) { @@ -1359,12 +1415,16 @@ sub get_instance { } } else { $man_count++; + if ($Apache::lonhomework::history{"resource.$version.$dim.$instance.$id.status"} eq 'pass') { + $man_passed++; + } } } + if ($man_passed eq $man_count) { $man_passed='all'; } my $opt_req=&Apache::lonxml::get_param('OptionalRequired', $parstack,$safeeval); if ($opt_req !~ /\S/) { $opt_req='0'; } - $dim_info.="\n".&mt('You passed all of the mandatory components and [_1] of the [_2] optional components, of which you were required to pass [_3].',$opt_passed,$opt_count,$opt_req)." \n"; + $dim_info.="\n".&mt('You passed [_1] of the [_2] mandatory components and [_3] of the [_4] optional components, of which you were required to pass [_5].',$man_passed,$man_count,$opt_passed,$opt_count,$opt_req)." \n"; my $internal_location=&internal_location($dim); $result=~s/\Q$internal_location\E/$dim_info/; |