--- loncom/auth/lonroles.pm 2005/08/09 20:06:40 1.128 +++ loncom/auth/lonroles.pm 2005/11/01 21:59:24 1.131 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # User Roles Screen # -# $Id: lonroles.pm,v 1.128 2005/08/09 20:06:40 albertel Exp $ +# $Id: lonroles.pm,v 1.131 2005/11/01 21:59:24 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -244,7 +244,7 @@ ENDENTERKEY "request.course.id" => $cdom.'_'.$cnum); $furl='/adm/roles?tryagain=1'; $msg= - '

'. + '

'. &mt('Could not initialize course at this time.'). '

'.&mt('Please try again.').'

'.$ferr; } @@ -362,7 +362,7 @@ ENDHEADER } else { if ($env{'user.error.msg'}) { $r->print( - '

'. + '

'. &mt('You need to choose another user role or enter a specific course for this function').'

'); } } @@ -479,11 +479,7 @@ ENDHEADER foreach my $id (@ids) { if ($id eq $home) { $allowed=1; } } if (!$allowed) { $button=0; - $switchserver=&Apache::lonnet::escape('http://'. - $Apache::lonnet::hostname{$home}. - '/adm/login?domain='.$env{'user.domain'}. - '&username='.$env{'user.name'}. - '&firsturl=/priv/'.$trest.'/'); + $switchserver='otherserver='.$home.'&role='.$trolecode; } #next if ($home eq 'no_host'); $home = $Apache::lonnet::hostname{$home}; @@ -596,7 +592,7 @@ ENDHEADER ''.&mt('Start').''.&mt('End').''. &mt('Remarks and Calendar Announcements').''."\n"); my $doheaders=-1; - foreach my $type ('Construction Space','Course','Domain','System') { + foreach my $type ('Domain','Construction Space','Course','System') { my $haverole=0; foreach my $which (sort {uc($a) cmp uc($b)} (keys(%sortrole))) { if ($roleclass{$sortrole{$which}} =~ /^\Q$type\E/) { @@ -772,7 +768,7 @@ sub build_roletext { unless ($nochoose) { if (!$button) { if ($switchserver) { - $roletext.=''.&mt('Switch Server').''; } else { $roletext.=(' ');