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

banghart lon-capa-cvs@mail.lon-capa.org
Mon, 15 Jan 2007 23:39:17 -0000


banghart		Mon Jan 15 18:39:17 2007 EDT

  Modified files:              
    /loncom/interface	lonmeta.pm 
  Log:
  	Don't add "Not Specified" to student typed entries for metadata.
  
  
Index: loncom/interface/lonmeta.pm
diff -u loncom/interface/lonmeta.pm:1.197 loncom/interface/lonmeta.pm:1.198
--- loncom/interface/lonmeta.pm:1.197	Mon Jan 15 15:51:52 2007
+++ loncom/interface/lonmeta.pm	Mon Jan 15 18:39:16 2007
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Metadata display handler
 #
-# $Id: lonmeta.pm,v 1.197 2007/01/15 20:51:52 banghart Exp $
+# $Id: lonmeta.pm,v 1.198 2007/01/15 23:39:16 banghart Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -598,7 +598,9 @@
                 if ($meta_options{$item}) {
                     push(@cur_values_inst,$item);
                 } else {
-                    $cur_values_stu .= $item.',';
+                    if ($item ne 'Not Specified') {
+                        $cur_values_stu .= $item.',';
+                    }
                 }
             }
             my @key_order = sort(keys(%meta_options));