'
- .&Apache::lonhtmlcommon::start_pick_box()
-
- .&Apache::lonhtmlcommon::row_headline()
- .'
'.$lt{'ow'}.' '.$lt{'cc'}.'
'
- .&Apache::lonhtmlcommon::row_closure()
-
- .&Apache::lonhtmlcommon::row_title($lt{'user'})
- .'
'
- .&Apache::loncommon::studentbrowser_javascript()
- .&Apache::loncommon::selectstudent_link('ccrs','ccuname','ccdomain')
- .&Apache::lonhtmlcommon::row_closure()
-
- .&Apache::lonhtmlcommon::row_title($lt{'dmn'},"","LC_odd_row_value")
- .$domform
- .&Apache::lonhtmlcommon::row_closure()
-
- .&Apache::lonhtmlcommon::row_headline()
- .'
'.$lt{'cinf'}.'
'
- .&Apache::lonhtmlcommon::row_closure()
-
- .&Apache::lonhtmlcommon::row_title($lt{'ctit'})
- .'
'
- .&Apache::lonhtmlcommon::row_closure()
-
- .&Apache::lonhtmlcommon::row_title($lt{'chsr'})
- .$course_home
- .&Apache::lonhtmlcommon::row_closure()
-
- .&Apache::lonhtmlcommon::row_title($lt{'cidn'}.' ('.$lt{'opt'}.')')
- .'
'
- .&Apache::lonhtmlcommon::row_closure()
+ $r->print('
-ENDDOCUMENT
-
+
'
+ );
} elsif ($crstype eq 'Community') {
- $r->print(<
-$lt{'co'} $lt{'gc'}
-
-
-
-
-
-$lt{'ginf'}
-
-
-
-
-
-
-
-$lt{'grco'}
-
-
-
-
$lt{'mssg'}
-
-
-
-
-
-$lt{'cmmn'}
-
-
-
-
-
-$lt{'acco'}
-
-
-
-
-
-$lt{'rshm'}
-
-
-
-$lt{'grts'}
-
-$lt{'grtq'}
-Mb
-
-
+ $r->print('
-
-
-
-ENDDOCUMENT
+
+'
+ );
}
- $r->print($end_page);
+ $r->print(''.
+ $end_page);
}
# ====================================================== Phase two: make course
@@ -787,10 +671,14 @@ sub create_course {
# Make the requested user a course coordinator or group coordinator
#
if (($ccdomain) && ($ccuname)) {
+ my $ccrole = 'cc';
+ if ($crstype eq 'Community') {
+ $ccrole = 'co';
+ }
$r->print(&mt('Assigning role of '.$crstype.' Coordinator to [_1]:',
,''.$ccuname.':'.$ccdomain.'')
.&Apache::lonnet::assignrole($ccdomain,$ccuname,$courseid,
- 'cc','','','','','createcourse').'');
+ $ccrole,'','','','','createcourse').'
');
}
if ($env{'form.setkeys'}) {
$r->print(
@@ -831,14 +719,14 @@ sub print_intro_page {
help => 'Batch_Creation',
},
{ internal_name => 'requestdisplay',
- name => &mt('Approve or reject course requests'),
+ name => &mt('Approve or reject requests'),
short_description =>
- &mt('Display course creation requests submitted by authorized users, held pending approval by a Domain Coordinator.'),
+ &mt('Display course and community creation requests submitted by authorized users, held pending approval by a Domain Coordinator.'),
},
{ internal_name => 'creationlog',
- name => &mt('View course creation log'),
+ name => &mt('View creation log'),
short_description =>
- &mt('Display information about when, how and by whom courses were created in this domain.'),
+ &mt('Display information about when, how and by whom courses and communities were created in this domain.'),
},
);
my $options;
@@ -971,15 +859,14 @@ sub print_creation_logs {
$curr{$key} = $defaults{$key};
}
}
- my (%whodunit,$version);
- ($version) = ($r->dir_config('lonVersion') =~ /^([\d\.]+)\-/);
- $r->print(&creation_display_filter($formname,\%curr,$version));
+ my %whodunit;
+ $r->print(&creation_display_filter($formname,\%curr));
my $showntablehdr = 0;
my $tablehdr = &Apache::loncommon::start_data_table().
&Apache::loncommon::start_data_table_header_row().
'
| '.&mt('Creation Date').' | '.
''.&mt('Creator').' | '.&mt('Description').' | '.
- ''.&mt('Course Owner(s)').' | ';
+ ''.&mt('Owner(s)').' | ';
if (($curr{'type'} eq 'official') || ($curr{'type'} eq 'any')) {
$tablehdr .= ''.&mt('Institutional Code').' | ';
}
@@ -1157,7 +1044,7 @@ ENDSCRIPT
}
sub creation_display_filter {
- my ($formname,$curr,$version) = @_;
+ my ($formname,$curr) = @_;
my $nolink = 1;
my ($contexts,$contextnames) = &context_names();
my $output = ''.
@@ -1228,15 +1115,7 @@ sub creation_display_filter {
# Update Display button
$output .= ' '.
''.
- ' ';
-
- # Server version info
- $output .= ''.
- &mt('Only courses created from servers running LON-CAPA [_1] or later are displayed.','2.9.0');
- if ($version) {
- $output .= ' '.&mt('This LON-CAPA server is version [_1]',$version);
- }
- $output .= ' ';
+ ' ';
return $output;
}
@@ -1256,7 +1135,7 @@ sub context_names {
&Apache::lonlocal::texthash (
auto => 'Automated creation from batch file',
web => 'Batch creation from uploaded file',
- dc_create => 'Single course created by Domain Coordinator',
+ dc_create => 'Course or community created by Dom. Coord.',
requestcourses => 'Processing of submitted course request',
);
return (\@contexts,\%contextnames);
@@ -1396,8 +1275,8 @@ sub handler {
&syllabuslink_javascript()."\n".
'// ]]>'."\n".
'';
- my $start_page=&Apache::loncommon::start_page('Course Creation Logs',$js);
- my $crumbs = &Apache::lonhtmlcommon::breadcrumbs('Created Courses','Creation_Log',undef,'Creation_Log');
+ my $start_page=&Apache::loncommon::start_page('Course/Community Creation Logs',$js);
+ my $crumbs = &Apache::lonhtmlcommon::breadcrumbs('Created Courses/Communities','Creation_Log',undef,'Creation_Log');
$r->print($start_page.$crumbs."\n".'');
&print_creation_logs($r);
$r->print(' '.&Apache::loncommon::end_page());
|