--- loncom/auth/lonroles.pm 2010/10/06 18:46:53 1.240.2.18
+++ loncom/auth/lonroles.pm 2010/12/08 06:48:56 1.240.2.23
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# User Roles Screen
#
-# $Id: lonroles.pm,v 1.240.2.18 2010/10/06 18:46:53 raeburn Exp $
+# $Id: lonroles.pm,v 1.240.2.23 2010/12/08 06:48:56 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -500,7 +500,7 @@ ENDENTERKEY
$courseid = substr($courseid, 1);
}
$courseid =~ s/\//_/;
- if (($cdom ne 'gcitest') && (($role eq 'cc') || ($role eq 'co'))
+ if (($cdom !~ /^\w+citest$/) && (($role eq 'cc') || ($role eq 'co'))
&& ($env{'course.' . $courseid .'.course.helper.not.run'})) {
$furl = "/adm/helper/course.initialization.helper";
# Send the user to the course they selected
@@ -524,7 +524,7 @@ ENDENTERKEY
.$env{'request.course.sec'})
) {
my $startpage = &courseloadpage($courseid);
- unless (($startpage eq 'firstres') || ($cdom eq 'gcitest')) {
+ unless (($startpage eq 'firstres') || ($cdom =~ /^\w+citest$/)) {
$msg = &mt('Entering [_1] ...',
$env{'course.'.$courseid.'.description'});
&redirect_user($r,&mt('New in course'),
@@ -539,7 +539,7 @@ ENDENTERKEY
# Guess not ...
$furl=&Apache::lonpageflip::first_accessible_resource();
}
- if (($cdom eq 'gcitest') && ($custommenu)) {
+ if (($cdom =~ /^\w+citest$/) && ($custommenu)) {
$furl = '/adm/navmaps';
}
$msg = &mt('Entering [_1] ...',
@@ -593,16 +593,11 @@ ENDENTERKEY
my ($crumbtext,$pagetitle,$recent,$show_course);
$show_course=&Apache::loncommon::show_course();
- my $noscript=''.&mt('Use of LON-CAPA requires Javascript to be enabled in your web browser.').'
'.&mt('As this is not the case, most functionality in the system will be unavailable.').'
';
+ my $noscript='
'.&mt('Use of LON-CAPA requires Javascript to be enabled in your web browser.').'
'.&mt('As this is not the case, most functionality in the system will be unavailable.').'
';
if ($custommenu) {
- my $brcrum = {'bread_crumbs' => 1};
- if ($env{'form.destinationurl'} eq '/adm/gci_info') {
- undef($brcrum);
- }
- my $start_page = &Apache::loncommon::start_page('Main Menu',undef,$brcrum);
+ my $start_page = &Apache::loncommon::start_page('Main Menu');
$r->print(<<"ENDCUSTOM");
$start_page
-
@@ -622,18 +617,17 @@ ENDCUSTOM
text => $crumbtext,},
];
my $args;
- if (($env{'user.domain'} eq 'gcitest') && (!$numdc)) {
- $args = {bread_crumbs => $brcrum,
- bread_crumbs_nomenu => 1};
- } else {
+ if ($numdc) {
$args = {bread_crumbs => $brcrum};
+ } else {
+ $args = {bread_crumbs => $brcrum,
+ bread_crumbs_menulink => '_nomenu'};
}
my $start_page=&Apache::loncommon::start_page($pagetitle,undef,$args);
my $swinfo=&Apache::lonmenu::rawconfig();
$standby=~s/\n/\\n/g;
$r->print(<
' .&mt('[_1]Visit the [_2]Course/Community Catalog[_3]' @@ -818,23 +799,24 @@ ENDSCRIPT $r->print('
For more information about writing and reviewing Concept Inventory questions please refer to the GCI Workbook.
', + ); + my $output = <<"END"; +Use the tabs to navigate the WebCenter and...
For more information about writing and reviewing Concept Inventory questions -please refer to the GCI Workbook. - +$info{$inventory} +
'.&mt('The [_1]Course/Community Catalog[_2] provides information about all [_3] classes for which LON-CAPA courses have been created, as well as any communities in the domain.','','',$domdesc).'
');
- $r->print(&mt('You can search for courses and communities which permit self-enrollment, if you would like to enroll in one.').'