--- loncom/auth/lonroles.pm 2003/05/21 20:10:53 1.57 +++ loncom/auth/lonroles.pm 2003/06/04 22:13:28 1.59 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # User Roles Screen # -# $Id: lonroles.pm,v 1.57 2003/05/21 20:10:53 www Exp $ +# $Id: lonroles.pm,v 1.59 2003/06/04 22:13:28 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -156,6 +156,19 @@ ENDENTERKEY $msg= '

Could not initialize top-level map.

'; } + + # Check to see if the user is a CC entering a course + # for the first time + my (undef, undef, $role, $courseid) = split(/\./, $envkey); + if (substr($courseid, 0, 1) eq '/') { + $courseid = substr($courseid, 1); + } + $courseid =~ s/\//_/; + if ($role eq 'cc' && $ENV{'course.' . $courseid . + '.course.helper.not.run'}) { + $furl = "/adm/helper/course.initialization.helper"; + } + $r->content_type('text/html'); &Apache::loncommon::no_cache($r); $r->send_http_header; @@ -263,7 +276,7 @@ ENDHEADER $r->print("Author and Co-Author roles may not be available on ". "servers other than your home server."); } else { - $r->print("

Enter a Course

\n"); + $r->print("

Select a Course to Enter

\n"); } if (($ENV{'REDIRECT_QUERY_STRING'}) && ($fn)) { $fn.='?'.$ENV{'REDIRECT_QUERY_STRING'};