--- loncom/automation/batchcreatecourse.pm 2016/09/01 01:05:05 1.40.2.1 +++ loncom/automation/batchcreatecourse.pm 2016/08/25 22:33:06 1.42 @@ -1,5 +1,5 @@ # -# $Id: batchcreatecourse.pm,v 1.40.2.1 2016/09/01 01:05:05 raeburn Exp $ +# $Id: batchcreatecourse.pm,v 1.42 2016/08/25 22:33:06 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -164,7 +164,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. @@ -429,7 +429,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'}; @@ -452,6 +456,8 @@ sub build_course { if ($firstres eq '') { if ($crstype eq 'Community') { $firstres = 'nav'; + } elsif ($crstype eq 'Placement') { + $firstres = 'blank'; } else { $firstres = 'syl'; }