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

www lon-capa-cvs@mail.lon-capa.org
Wed, 01 Feb 2006 22:46:11 -0000


www		Wed Feb  1 17:46:11 2006 EDT

  Modified files:              
    /loncom/interface	lonpickcourse.pm 
  Log:
  Typo and getting rid of lowercasing
  
  
Index: loncom/interface/lonpickcourse.pm
diff -u loncom/interface/lonpickcourse.pm:1.37 loncom/interface/lonpickcourse.pm:1.38
--- loncom/interface/lonpickcourse.pm:1.37	Tue Jan 10 16:36:45 2006
+++ loncom/interface/lonpickcourse.pm	Wed Feb  1 17:46:09 2006
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # Pick a course
 #
-# $Id: lonpickcourse.pm,v 1.37 2006/01/10 21:36:45 albertel Exp $
+# $Id: lonpickcourse.pm,v 1.38 2006/02/01 22:46:09 www Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -131,7 +131,7 @@
 				       'cde' => 'Course Description',
 				       'cdo' => 'Course Domain',
                                        'cin' => 'Course Institutional Code',
-                                       'cow' => "Course Owner's usename");
+                                       'cow' => "Course Owner's Username");
     my ($name_code,$name_input);
     if (defined($env{'form.cnameelement'}) && $env{'form.cnameelement'} ne '') {
 	$name_code = "opener.document.$env{'form.form'}.$env{'form.cnameelement'}.value=cdesc;";
@@ -287,12 +287,12 @@
         my $numcourses = keys(%courses);
 	foreach my $course (keys(%courses)) {
             my $descr;
-            if ($courses{$course} =~ m/^([^:]*):/) {
+            if ($courses{$course} =~ m/^([^:]*):/i) {
                 $descr = &Apache::lonnet::unescape($1);
             } else {
                 $descr = &Apache::lonnet::unescape($courses{$course});
             }
-            my $description = lc($descr);
+            my $description = $descr;
             push (@{$by_descrip{$description}}, $course);
 	}
         if ($numcourses > 1 && $multiple) {