version 1.28.2.4, 2010/12/22 16:46:43
|
version 1.28.2.5, 2010/12/22 16:57:41
|
Line 320 sub handler {
|
Line 320 sub handler {
|
seme => 'Send message to student when clicking Done on Tasks', |
seme => 'Send message to student when clicking Done on Tasks', |
); |
); |
} |
} |
|
$lt{'lcrv'} = 'Required LON-CAPA version'; |
&Apache::lonhtmlcommon::add_breadcrumb({href=>'/adm/courseprefs', |
&Apache::lonhtmlcommon::add_breadcrumb({href=>'/adm/courseprefs', |
text=>$lt{'conf'}}); |
text=>$lt{'conf'}}); |
my $breadcrumbs = |
my $breadcrumbs = |
Line 346 sub handler {
|
Line 347 sub handler {
|
help => 'Course_Environment', |
help => 'Course_Environment', |
header => [{col1 => 'Setting', |
header => [{col1 => 'Setting', |
col2 => 'Value'}], |
col2 => 'Value'}], |
ordered => ['owner','co-owners','description','courseid', |
ordered => ['owner','co-owners','loncaparev','description', |
'categories','hidefromcat','externalsyllabus', |
'courseid','categories','hidefromcat', |
'url','rolenames','cloners'], |
'externalsyllabus','cloners','url','rolenames'], |
itemtext => { |
itemtext => { |
'owner' => $lt{'ownr'}, |
'owner' => $lt{'ownr'}, |
'co-owners' => $lt{'cown'}, |
'co-owners' => $lt{'cown'}, |
Line 360 sub handler {
|
Line 361 sub handler {
|
'externalsyllabus' => 'URL of Syllabus', |
'externalsyllabus' => 'URL of Syllabus', |
'url' => 'Top Level Map', |
'url' => 'Top Level Map', |
'rolenames' => $lt{'rept'}, |
'rolenames' => $lt{'rept'}, |
|
'loncaparev' => $lt{'lcrv'}, |
}, |
}, |
}, |
}, |
'localization' => |
'localization' => |
Line 712 sub process_changes {
|
Line 714 sub process_changes {
|
} |
} |
} else { |
} else { |
foreach my $entry (@ordered) { |
foreach my $entry (@ordered) { |
|
next if (($entry eq 'loncaparev') || ($entry eq 'owner')); |
if ($entry eq 'cloners') { |
if ($entry eq 'cloners') { |
if ($env{'form.cloners_all'}) { |
if ($env{'form.cloners_all'}) { |
$newvalues{$entry} = '*'; |
$newvalues{$entry} = '*'; |
Line 1739 sub print_courseinfo {
|
Line 1742 sub print_courseinfo {
|
input => 'textbox', |
input => 'textbox', |
size => '25', |
size => '25', |
}, |
}, |
|
'loncaparev' => { |
|
text => '<b>'.&mt($itemtext->{'loncaparev'}).'</b>', |
|
}, |
); |
); |
my $datatable; |
my $datatable; |
my $count = 0; |
my $count = 0; |
Line 1872 sub print_courseinfo {
|
Line 1878 sub print_courseinfo {
|
} else { |
} else { |
$owner = &mt('None specified'); |
$owner = &mt('None specified'); |
} |
} |
my $domdesc = &Apache::lonnet::domain($cdom,'description'); |
|
$datatable .= $owner; |
$datatable .= $owner; |
} elsif ($item eq 'co-owners') { |
} elsif ($item eq 'co-owners') { |
my $cnum = $env{'course.'.$env{'request.course.id'}.'.num'}; |
my $cnum = $env{'course.'.$env{'request.course.id'}.'.num'}; |
Line 1894 sub print_courseinfo {
|
Line 1899 sub print_courseinfo {
|
$datatable .= &manage_coownership($cnum,$cdom,@currcoown); |
$datatable .= &manage_coownership($cnum,$cdom,@currcoown); |
} |
} |
} |
} |
|
} elsif ($item eq 'loncaparev') { |
|
my $loncaparev = $env{'course.'.$env{'request.course.id'}.'.internal.releaserequired'}; |
|
my $showreqd; |
|
if ($loncaparev) { |
|
$showreqd = &mt('[_1] or newer',$loncaparev); |
|
} else { |
|
$showreqd = &mt('No specific version required'); |
|
} |
|
$datatable .= $showreqd; |
} else { |
} else { |
$datatable .= &Apache::lonhtmlcommon::textbox($item,$settings->{$item},$items{$item}{size}); |
$datatable .= &Apache::lonhtmlcommon::textbox($item,$settings->{$item},$items{$item}{size}); |
} |
} |