[LON-CAPA-cvs] cvs: loncom /interface courseprefs.pm

raeburn raeburn at source.lon-capa.org
Sat Sep 1 18:28:55 EDT 2018


raeburn		Sat Sep  1 22:28:55 2018 EDT

  Modified files:              
    /loncom/interface	courseprefs.pm 
  Log:
  - Prevent saving "Course Settings" ("General course settings") displayed
    from deleting externalsyllabus URL.
  
  
Index: loncom/interface/courseprefs.pm
diff -u loncom/interface/courseprefs.pm:1.87 loncom/interface/courseprefs.pm:1.88
--- loncom/interface/courseprefs.pm:1.87	Tue May  8 01:48:18 2018
+++ loncom/interface/courseprefs.pm	Sat Sep  1 22:28:55 2018
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Handler to set configuration settings for a course
 #
-# $Id: courseprefs.pm,v 1.87 2018/05/08 01:48:18 raeburn Exp $
+# $Id: courseprefs.pm,v 1.88 2018/09/01 22:28:55 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -375,7 +375,7 @@
                      help => 'Course_Prefs_General',
                      ordered => ['owner','co-owners','loncaparev','description',
                                  'clonedfrom','courseid','uniquecode','categories',
-                                 'hidefromcat','externalsyllabus','cloners','url',
+                                 'hidefromcat','syllabus','cloners','url',
                                  'rolenames'],
                      itemtext => {
                                    'owner'            => $lt{'ownr'},
@@ -386,7 +386,7 @@
                                    'categories'       => $lt{'catg'},
                                    'hidefromcat'      => $lt{'excc'},
                                    'cloners'          => $lt{'clon'}, 
-                                   'externalsyllabus' => 'Syllabus status',
+                                   'syllabus'         => 'Syllabus status',
                                    'url'              => 'Top Level Map',
                                    'rolenames'        => $lt{'rept'},
                                    'loncaparev'       => $lt{'lcrv'},
@@ -780,7 +780,8 @@
                                  (!$can_categorize));
                         next if (($entry eq 'loncaparev') || 
                                 ($entry eq 'owner') ||
-                                ($entry eq 'clonedfrom'));
+                                ($entry eq 'clonedfrom') ||
+                                ($entry eq 'syllabus'));
                         push(@ordered,$entry);
                     }
                 } elsif ($action eq 'classlists') {
@@ -2193,8 +2194,8 @@
                    size  => '20',
                    advanced => 1
                         },
-        'externalsyllabus' => {
-                   text => '<b>'.&mt($itemtext->{'externalsyllabus'}).'</b><br />'.
+        'syllabus' => {
+                   text => '<b>'.&mt($itemtext->{'syllabus'}).'</b><br />'.
                            &mt('(Syllabus type in use)').(' ' x2).
                            $editsyllabus,
                         },
@@ -2439,7 +2440,7 @@
                     $datatable .= &manage_coownership($cnum,$cdom,\@currcoown,$noedit);
                 }
             }
-        } elsif ($item eq 'externalsyllabus') {
+        } elsif ($item eq 'syllabus') {
             my $external = $env{'course.'.$env{'request.course.id'}.'.externalsyllabus'};
             my $uploaded = $env{'course.'.$env{'request.course.id'}.'.uploadedsyllabus'};
             my $minimal =  $env{'course.'.$env{'request.course.id'}.'.minimalsyllabus'};




More information about the LON-CAPA-cvs mailing list