'.&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,\$numtitles,'modifycourse'));
}
@@ -145,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.').
'.
- &mt("Unless excluded, a course is listed in this domain's publicly accessible course catalog, if at least one of the following applies").':
'.
+ $r->print('
'.&mt('Visibility in Course/Community Catalog').'
'.
+ &mt("Unless excluded, a course/community is listed in this domain's publicly accessible Course/Community 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').' ');
@@ -1091,7 +1106,7 @@ sub course_settings_descrip {
sub hidden_form_elements {
my $hidden_elements =
- &Apache::lonhtmlcommon::echo_form_input(['gosearch','coursecode',
+ &Apache::lonhtmlcommon::echo_form_input(['gosearch','updater','coursecode',
'prevphase','numlocalcc','courseowner','login','coursequota','intarg',
'locarg','krbarg','krbver','counter','hidefromcat','usecategory'])."\n".
'';
@@ -1114,6 +1129,9 @@ sub handler {
&Apache::lonhtmlcommon::clear_breadcrumbs();
my $phase = $env{'form.phase'};
+ if ($env{'form.updater'}) {
+ $phase = '';
+ }
if ($phase eq '') {
&Apache::lonhtmlcommon::add_breadcrumb
({href=>"/adm/modifycourse",