--- loncom/interface/courseprefs.pm 2010/12/24 17:17:33 1.38
+++ loncom/interface/courseprefs.pm 2011/01/14 00:32:47 1.42
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Handler to set configuration settings for a course
#
-# $Id: courseprefs.pm,v 1.38 2010/12/24 17:17:33 raeburn Exp $
+# $Id: courseprefs.pm,v 1.42 2011/01/14 00:32:47 www Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -268,8 +268,8 @@ sub handler {
my %lt;
if ($crstype eq 'Community') {
%lt = (
- conf => 'Community Configuration',
- edit => 'Edit Community Configuration',
+ conf => 'Community Settings',
+ edit => 'Edit Community Settings',
gens => 'General community settings',
idnu => 'Community ID or number',
desc => 'Community Description',
@@ -287,7 +287,7 @@ sub handler {
defd => 'Default dates for member access',
stuv => 'Member-viewable membership list options',
stul => 'Member agreement needed to be listed',
- clas => 'Membership and Facilitator Listing',
+ clas => 'Membership and facilitator listing',
priv => 'Privileged users (Domain Coordinators) in facilitator listing',
defc => 'Default Community Spreadsheet',
defs => 'Default User Spreadsheet',
@@ -295,8 +295,8 @@ sub handler {
);
} else {
%lt = (
- conf => 'Course Configuration',
- edit => 'Edit Course Configuration',
+ conf => 'Course Settings',
+ edit => 'Edit Course Settings',
gens => 'General course settings',
idnu => 'Course ID or number',
desc => 'Course Description',
@@ -314,7 +314,7 @@ sub handler {
defd => 'Default dates for student access',
stuv => 'Student-viewable classlist options',
stul => 'Student agreement needed to be listed',
- clas => 'Classlists and Staff Listing',
+ clas => 'Classlists and staff listing',
priv => 'Privileged users (Domain Coordinators) in staff listing',
defc => 'Default Course Spreadsheet',
defs => 'Default Student Spreadsheet',
@@ -372,7 +372,7 @@ sub handler {
},
},
'localization' =>
- { text => 'Language and Time Localization',
+ { text => 'Language and time localization',
help => 'Course_Environment',
ordered => ['languages','timezone','datelocale'],
itemtext => {
@@ -1708,8 +1708,7 @@ sub print_courseinfo {
text => ''.&mt($itemtext->{'cloners'}).'
'.
&mt('Owner and Coordinators included automatically'),
input => 'textbox',
- size => '40',
- advanced => 1
+ size => '40'
},
'rolenames' => {
text => ''.&mt($itemtext->{'rolenames'}).'
'.
@@ -2069,6 +2068,11 @@ sub display_loncaparev_constraints {
my $cdom = $env{'course.'.$cid.'.domain'};
my $cnum = $env{'course.'.$cid.'.num'};
my $output;
+ my %lt = &Apache::lonlocal::texthash (
+ 'all' => 'all',
+ 'section/group' => 'section/group',
+ 'user' => 'user',
+ );
my (%checkparms,%checkresponsetypes,%checkcrstypes,%anonsurvey,%randomizetry);
&Apache::loncommon::build_release_hashes(\%checkparms,\%checkresponsetypes,
\%checkcrstypes,\%anonsurvey,\%randomizetry);
@@ -2078,7 +2082,7 @@ sub display_loncaparev_constraints {
}
my (%fromparam,%rowspan,%bymap,%byresource,@scopeorder,%toshow,%allmaps,
%byresponsetype,%bysubmission);
- @scopeorder = ('course','section/group','user');
+ @scopeorder = ('all','section/group','user');
my $resourcedata = &Apache::lonparmset::readdata($cnum,$cdom);
if (ref($resourcedata) eq 'HASH') {
foreach my $key (keys(%{$resourcedata})) {
@@ -2102,12 +2106,12 @@ sub display_loncaparev_constraints {
$which = $2;
$scope = 'section/group';
} else {
- $scope = 'course';
+ $scope = 'all';
}
my $what="$stdname=$valname";
if ($key =~ /^\Q$start$middle\E\w+\.\Q$item\E$/) {
$level = 'general';
- if ($scope eq 'course') {
+ if ($scope eq 'all') {
if (ref($fromparam{$rev}{$scope}) eq 'ARRAY') {
unless(grep(/^\Q$what\E$/,@{$fromparam{$rev}{$scope}})) {
push(@{$fromparam{$rev}{$scope}},$what);
@@ -2128,7 +2132,7 @@ sub display_loncaparev_constraints {
} elsif ($key =~ /^\Q$start$middle\E(.+)___\(all\).\w+\.\Q$item\E$/) {
$level = 'folder';
$map = $1;
- if ($scope eq 'course') {
+ if ($scope eq 'all') {
if (ref($bymap{$map}{$rev}{$scope}) eq 'ARRAY') {
unless(grep(/^\Q$what\E$/,@{$bymap{$map}{$rev}{$scope}})) {
push(@{$bymap{$map}{$rev}{$scope}},$what);
@@ -2148,7 +2152,7 @@ sub display_loncaparev_constraints {
} elsif ($key =~ /^\Q$start$middle\E(.+)\.\w+\.\Q$item\E$/) {
$level = 'resource';
$resource = $1;
- if ($scope eq 'course') {
+ if ($scope eq 'all') {
if (ref($byresource{$resource}{$rev}{$scope}) eq 'ARRAY') {
unless(grep(/^\Q$what\E$/,@{$byresource{$resource}{$rev}{$scope}})) {
push(@{$byresource{$resource}{$rev}{$scope}},$what);
@@ -2187,7 +2191,7 @@ sub display_loncaparev_constraints {
if ($newrow) {
$output .= &Apache::loncommon::continue_data_table_row();
}
- $output .= '
'.&mt('Setting - scope: [_1]',$scope).' | '); + $r->print('||
'.&mt('Setting - scope: [_1]',$lt->{$scope}).' | '); foreach my $which (sort(keys(%{$byresource->{$symb}{$rev}{$scope}}))) { $r->print(''.$which.' | '.
join(' ',@{$byresource->{$symb}{$rev}{$scope}{$which}}). @@ -2407,7 +2412,7 @@ sub show_contents_view { } $r->print(' |
'.&mt('Setting - scope: [_1]',$scope).' | '. + $r->print('||
'.&mt('Setting - scope: [_1]',$lt->{$scope}).' | '. ''.
join(' ',@{$byresource->{$symb}{$rev}{$scope}}).' |
'.&mt('Setting - scope: [_1]',$scope).' | '); + $r->print('||
'.&mt('Setting - scope: [_1]',$lt->{$scope}).' | '); foreach my $which (sort(keys(%{$bymap->{$url}{$rev}{$scope}}))) { $r->print(''.$which.' | '.
join(' ',@{$bymap->{$url}{$rev}{$scope}{$which}}). @@ -2473,7 +2478,7 @@ sub releases_by_map { } $r->print(' |
'.&mt('Setting - scope: [_1]',$scope). + $r->print(' | ||
'.&mt('Setting - scope: [_1]',$lt->{$scope}). ' | '.
join(' ',@{$bymap->{$url}{$rev}{$scope}}).' |