'.&mt('Search for a course in the [_1] domain',$domdesc).'
'.
+ &mt('Actions available after searching for a course:').'
'.
+ '
'.&mt('Enter the course with the role of [_1]',$cctitle).'
'."\n".
+ '
'.&mt('View or modify course settings which only a [_1] may modify.'
+ ,$dctitle).'
'."\n".'
');
+ } else {
+ $r->print(
+ '
'.&mt('Search for a community in the [_1] domain',$domdesc).'
'.
+ &mt('Actions available after searching for a community:').'
'.
+ '
'.&mt('Enter the community with the role of [_1]',$cctitle).'
'."\n".
+ '
'.&mt('View or modify community settings which only a [_1] may modify.'
+ ,$dctitle).'
'."\n".'
');
+ }
$r->print(&Apache::lonpickcourse::build_filters($filterlist,$type,
- undef,undef,$filter,$action,'modifycourse'));
+ undef,undef,$filter,$action,\$numtitles,'modifycourse'));
}
sub print_course_selection_page {
@@ -144,18 +158,20 @@ sub print_course_selection_page {
'ownerdomfilter','coursefilter'];
my %filter;
my $type = $env{'form.type'};
- if ($type eq '') {
+ if (!defined($type)) {
$type = 'Course';
}
my $action = '/adm/modifycourse';
my $dctitle = &Apache::lonnet::plaintext('dc');
+ my $numtitles;
+ $r->print(&Apache::lonpickcourse::js_changer());
$r->print(&mt('Revise your search criteria for this domain').' ('.$domdesc.').
');
$r->print(&Apache::lonpickcourse::build_filters($filterlist,$type,
- undef,undef,\%filter,$action));
+ undef,undef,\%filter,$action,\$numtitles));
$filter{'domainfilter'} = $dom;
my %courses = &Apache::lonpickcourse::search_courses($r,$type,0,
- \%filter);
- &Apache::lonpickcourse::display_matched_courses($r,$type,0,$action,
+ \%filter,$numtitles);
+ &Apache::lonpickcourse::display_matched_courses($r,$type,0,$action,undef,undef,undef,
%courses);
return;
}
@@ -173,7 +189,7 @@ sub print_modification_menu {
);
my @menu =
(
- { text => 'Modify quota for group portfolio files',
+ { text => 'Modify quota for group portfolio',
phase => 'setquota',
},
{ text => 'Display current settings for automated enrollment',
@@ -244,7 +260,6 @@ sub print_settings_display {
'back' => "Back to options page",
);
- my @bgcolors = ('#eeeeee','#cccccc');
my $cctitle = &Apache::lonnet::plaintext('cc',$type);
my $dctitle = &Apache::lonnet::plaintext('dc');
my @modifiable_params = &get_dc_settable();
@@ -269,10 +284,16 @@ sub print_settings_display {
$disp_table .= &Apache::loncommon::end_data_table()."\n";
&print_header($r,$cdesc);
$r->print('
-
'.$lt{'caes'}.'
-
+
'.$lt{'caes'}.$cdesc.'
');
+'');
}
sub print_setquota {
@@ -290,10 +311,10 @@ sub print_setquota {
my $cctitle = &Apache::lonnet::plaintext('cc',$type);
my $subdiv = &mt('Although a [_1] will assign the disk quota for each individual group, the size of the quota is constrained by the total disk space allocated by the [_2] for portfolio files in a course.',$cctitle,$dctitle);
my %lt = &Apache::lonlocal::texthash(
- 'cquo' => 'Disk space for storage of group portfolio files',
+ 'cquo' => 'Disk space for storage of group portfolio',
'gpqu' => 'Course portfolio files disk space',
'each' => 'Each course group can be assigned a quota for portfolio files uploaded to the group.',
- 'modi' => 'Modify quota',
+ 'modi' => 'Save',
'back' => "Back to options page",
);
my %settings = &Apache::lonnet::get('environment',['internal.coursequota'],$cdom,$cnum);
@@ -341,10 +362,10 @@ sub print_catsettings {
$excludeoff = '';
}
$r->print('
'.&mt('Visibility in Course Catalog').'
'.
- &mt("Unless excluded, a course is listed in this domain's publicly accessible course catalog if at least of one the following applies").':
'.
+ &mt("Unless excluded, a course is listed in this domain's publicly accessible course catalog, if at least one of the following applies").':
'.
'
'.&mt('Auto-cataloging is enabled and the course is assigned an institutional code').'
'.
'
'.&mt('The course has been categorized into at least one of the course categories defined for the domain.').'
'.
- ' '.&mt('Exclude from course catalog').' ');
+ &mt('Exclude from course catalog').' ');
}
if (grep(/^categorize$/,@cat_params)) {
$r->print('
'.&mt('Categorize Course').'
');
@@ -387,7 +408,7 @@ sub print_course_modification_page {
'name' => "Name",
'unme' => "Username:Domain",
'stus' => "Status",
- 'cquo' => "Disk space for storage of group portfolio files",
+ 'cquo' => "Disk space for storage of group portfolio",
'gpqu' => "Course portfolio files disk space",
'each' => "Each course group can be assigned a quota for portfolio files uploaded to the group.",
'cose' => "Course settings for LON-CAPA courses that control automated student enrollment based on classlist data available from your institution's student information system fall into two groups: (a) settings that can be modified by a Course Coordinator using the ",
@@ -409,7 +430,6 @@ all settings except course code, course
'deus' => "The default authentication method, and default authentication parameter (domain, initial password or argument) are used when automatic enrollment of students in a course requires addition of new user accounts in your domain, and the class list file contains empty entries for the <authtype> and <autharg> properties for the new student. If you choose 'internally authenticated', and leave the initial password field empty, the automated enrollment process will create a randomized password for each new student account that it adds to your LON-CAPA domain.",
'gobt' => "Save",
);
- my @bgcolors = ('#eeeeee','#cccccc');
my @coursepersonnel = &Apache::lonnet::getkeys('nohist_userroles',$cdom,$cnum);
my @local_ccs = ();
@@ -635,8 +655,13 @@ sub modify_course {
}
if ( $newattr{'authtype'}=~ /^krb/) {
if ($newattr{'autharg'} eq '') {
- $warning = qq().
- &mt("As you did not include the default Kerberos domain to be used for authentication in this class, the institutional data used by the automated enrollment process must include the Kerberos domain for each new student").qq();
+ $warning = '
'
+ .&mt('As you did not include the default Kerberos domain'
+ .' to be used for authentication in this class, the'
+ .' institutional data used by the automated'
+ .' enrollment process must include the Kerberos'
+ .' domain for each new student.')
+ .'