--- loncom/interface/loncreatecourse.pm 2006/06/03 21:05:04 1.91 +++ loncom/interface/loncreatecourse.pm 2006/06/28 19:31:48 1.93.2.1 @@ -1,7 +1,7 @@ # The LearningOnline Network # Create a course # -# $Id: loncreatecourse.pm,v 1.91 2006/06/03 21:05:04 albertel Exp $ +# $Id: loncreatecourse.pm,v 1.93.2.1 2006/06/28 19:31:48 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -238,9 +238,6 @@ sub copydbfiles { unless ($_=~/^(nohist\_|discussiontimes|classlist|versionupdate|resourcedata|\Q$origcrs_discussion\E|slots|slot_reservations|gradingqueue|reviewqueue|CODEs)/) { ©db($origcrsid,$newcrsid,$_); - my $histfile=$_; - $histfile=~s/\.db$/\.hist/; - ©file($origcrsid,$newcrsid,$histfile); } } } @@ -259,10 +256,11 @@ sub copycoursefiles { sub print_course_creation_page { my $r=shift; - my $crstype = 'Group'; - if ($env{'form.phase'} eq 'courseone') { - $crstype = 'Course'; - } + my $crstype = 'Course'; +# my $crstype = 'Group'; +# if ($env{'form.phase'} eq 'courseone') { +# $crstype = 'Course'; +# } my $defdom=$env{'request.role.domain'}; my %host_servers = &Apache::loncommon::get_library_servers($defdom); my $course_home = '$lt{'no'}

+

+

$lt{'cgrs'}

+$lt{'cgrq'} +Mb +


$lt{'cc'}

@@ -741,6 +748,11 @@ $lt{'asov'}.

+

+

$lt{'grts'}

+$lt{'grtq'} +Mb +


$lt{'gc'}

@@ -817,6 +829,7 @@ sub create_course { course_home => $env{'form.course_home'}, nonstandard => $env{'form.nonstandard'}, crscode => $env{'form.crscode'}, + crsquota => $env{'form.crsquota'}, clonecourse => $env{'form.clonecourse'}, clonedomain => $env{'form.clonedomain'}, crsid => $env{'form.crsid'}, @@ -969,6 +982,11 @@ sub construct_course { if ($args->{'crscode'}) { $cenv{'internal.coursecode'}=$args->{'crscode'}; } + if ($args->{'crsquota'} ne '') { + $cenv{'internal.coursequota'}=$args->{'crsquota'}; + } else { + $cenv{'internal.coursequota'}=$args->{'crsquota'} = 20; + } if ($args->{'ccuname'}) { $cenv{'internal.courseowner'} = $args->{'ccuname'}; } else { @@ -1179,11 +1197,11 @@ sub print_intro_page { short_description => &mt('Create a new course by completing an online form.'), }, - { internal_name => 'groupone', - name => &mt('Create a single collaborative group space '), - short_description => - &mt('Create a new group space for non-course use by completing an online form .'), - }, +# { internal_name => 'groupone', +# name => &mt('Create a single collaborative group space '), +# short_description => +# &mt('Create a new group space for non-course use by completing an online form .'), +# }, { internal_name => 'batchone', name => &mt('Create courses/groups by uploading an attributes file'), short_description =>