--- loncom/interface/lonmodifycourse.pm 2009/05/08 17:22:17 1.44 +++ loncom/interface/lonmodifycourse.pm 2009/07/31 03:01:31 1.46 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # handler for DC-only modifiable course settings # -# $Id: lonmodifycourse.pm,v 1.44 2009/05/08 17:22:17 raeburn Exp $ +# $Id: lonmodifycourse.pm,v 1.46 2009/07/31 03:01:31 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -120,17 +120,30 @@ sub print_course_search_page { 'instcodefilter','ownerfilter', 'coursefilter']; my $filter = {}; - my $numtitles; - my $type = 'Course'; + my ($numtitles,$type,$cctitle,$dctitle); + $type = $env{'form.type'}; + if (!defined($env{'form.type'})) { + $type = 'Course'; + } my $action = '/adm/modifycourse'; - my $cctitle = &Apache::lonnet::plaintext('cc',$type); - my $dctitle = &Apache::lonnet::plaintext('dc'); - $r->print( - '
'); +''); } sub print_setquota { @@ -410,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 = (); @@ -636,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.') + .'
'; } } @@ -1082,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". ''; @@ -1105,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",