version 1.44, 2009/05/08 17:22:17
|
version 1.47, 2009/10/23 16:14:43
|
Line 120 sub print_course_search_page {
|
Line 120 sub print_course_search_page {
|
'instcodefilter','ownerfilter', |
'instcodefilter','ownerfilter', |
'coursefilter']; |
'coursefilter']; |
my $filter = {}; |
my $filter = {}; |
my $numtitles; |
my ($numtitles,$type,$cctitle,$dctitle); |
my $type = 'Course'; |
$type = $env{'form.type'}; |
|
if (!defined($env{'form.type'})) { |
|
$type = 'Course'; |
|
} |
my $action = '/adm/modifycourse'; |
my $action = '/adm/modifycourse'; |
my $cctitle = &Apache::lonnet::plaintext('cc',$type); |
$cctitle = &Apache::lonnet::plaintext('cc',$type); |
my $dctitle = &Apache::lonnet::plaintext('dc'); |
$dctitle = &Apache::lonnet::plaintext('dc'); |
$r->print( |
$r->print(&Apache::lonpickcourse::js_changer()); |
'<h3>'.&mt('Search for a course in the [_1] domain',$domdesc).'</h3>'. |
if ($type eq 'Course') { |
&mt('Actions available after searching for a course:').'<ul>'. |
$r->print( |
'<li>'.&mt('Enter the course with the role of [_1]',$cctitle).'</li>'."\n". |
'<h3>'.&mt('Search for a course in the [_1] domain',$domdesc).'</h3>'. |
'<li>'.&mt('View or modify course settings which only a [_1] may modify.' |
&mt('Actions available after searching for a course:').'<ul>'. |
,$dctitle).'</li>'."\n".'</ul>'); |
'<li>'.&mt('Enter the course with the role of [_1]',$cctitle).'</li>'."\n". |
|
'<li>'.&mt('View or modify course settings which only a [_1] may modify.' |
|
,$dctitle).'</li>'."\n".'</ul>'); |
|
} else { |
|
$r->print( |
|
'<h3>'.&mt('Search for a community in the [_1] domain',$domdesc).'</h3>'. |
|
&mt('Actions available after searching for a community:').'<ul>'. |
|
'<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>'."\n".'</ul>'); |
|
} |
$r->print(&Apache::lonpickcourse::build_filters($filterlist,$type, |
$r->print(&Apache::lonpickcourse::build_filters($filterlist,$type, |
undef,undef,$filter,$action,\$numtitles,'modifycourse')); |
undef,undef,$filter,$action,\$numtitles,'modifycourse')); |
} |
} |
Line 145 sub print_course_selection_page {
|
Line 158 sub print_course_selection_page {
|
'ownerdomfilter','coursefilter']; |
'ownerdomfilter','coursefilter']; |
my %filter; |
my %filter; |
my $type = $env{'form.type'}; |
my $type = $env{'form.type'}; |
if ($type eq '') { |
if (!defined($type)) { |
$type = 'Course'; |
$type = 'Course'; |
} |
} |
my $action = '/adm/modifycourse'; |
my $action = '/adm/modifycourse'; |
my $dctitle = &Apache::lonnet::plaintext('dc'); |
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.').<br /><br />'); |
$r->print(&mt('Revise your search criteria for this domain').' ('.$domdesc.').<br /><br />'); |
$r->print(&Apache::lonpickcourse::build_filters($filterlist,$type, |
$r->print(&Apache::lonpickcourse::build_filters($filterlist,$type, |
undef,undef,\%filter,$action)); |
undef,undef,\%filter,$action,\$numtitles)); |
$filter{'domainfilter'} = $dom; |
$filter{'domainfilter'} = $dom; |
my %courses = &Apache::lonpickcourse::search_courses($r,$type,0, |
my %courses = &Apache::lonpickcourse::search_courses($r,$type,0, |
\%filter); |
\%filter,$numtitles); |
&Apache::lonpickcourse::display_matched_courses($r,$type,0,$action,undef, |
&Apache::lonpickcourse::display_matched_courses($r,$type,0,$action,undef,undef,undef, |
%courses); |
%courses); |
return; |
return; |
} |
} |
Line 245 sub print_settings_display {
|
Line 260 sub print_settings_display {
|
'back' => "Back to options page", |
'back' => "Back to options page", |
); |
); |
|
|
my @bgcolors = ('#eeeeee','#cccccc'); |
|
my $cctitle = &Apache::lonnet::plaintext('cc',$type); |
my $cctitle = &Apache::lonnet::plaintext('cc',$type); |
my $dctitle = &Apache::lonnet::plaintext('dc'); |
my $dctitle = &Apache::lonnet::plaintext('dc'); |
my @modifiable_params = &get_dc_settable(); |
my @modifiable_params = &get_dc_settable(); |
Line 271 sub print_settings_display {
|
Line 285 sub print_settings_display {
|
&print_header($r,$cdesc); |
&print_header($r,$cdesc); |
$r->print(' |
$r->print(' |
<h3>'.$lt{'caes'}.$cdesc.'</h3> |
<h3>'.$lt{'caes'}.$cdesc.'</h3> |
<p> |
|
<form action="/adm/modifycourse" method="post" name="viewparms"> |
<form action="/adm/modifycourse" method="post" name="viewparms"> |
'.$lt{'cose'}.'<ul><li>'.&mt('Settings that can be modified by a [_1] using the <a href="/adm/populate">Automated Enrollment Manager</a>.',$cctitle).'</li><li>'.&mt('Settings that may only be modified by a [_1] from this menu.',$dctitle).'</li></ul> |
<p> |
|
'.$lt{'cose'}.' |
|
<ul><li> |
|
'.&mt('Settings that can be modified by a [_1] using the [_2]Automated Enrollment Manager[_3].' |
|
,$cctitle,'<a href="/adm/populate">','</a>').' |
|
</li><li> |
|
'.&mt('Settings that may only be modified by a [_1] from this menu.',$dctitle).' |
|
</li></ul> |
</p><p> |
</p><p> |
'.$lt{'cour'}.' |
'.$lt{'cour'}.' |
</p><p> |
</p><p> |
Line 282 sub print_settings_display {
|
Line 302 sub print_settings_display {
|
<a href="javascript:changePage(document.viewparms,'."'menu'".')">'.$lt{'back'}.'</a> |
<a href="javascript:changePage(document.viewparms,'."'menu'".')">'.$lt{'back'}.'</a> |
<a href="javascript:changePage(document.viewparms,'."'setparms'".')">'.&mt('Modify [_1]-only settings',$dctitle).'</a>'."\n". |
<a href="javascript:changePage(document.viewparms,'."'setparms'".')">'.&mt('Modify [_1]-only settings',$dctitle).'</a>'."\n". |
&hidden_form_elements(). |
&hidden_form_elements(). |
'</form>'); |
'</p></form>'); |
} |
} |
|
|
sub print_setquota { |
sub print_setquota { |
Line 341 sub print_catsettings {
|
Line 361 sub print_catsettings {
|
$excludeon = $excludeoff; |
$excludeon = $excludeoff; |
$excludeoff = ''; |
$excludeoff = ''; |
} |
} |
$r->print('<h4>'.&mt('Visibility in Course Catalog').'</h4>'. |
$r->print('<h4>'.&mt('Visibility in Course/Community Catalog').'</h4>'. |
&mt("Unless excluded, a course is listed in this domain's publicly accessible course catalog, if at least one of the following applies").':<ul>'. |
&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").':<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>'. |
'<li>'.&mt('The course has been categorized into at least one of the course categories defined for the domain.').'</li></ul>'. |
'<li>'.&mt('The course has been categorized into at least one of the course categories defined for the domain.').'</li></ul>'. |
&mt('Exclude from course catalog').' <label><input name="hidefromcat" type="radio" value="yes" '.$excludeon.' />'.&mt('Yes').'</label> <label><input name="hidefromcat" type="radio" value="" '.$excludeoff.' />'.&mt('No').'</label><br />'); |
&mt('Exclude from course catalog').' <label><input name="hidefromcat" type="radio" value="yes" '.$excludeon.' />'.&mt('Yes').'</label> <label><input name="hidefromcat" type="radio" value="" '.$excludeoff.' />'.&mt('No').'</label><br />'); |
Line 410 all settings except course code, course
|
Line 430 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.", |
'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", |
'gobt' => "Save", |
); |
); |
my @bgcolors = ('#eeeeee','#cccccc'); |
|
|
|
my @coursepersonnel = &Apache::lonnet::getkeys('nohist_userroles',$cdom,$cnum); |
my @coursepersonnel = &Apache::lonnet::getkeys('nohist_userroles',$cdom,$cnum); |
my @local_ccs = (); |
my @local_ccs = (); |
Line 636 sub modify_course {
|
Line 655 sub modify_course {
|
} |
} |
if ( $newattr{'authtype'}=~ /^krb/) { |
if ( $newattr{'authtype'}=~ /^krb/) { |
if ($newattr{'autharg'} eq '') { |
if ($newattr{'autharg'} eq '') { |
$warning = qq(<font color="red" size="+1">). |
$warning = '<p class="LC_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").qq(</font></p>); |
.&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.') |
|
.'</p>'; |
} |
} |
} |
} |
|
|
Line 1082 sub course_settings_descrip {
|
Line 1106 sub course_settings_descrip {
|
|
|
sub hidden_form_elements { |
sub hidden_form_elements { |
my $hidden_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', |
'prevphase','numlocalcc','courseowner','login','coursequota','intarg', |
'locarg','krbarg','krbver','counter','hidefromcat','usecategory'])."\n". |
'locarg','krbarg','krbver','counter','hidefromcat','usecategory'])."\n". |
'<input type="hidden" name="prevphase" value="'.$env{'form.phase'}.'" />'; |
'<input type="hidden" name="prevphase" value="'.$env{'form.phase'}.'" />'; |
Line 1105 sub handler {
|
Line 1129 sub handler {
|
&Apache::lonhtmlcommon::clear_breadcrumbs(); |
&Apache::lonhtmlcommon::clear_breadcrumbs(); |
|
|
my $phase = $env{'form.phase'}; |
my $phase = $env{'form.phase'}; |
|
if ($env{'form.updater'}) { |
|
$phase = ''; |
|
} |
if ($phase eq '') { |
if ($phase eq '') { |
&Apache::lonhtmlcommon::add_breadcrumb |
&Apache::lonhtmlcommon::add_breadcrumb |
({href=>"/adm/modifycourse", |
({href=>"/adm/modifycourse", |