[LON-CAPA-cvs] cvs: loncom(version_2_2_X) /interface loncreatecourse.pm

albertel lon-capa-cvs@mail.lon-capa.org
Sat, 19 Aug 2006 06:14:12 -0000


albertel		Sat Aug 19 02:14:12 2006 EDT

  Modified files:              (Branch: version_2_2_X)
    /loncom/interface	loncreatecourse.pm 
  Log:
  - backport 1.97
  
  
Index: loncom/interface/loncreatecourse.pm
diff -u loncom/interface/loncreatecourse.pm:1.93.2.5 loncom/interface/loncreatecourse.pm:1.93.2.6
--- loncom/interface/loncreatecourse.pm:1.93.2.5	Fri Aug 11 18:11:21 2006
+++ loncom/interface/loncreatecourse.pm	Sat Aug 19 02:14:09 2006
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # Create a course
 #
-# $Id: loncreatecourse.pm,v 1.93.2.5 2006/08/11 22:11:21 albertel Exp $
+# $Id: loncreatecourse.pm,v 1.93.2.6 2006/08/19 06:14:09 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -720,14 +720,18 @@
                      name => &mt('Create courses/groups by uploading an attributes file'),
                      short_description =>
     &mt('Upload an attributes file containing specifications for one or more courses or groups in XML format'),
+                     help => 'Batch_Creation',
                  },
     );
     my $options;
     foreach my $choice (@choices) {
         $options .='    <h3><a href="/adm/createcourse?phase='.
             $choice->{'internal_name'}.'" >'.
-            $choice->{'name'}."</a></h3>\n";
-        $options .= '    '.('&nbsp;'x8).$choice->{'short_description'}.
+            $choice->{'name'}.'</a>';
+        if (exists($choice->{'help'})) {
+            $options .= &Apache::loncommon::help_open_topic($choice->{'help'});
+        }
+        $options .= "</h3>\n".'    '.('&nbsp;'x8).$choice->{'short_description'}.
             "\n";
     }