--- loncom/automation/batchcreatecourse.pm 2014/01/03 18:42:16 1.40 +++ loncom/automation/batchcreatecourse.pm 2016/04/02 04:30:47 1.41 @@ -1,5 +1,5 @@ # -# $Id: batchcreatecourse.pm,v 1.40 2014/01/03 18:42:16 raeburn Exp $ +# $Id: batchcreatecourse.pm,v 1.41 2016/04/02 04:30:47 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -163,7 +163,7 @@ use strict; # firstres can be nav, syl, or blank for "Navigate Contents", Syllabus, or # no entry respectively. # -# crstype can be Course or Community +# crstype can be Course, Community or Placement # # crsquota is the total disk space permitted for course group portfolio files # in all course groups. @@ -428,7 +428,11 @@ sub build_course { $rolenames = $longroles->{'Community'}; } } else { - $crstype = 'Course'; + if ($details->{'crstype'} eq 'Placement') { + $crstype = $details->{'crstype'}; + } else { + $crstype = 'Course'; + } $ccrole = 'cc'; if (ref($longroles) eq 'HASH') { $rolenames = $longroles->{'Course'}; @@ -451,6 +455,8 @@ sub build_course { if ($firstres eq '') { if ($crstype eq 'Community') { $firstres = 'nav'; + } elsif ($crstype eq 'Placement') { + $firstres = 'blank'; } else { $firstres = 'syl'; }