--- loncom/interface/loncreatecourse.pm 2020/05/22 15:05:30 1.173
+++ loncom/interface/loncreatecourse.pm 2025/03/18 18:57:28 1.178
@@ -1,7 +1,7 @@
# The LearningOnline Network
# Create a course
#
-# $Id: loncreatecourse.pm,v 1.173 2020/05/22 15:05:30 raeburn Exp $
+# $Id: loncreatecourse.pm,v 1.178 2025/03/18 18:57:28 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -80,7 +80,6 @@ use Apache::loncommon;
use Apache::londocs;
use Apache::lonlocal;
use Apache::lonuserutils;
-use Apache::lonclonecourse;
use LONCAPA::batchcreatecourse;
use LONCAPA qw(:DEFAULT :match);
@@ -105,7 +104,7 @@ sub print_course_creation_page {
foreach my $server (sort(keys(%host_servers))) {
$course_home .= qq{};
}
@@ -192,6 +191,10 @@ function validate(formname) {
'ncd' => "Do not clone date parameters",
'prd' => 'Clone date parameters as-is',
'shd' => 'Shift date parameters by number of days',
+ 'dpl' => 'URL shortcuts (for deep linking)',
+ 'nsl' => 'Do not clone URL shortcuts',
+ 'tsl' => 'Transfer URL shortcuts from existing course to new course',
+ 'csl' => 'Create new URL shortcuts in new course',
'assp' => "Assessment Parameters",
'oaas' => "Open all assessments",
'sta' => "starting from:",
@@ -257,6 +260,8 @@ function validate(formname) {
$lt{'cc'} = &mt('(will be assigned Coordinator role)');
$lt{'cgrs'} = &mt('Community Group Settings');
$lt{'cgrq'} = &mt('Set a quota for the total disk space available for storage of community group portfolio files');
+ $lt{'tsl'} = &mt('Transfer URL shortcuts from existing community to new community');
+ $lt{'csl'} = &mt('Create new URL shortcuts in new community');
} elsif ($crstype eq 'Placement') {
$lt{'cinf'} = &mt('Placement Test Information');
$lt{'ctit'} = &mt('Placement Test Title');
@@ -272,6 +277,8 @@ function validate(formname) {
}
my $js = <
+//
$coursebrowserjs
END
@@ -309,7 +318,7 @@ END
'Create_Courses');
$r->print($start_page.$crumbs);
- $r->print('