version 1.79, 2016/03/29 14:05:10
|
version 1.85, 2016/08/15 18:01:08
|
Line 44 sub get_dc_settable {
|
Line 44 sub get_dc_settable {
|
if ($type eq 'Community') { |
if ($type eq 'Community') { |
return ('courseowner','selfenrollmgrdc','selfenrollmgrcc'); |
return ('courseowner','selfenrollmgrdc','selfenrollmgrcc'); |
} else { |
} else { |
my @items = ('courseowner','coursecode','authtype','autharg','selfenrollmgrdc','selfenrollmgrcc'); |
my @items = ('courseowner','coursecode','authtype','autharg','selfenrollmgrdc', |
|
'selfenrollmgrcc','mysqltables'); |
if (&showcredits($cdom)) { |
if (&showcredits($cdom)) { |
push(@items,'defaultcredits'); |
push(@items,'defaultcredits'); |
} |
} |
Line 55 sub get_dc_settable {
|
Line 56 sub get_dc_settable {
|
sub autoenroll_keys { |
sub autoenroll_keys { |
my $internals = ['coursecode','courseowner','authtype','autharg','defaultcredits', |
my $internals = ['coursecode','courseowner','authtype','autharg','defaultcredits', |
'autoadds','autodrops','autostart','autoend','sectionnums', |
'autoadds','autodrops','autostart','autoend','sectionnums', |
'crosslistings','co-owners']; |
'crosslistings','co-owners','autodropfailsafe']; |
my $accessdates = ['default_enrollment_start_date','default_enrollment_end_date']; |
my $accessdates = ['default_enrollment_start_date','default_enrollment_end_date']; |
return ($internals,$accessdates); |
return ($internals,$accessdates); |
} |
} |
Line 71 sub catalog_settable {
|
Line 72 sub catalog_settable {
|
if ($confhash->{'categorizecomm'} ne 'comm') { |
if ($confhash->{'categorizecomm'} ne 'comm') { |
push(@settable,'categorize'); |
push(@settable,'categorize'); |
} |
} |
|
} elsif ($type eq 'Placement') { |
|
if ($confhash->{'togglecatsplace'} ne 'place') { |
|
push(@settable,'togglecats'); |
|
} |
|
if ($confhash->{'categorizeplace'} ne 'place') { |
|
push(@settable,'categorize'); |
|
} |
} else { |
} else { |
if ($confhash->{'togglecats'} ne 'crs') { |
if ($confhash->{'togglecats'} ne 'crs') { |
push(@settable,'togglecats'); |
push(@settable,'togglecats'); |
Line 117 sub get_enrollment_settings {
|
Line 125 sub get_enrollment_settings {
|
$enrollvar{$type} =~ s/,/, /g; |
$enrollvar{$type} =~ s/,/, /g; |
} elsif ($type eq "authtype" |
} elsif ($type eq "authtype" |
|| $type eq "autharg" || $type eq "coursecode" |
|| $type eq "autharg" || $type eq "coursecode" |
|| $type eq "crosslistings") { |
|| $type eq "crosslistings" || $type eq "selfenrollmgr" |
|
|| $type eq "autodropfailsafe") { |
$enrollvar{$type} = $settings{$item}; |
$enrollvar{$type} = $settings{$item}; |
} elsif ($type eq 'defaultcredits') { |
} elsif ($type eq 'defaultcredits') { |
if (&showcredits($cdom)) { |
if (&showcredits($cdom)) { |
$enrollvar{$type} = $settings{$item}; |
$enrollvar{$type} = $settings{$item}; |
} |
} |
} elsif ($type eq 'selfenrollmgr') { |
|
$enrollvar{$type} = $settings{$item}; |
|
} elsif ($type eq 'courseowner') { |
} elsif ($type eq 'courseowner') { |
if ($settings{$item} =~ /^[^:]+:[^:]+$/) { |
if ($settings{$item} =~ /^[^:]+:[^:]+$/) { |
$enrollvar{$type} = $settings{$item}; |
$enrollvar{$type} = $settings{$item}; |
Line 167 sub print_course_search_page {
|
Line 174 sub print_course_search_page {
|
$r->print(&Apache::loncommon::js_changer()); |
$r->print(&Apache::loncommon::js_changer()); |
if ($type eq 'Community') { |
if ($type eq 'Community') { |
$r->print('<h3>'.&mt('Search for a community in the [_1] domain',$domdesc).'</h3>'); |
$r->print('<h3>'.&mt('Search for a community in the [_1] domain',$domdesc).'</h3>'); |
|
} elsif ($type eq 'Placement') { |
|
$r->print('<h3>'.&mt('Search for a placement test in the [_1] domain',$domdesc).'</h3>'); |
} else { |
} else { |
$r->print('<h3>'.&mt('Search for a course in the [_1] domain',$domdesc).'</h3>'); |
$r->print('<h3>'.&mt('Search for a course in the [_1] domain',$domdesc).'</h3>'); |
} |
} |
Line 178 sub print_course_search_page {
|
Line 187 sub print_course_search_page {
|
'<li>'.&mt('Enter the community with the role of [_1]',$cctitle).'</li>'."\n". |
'<li>'.&mt('Enter the community with the role of [_1]',$cctitle).'</li>'."\n". |
'<li>'.&mt('View or modify community settings which only a [_1] may modify.',$dctitle). |
'<li>'.&mt('View or modify community settings which only a [_1] may modify.',$dctitle). |
'</li>'."\n".'</ul>'); |
'</li>'."\n".'</ul>'); |
|
} elsif ($type eq 'Placement') { |
|
$r->print(&mt('Actions available after searching for a placement test:').'<ul>'. |
|
'<li>'.&mt('Enter the placement test with the role of [_1]',$cctitle).'</li>'."\n". |
|
'<li>'.&mt('View or modify placement test settings which only a [_1] may modify.',$dctitle). |
|
'</li>'."\n".'</ul>'); |
} else { |
} else { |
$r->print(&mt('Actions available after searching for a course:').'<ul>'. |
$r->print(&mt('Actions available after searching for a course:').'<ul>'. |
'<li>'.&mt('Enter the course with the role of [_1]',$cctitle).'</li>'."\n". |
'<li>'.&mt('Enter the course with the role of [_1]',$cctitle).'</li>'."\n". |
Line 254 sub print_modification_menu {
|
Line 268 sub print_modification_menu {
|
$categorytitle = 'View/Modify Course Settings'; |
$categorytitle = 'View/Modify Course Settings'; |
$setquota_text = &mt('Total disk space allocated for storage of portfolio files in all groups in a course.'); |
$setquota_text = &mt('Total disk space allocated for storage of portfolio files in all groups in a course.'); |
$setuploadquota_text = &mt('Disk space allocated for storage of content uploaded directly to a course via Content Editor.'); |
$setuploadquota_text = &mt('Disk space allocated for storage of content uploaded directly to a course via Content Editor.'); |
if (&showcredits($dom)) { |
if (($type ne 'Placement') && (&showcredits($dom))) { |
$setparams_text = 'View/Modify course owner, institutional code, default authentication, credits, and self-enrollment'; |
$setparams_text = 'View/Modify course owner, institutional code, default authentication, credits, self-enrollment and table lifetime'; |
} else { |
} else { |
$setparams_text = 'View/Modify course owner, institutional code, default authentication, and self-enrollment'; |
$setparams_text = 'View/Modify course owner, institutional code, default authentication, self-enrollment and table lifetime'; |
} |
} |
$cat_text = 'View/Modify catalog settings for course'; |
$cat_text = 'View/Modify catalog settings for course'; |
} |
} |
my $anon_text = &mt('Responder threshold required to display anonymous survey submissions.'); |
my $anon_text = &mt('Responder threshold required to display anonymous survey submissions.'); |
my $postsubmit_text = &mt('Override defaults for submit button behavior post-submission for this specific course.'); |
my $postsubmit_text = &mt('Override defaults for submit button behavior post-submission for this specific course.'); |
|
my $mysqltables_text = &mt('Override default for lifetime of "temporary" MySQL tables containing student performance data.'); |
|
|
my %domconf = &Apache::lonnet::get_dom('configuration',['coursecategories'],$dom); |
my %domconf = &Apache::lonnet::get_dom('configuration',['coursecategories'],$dom); |
my @additional_params = &catalog_settable($domconf{'coursecategories'},$type); |
my @additional_params = &catalog_settable($domconf{'coursecategories'},$type); |
Line 320 sub print_modification_menu {
|
Line 335 sub print_modification_menu {
|
{ |
{ |
linktext => 'Display current settings for automated enrollment', |
linktext => 'Display current settings for automated enrollment', |
url => &phaseurl('viewparms'), |
url => &phaseurl('viewparms'), |
permission => ($type ne 'Community'), |
permission => (($type ne 'Community') && ($type ne 'Placement')), |
#help => '', |
#help => '', |
icon => 'roles.png', |
icon => 'roles.png', |
linktitle => '' |
linktitle => '' |
Line 362 sub print_modification_menu {
|
Line 377 sub print_modification_menu {
|
} else { |
} else { |
$menu_html .= '<li>'.&mt('Course owner (permitted to assign Course Coordinator roles in the course).').'</li>'."\n". |
$menu_html .= '<li>'.&mt('Course owner (permitted to assign Course Coordinator roles in the course).').'</li>'."\n". |
'<li>'.&mt("Institutional code and default authentication (both required for auto-enrollment of students from institutional datafeeds).").'</li>'."\n"; |
'<li>'.&mt("Institutional code and default authentication (both required for auto-enrollment of students from institutional datafeeds).").'</li>'."\n"; |
if (&showcredits($dom)) { |
if (($type ne 'Placement') && &showcredits($dom)) { |
$menu_html .= '<li>'.&mt('Default credits earned by student on course completion.').'</li>'."\n"; |
$menu_html .= '<li>'.&mt('Default credits earned by student on course completion.').'</li>'."\n"; |
} |
} |
$menu_html .= ' <li>'.&mt('Override defaults for who configures self-enrollment for this specific course.').'</li>'."\n"; |
$menu_html .= ' <li>'.&mt('Override defaults for who configures self-enrollment for this specific course.').'</li>'."\n"; |
} |
} |
$menu_html .= '<li>'.$setquota_text.'</li>'."\n". |
$menu_html .= '<li>'.$mysqltables_text.'</li>'."\n". |
|
'<li>'.$setquota_text.'</li>'."\n". |
'<li>'.$setuploadquota_text.'</li>'."\n". |
'<li>'.$setuploadquota_text.'</li>'."\n". |
'<li>'.$anon_text.'</li>'."\n". |
'<li>'.$anon_text.'</li>'."\n". |
'<li>'.$postsubmit_text.'</li>'."\n"; |
'<li>'.$postsubmit_text.'</li>'."\n"; |
Line 634 sub domain_postsubtimeout {
|
Line 650 sub domain_postsubtimeout {
|
my ($cdom,$type,$settings) = @_; |
my ($cdom,$type,$settings) = @_; |
return unless (ref($settings) eq 'HASH'); |
return unless (ref($settings) eq 'HASH'); |
my $lctype = lc($type); |
my $lctype = lc($type); |
unless ($type eq 'Community') { |
unless (($type eq 'Community') || ($type eq 'Placement')) { |
$lctype = 'unofficial'; |
$lctype = 'unofficial'; |
if ($settings->{'internal.coursecode'}) { |
if ($settings->{'internal.coursecode'}) { |
$lctype = 'official'; |
$lctype = 'official'; |
Line 693 sub print_catsettings {
|
Line 709 sub print_catsettings {
|
' <label><input name="hidefromcat" type="radio" value="yes" '.$excludeon.' />'.&mt('Yes').'</label> <label><input name="hidefromcat" type="radio" value="" '.$excludeoff.' />'.&mt('No').'</label><br /><p>'); |
' <label><input name="hidefromcat" type="radio" value="yes" '.$excludeon.' />'.&mt('Yes').'</label> <label><input name="hidefromcat" type="radio" value="" '.$excludeoff.' />'.&mt('No').'</label><br /><p>'); |
if ($type eq 'Community') { |
if ($type eq 'Community') { |
$r->print(&mt("If a community has been categorized using at least one of the categories defined for communities in the domain, it will be listed in the domain's publicly accessible Course/Community Catalog, unless excluded.")); |
$r->print(&mt("If a community has been categorized using at least one of the categories defined for communities in the domain, it will be listed in the domain's publicly accessible Course/Community Catalog, unless excluded.")); |
|
} elsif ($type eq 'Placement') { |
|
$r->print(&mt("If a placement test has been categorized using at least one of the categories defined for placement tests in the domain, it will be listed in the domain's publicly accessible Course/Community Catalog, unless excluded.")); |
} else { |
} else { |
$r->print(&mt("Unless excluded, a course will be listed in the domain's publicly accessible Course/Community Catalog, if at least one of the following applies").':<ul>'. |
$r->print(&mt("Unless excluded, a course will be listed in the domain's publicly accessible Course/Community Catalog, if at least one of the following applies").':<ul>'. |
'<li>'.&mt('Auto-cataloging is enabled and the course is assigned an institutional code.').'</li>'. |
'<li>'.&mt('Auto-cataloging is enabled and the course is assigned an institutional code.').'</li>'. |
Line 714 sub print_catsettings {
|
Line 732 sub print_catsettings {
|
} else { |
} else { |
$r->print(&mt('No categories defined for this domain')); |
$r->print(&mt('No categories defined for this domain')); |
} |
} |
unless ($type eq 'Community') { |
unless (($type eq 'Community') || ($type eq 'Placement')) { |
$r->print('<p>'.&mt('If auto-cataloging based on institutional code is enabled in the domain, a course will continue to be listed in the catalog of official courses, in addition to receiving a listing under any manually assigned categor(ies).').'</p>'); |
$r->print('<p>'.&mt('If auto-cataloging based on institutional code is enabled in the domain, a course will continue to be listed in the catalog of official courses, in addition to receiving a listing under any manually assigned categor(ies).').'</p>'); |
} |
} |
} |
} |
Line 753 sub print_course_modification_page {
|
Line 771 sub print_course_modification_page {
|
my ($ownertable,$ccrole,$javascript_validations,$authenitems,$ccname); |
my ($ownertable,$ccrole,$javascript_validations,$authenitems,$ccname); |
my %enrollvar = &get_enrollment_settings($cdom,$cnum); |
my %enrollvar = &get_enrollment_settings($cdom,$cnum); |
my %settings = &Apache::lonnet::get('environment',['internal.coursecode','internal.textbook', |
my %settings = &Apache::lonnet::get('environment',['internal.coursecode','internal.textbook', |
'internal.selfenrollmgrdc','internal.selfenrollmgrcc'], |
'internal.selfenrollmgrdc','internal.selfenrollmgrcc', |
|
'internal.mysqltables'], |
$cdom,$cnum); |
$cdom,$cnum); |
my $type = &Apache::lonuserutils::get_extended_type($cdom,$cnum,$crstype,\%settings); |
my $type = &Apache::lonuserutils::get_extended_type($cdom,$cnum,$crstype,\%settings); |
my @specific_managebydc = split(/,/,$settings{'internal.selfenrollmgrdc'}); |
my @specific_managebydc = split(/,/,$settings{'internal.selfenrollmgrdc'}); |
Line 837 sub print_course_modification_page {
|
Line 856 sub print_course_modification_page {
|
' '.&mt('Course Code'))."\n". |
' '.&mt('Course Code'))."\n". |
'<input type="text" size="15" name="coursecode" value="'.$enrollvar{'coursecode'}.'" />'. |
'<input type="text" size="15" name="coursecode" value="'.$enrollvar{'coursecode'}.'" />'. |
&Apache::lonhtmlcommon::row_closure()); |
&Apache::lonhtmlcommon::row_closure()); |
if (&showcredits($cdom)) { |
if (($crstype eq 'Course') && (&showcredits($cdom))) { |
$r->print(&Apache::lonhtmlcommon::row_title( |
$r->print(&Apache::lonhtmlcommon::row_title( |
&Apache::loncommon::help_open_topic('Modify_Course_Credithours'). |
&Apache::loncommon::help_open_topic('Modify_Course_Credithours'). |
' '.&mt('Credits (students)'))."\n". |
' '.&mt('Credits (students)'))."\n". |
'<input type="text" size="3" name="defaultcredits" value="'.$enrollvar{'defaultcredits'}.'" />'. |
'<input type="text" size="3" name="defaultcredits" value="'.$enrollvar{'defaultcredits'}.'" />'. |
&Apache::lonhtmlcommon::row_closure()); |
&Apache::lonhtmlcommon::row_closure()); |
} |
} |
$r->print(&Apache::lonhtmlcommon::row_title( |
$r->print(&Apache::lonhtmlcommon::row_title( |
&Apache::loncommon::help_open_topic('Modify_Course_Defaultauth'). |
&Apache::loncommon::help_open_topic('Modify_Course_Defaultauth'). |
' '.&mt('Default Authentication method'))."\n". |
' '.&mt('Default Authentication method'))."\n". |
$authenitems."\n". |
$authenitems."\n". |
&Apache::lonhtmlcommon::row_closure(). |
&Apache::lonhtmlcommon::row_closure(). |
&Apache::lonhtmlcommon::row_title( |
&Apache::lonhtmlcommon::row_title( |
&Apache::loncommon::help_open_topic('Modify_Course_Owner'). |
&Apache::loncommon::help_open_topic('Modify_Course_Owner'). |
' '.&mt('Course Owner'))."\n"); |
' '.&mt('Course Owner'))."\n"); |
} |
} |
my ($cctitle,$rolename,$currmanages,$ccchecked,$dcchecked,$defaultchecked); |
my ($cctitle,$rolename,$currmanages,$ccchecked,$dcchecked,$defaultchecked); |
my ($selfenrollrows,$selfenrolltitles) = &Apache::lonuserutils::get_selfenroll_titles(); |
my ($selfenrollrows,$selfenrolltitles) = &Apache::lonuserutils::get_selfenroll_titles(); |
Line 902 sub print_course_modification_page {
|
Line 921 sub print_course_modification_page {
|
&Apache::loncommon::end_data_table_row()."\n"); |
&Apache::loncommon::end_data_table_row()."\n"); |
} |
} |
$r->print(&Apache::loncommon::end_data_table()."\n". |
$r->print(&Apache::loncommon::end_data_table()."\n". |
'<br />'.&Apache::lonhtmlcommon::row_closure(1). |
'<br />'.&Apache::lonhtmlcommon::row_closure(). |
|
&Apache::lonhtmlcommon::row_title( |
|
&Apache::loncommon::help_open_topic('Modify_Course_Table_Lifetime'). |
|
' '.&mt('"Temporary" Tables Lifetime (s)'))."\n". |
|
'<input type="text" size="10" name="mysqltables" value="'.$settings{'internal.mysqltables'}.'" />'. |
|
&Apache::lonhtmlcommon::row_closure(1). |
&Apache::lonhtmlcommon::end_pick_box().'</p><p>'.$hidden_elements. |
&Apache::lonhtmlcommon::end_pick_box().'</p><p>'.$hidden_elements. |
'<input type="button" onclick="javascript:changePage(this.form,'."'processparms'".');'); |
'<input type="button" onclick="javascript:changePage(this.form,'."'processparms'".');'); |
if ($crstype eq 'Community') { |
if ($crstype eq 'Community') { |
Line 1024 sub modify_course {
|
Line 1048 sub modify_course {
|
my %longtype = &course_settings_descrip($type); |
my %longtype = &course_settings_descrip($type); |
my @items = ('internal.courseowner','description','internal.co-owners', |
my @items = ('internal.courseowner','description','internal.co-owners', |
'internal.pendingco-owners','internal.selfenrollmgrdc', |
'internal.pendingco-owners','internal.selfenrollmgrdc', |
'internal.selfenrollmgrcc'); |
'internal.selfenrollmgrcc','internal.mysqltables'); |
my ($selfenrollrows,$selfenrolltitles) = &Apache::lonuserutils::get_selfenroll_titles(); |
my ($selfenrollrows,$selfenrolltitles) = &Apache::lonuserutils::get_selfenroll_titles(); |
unless ($type eq 'Community') { |
unless (($type eq 'Community') || ($type eq 'Placement')) { |
push(@items,('internal.coursecode','internal.authtype','internal.autharg', |
push(@items,('internal.coursecode','internal.authtype','internal.autharg', |
'internal.sectionnums','internal.crosslistings')); |
'internal.sectionnums','internal.crosslistings')); |
if (&showcredits($cdom)) { |
if (&showcredits($cdom)) { |
Line 1095 sub modify_course {
|
Line 1119 sub modify_course {
|
$changed{'code'} = 1; |
$changed{'code'} = 1; |
} |
} |
} |
} |
|
if ( exists($env{'form.mysqltables'}) ) { |
if (&showcredits($cdom) && exists($env{'form.defaultcredits'})) { |
$newattr{'mysqltables'} = $env{'form.mysqltables'}; |
$newattr{'defaultcredits'} =~ s/[^\d\.]//g; |
$newattr{'mysqltables'} =~ s/\D+//g; |
|
} |
|
if (($type ne 'Placement') && (&showcredits($cdom) && exists($env{'form.defaultcredits'}))) { |
$newattr{'defaultcredits'}=$env{'form.defaultcredits'}; |
$newattr{'defaultcredits'}=$env{'form.defaultcredits'}; |
|
$newattr{'defaultcredits'} =~ s/[^\d\.]//g; |
} |
} |
} |
} |
|
|
Line 1190 sub modify_course {
|
Line 1217 sub modify_course {
|
$shown = &selfenroll_config_status(\@newmgrcc,$selfenrolltitles); |
$shown = &selfenroll_config_status(\@newmgrcc,$selfenrolltitles); |
} elsif (($attr eq 'defaultcredits') && ($shown eq '')) { |
} elsif (($attr eq 'defaultcredits') && ($shown eq '')) { |
$shown = &mt('None'); |
$shown = &mt('None'); |
|
} elsif (($attr eq 'mysqltables') && ($shown eq '')) { |
|
$shown = &mt('domain default'); |
} |
} |
$chgresponse .= '<li>'.&mt('[_1] now set to: [_2]',$longtype{$attr},$shown).'</li>'; |
$chgresponse .= '<li>'.&mt('[_1] now set to: [_2]',$longtype{$attr},$shown).'</li>'; |
} else { |
} else { |
Line 1200 sub modify_course {
|
Line 1229 sub modify_course {
|
$shown = &selfenroll_config_status(\@currmgrcc,$selfenrolltitles); |
$shown = &selfenroll_config_status(\@currmgrcc,$selfenrolltitles); |
} elsif (($attr eq 'defaultcredits') && ($shown eq '')) { |
} elsif (($attr eq 'defaultcredits') && ($shown eq '')) { |
$shown = &mt('None'); |
$shown = &mt('None'); |
|
} elsif (($attr eq 'mysqltables') && ($shown eq '')) { |
|
$shown = &mt('domain default'); |
} |
} |
$nochgresponse .= '<li>'.&mt('[_1] still set to: [_2]',$longtype{$attr},$shown).'</li>'; |
$nochgresponse .= '<li>'.&mt('[_1] still set to: [_2]',$longtype{$attr},$shown).'</li>'; |
} |
} |
} |
} |
if (($type ne 'Community') && ($changed{'code'} || $changed{'owner'})) { |
if (($type ne 'Community') && ($type ne 'Placement') && ($changed{'code'} || $changed{'owner'})) { |
if ( $newattr{'courseowner'} eq '') { |
if ( $newattr{'courseowner'} eq '') { |
push(@warnings,&mt('There is no owner associated with this LON-CAPA course.'). |
push(@warnings,&mt('There is no owner associated with this LON-CAPA course.'). |
'<br />'.&mt('If automated enrollment at your institution requires validation of course owners, automated enrollment will fail.')); |
'<br />'.&mt('If automated enrollment at your institution requires validation of course owners, automated enrollment will fail.')); |
Line 1271 sub modify_course {
|
Line 1302 sub modify_course {
|
$shown = &selfenroll_config_status(\@currmgrcc,$selfenrolltitles); |
$shown = &selfenroll_config_status(\@currmgrcc,$selfenrolltitles); |
} elsif (($attr eq 'defaultcredits') && ($shown eq '')) { |
} elsif (($attr eq 'defaultcredits') && ($shown eq '')) { |
$shown = &mt('None'); |
$shown = &mt('None'); |
|
} elsif (($attr eq 'mysqltables') && ($shown eq '')) { |
|
$shown = &mt('domain default'); |
} |
} |
$nochgresponse .= '<li>'.&mt('[_1] still set to: [_2]',$longtype{$attr},$shown).'</li>'; |
$nochgresponse .= '<li>'.&mt('[_1] still set to: [_2]',$longtype{$attr},$shown).'</li>'; |
} |
} |
Line 2041 ENDSCRIPT
|
Line 2074 ENDSCRIPT
|
my $bread_text = "View/Modify Courses/Communities"; |
my $bread_text = "View/Modify Courses/Communities"; |
if ($type eq 'Community') { |
if ($type eq 'Community') { |
$bread_text = 'Community Settings'; |
$bread_text = 'Community Settings'; |
|
} elsif ($type eq 'Placement') { |
|
$bread_text = 'Placement Test Settings'; |
} else { |
} else { |
$bread_text = 'Course Settings'; |
$bread_text = 'Course Settings'; |
} |
} |
Line 2095 sub course_settings_descrip {
|
Line 2130 sub course_settings_descrip {
|
'co-owners' => "Username:domain of each co-owner", |
'co-owners' => "Username:domain of each co-owner", |
'selfenrollmgrdc' => "Community-specific self-enrollment configuration by Domain Coordinator", |
'selfenrollmgrdc' => "Community-specific self-enrollment configuration by Domain Coordinator", |
'selfenrollmgrcc' => "Community-specific self-enrollment configuration by Community personnel", |
'selfenrollmgrcc' => "Community-specific self-enrollment configuration by Community personnel", |
|
'mysqltables' => '"Temporary" student performance tables lifetime (seconds)', |
); |
); |
} else { |
} else { |
%longtype = &Apache::lonlocal::texthash( |
%longtype = &Apache::lonlocal::texthash( |
Line 2113 sub course_settings_descrip {
|
Line 2149 sub course_settings_descrip {
|
'sectionnums' => 'Course section number:LON-CAPA section', |
'sectionnums' => 'Course section number:LON-CAPA section', |
'crosslistings' => 'Crosslisted class:LON-CAPA section', |
'crosslistings' => 'Crosslisted class:LON-CAPA section', |
'defaultcredits' => 'Credits', |
'defaultcredits' => 'Credits', |
|
'autodropfailsafe' => "Failsafe section enrollment count", |
'selfenrollmgrdc' => "Course-specific self-enrollment configuration by Domain Coordinator", |
'selfenrollmgrdc' => "Course-specific self-enrollment configuration by Domain Coordinator", |
'selfenrollmgrcc' => "Course-specific self-enrollment configuration by Course personnel", |
'selfenrollmgrcc' => "Course-specific self-enrollment configuration by Course personnel", |
|
'mysqltables' => '"Temporary" student performance tables lifetime (seconds)', |
); |
); |
} |
} |
return %longtype; |
return %longtype; |
Line 2128 sub hidden_form_elements {
|
Line 2165 sub hidden_form_elements {
|
'locarg','krbarg','krbver','counter','hidefromcat','usecategory', |
'locarg','krbarg','krbver','counter','hidefromcat','usecategory', |
'threshold','postsubmit','postsubtimeout','defaultcredits','uploadquota', |
'threshold','postsubmit','postsubtimeout','defaultcredits','uploadquota', |
'selfenrollmgrdc','selfenrollmgrcc','action','state','currsec_st', |
'selfenrollmgrdc','selfenrollmgrcc','action','state','currsec_st', |
'sections','newsec'],['^selfenrollmgr_'])."\n". |
'sections','newsec','mysqltables'],['^selfenrollmgr_','^selfenroll_'])."\n". |
'<input type="hidden" name="prevphase" value="'.$env{'form.phase'}.'" />'; |
'<input type="hidden" name="prevphase" value="'.$env{'form.phase'}.'" />'; |
return $hidden_elements; |
return $hidden_elements; |
} |
} |
Line 2179 sub handler {
|
Line 2216 sub handler {
|
} |
} |
if ($type eq 'Community') { |
if ($type eq 'Community') { |
$choose_text = "Choose a community"; |
$choose_text = "Choose a community"; |
|
} elsif ($type eq 'Placement') { |
|
$choose_text = "Choose a placement test"; |
} else { |
} else { |
$choose_text = "Choose a course"; |
$choose_text = "Choose a course"; |
} |
} |
Line 2195 sub handler {
|
Line 2234 sub handler {
|
my $enter_text; |
my $enter_text; |
if ($type eq 'Community') { |
if ($type eq 'Community') { |
$enter_text = 'Enter community'; |
$enter_text = 'Enter community'; |
|
} elsif ($type eq 'Placement') { |
|
$enter_text = 'Enter placement test'; |
} else { |
} else { |
$enter_text = 'Enter course'; |
$enter_text = 'Enter course'; |
} |
} |
Line 2299 sub handler {
|
Line 2340 sub handler {
|
$r->print('<span class="LC_error">'); |
$r->print('<span class="LC_error">'); |
if ($type eq 'Community') { |
if ($type eq 'Community') { |
$r->print(&mt('The community you selected is not a valid community in this domain')); |
$r->print(&mt('The community you selected is not a valid community in this domain')); |
|
} elsif ($type eq 'Placement') { |
|
$r->print(&mt('The course you selected is not a valid placement test in this domain')); |
} else { |
} else { |
$r->print(&mt('The course you selected is not a valid course in this domain')); |
$r->print(&mt('The course you selected is not a valid course in this domain')); |
} |
} |