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

www lon-capa-cvs@mail.lon-capa.org
Mon, 22 Dec 2003 21:44:17 -0000


www		Mon Dec 22 16:44:17 2003 EDT

  Modified files:              
    /loncom/interface	lonmeta.pm 
  Log:
  It was way to easy to set 'custom' copyright if not paying attention
  
  
Index: loncom/interface/lonmeta.pm
diff -u loncom/interface/lonmeta.pm:1.40 loncom/interface/lonmeta.pm:1.41
--- loncom/interface/lonmeta.pm:1.40	Wed Nov 12 16:38:35 2003
+++ loncom/interface/lonmeta.pm	Mon Dec 22 16:44:17 2003
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Metadata display handler
 #
-# $Id: lonmeta.pm,v 1.40 2003/11/12 21:38:35 matthew Exp $
+# $Id: lonmeta.pm,v 1.41 2003/12/22 21:44:17 www Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -490,7 +490,8 @@
        }
        if (m/copyright/) {
 	   $r->print(&Apache::lonpublisher::selectbox($_,'new_'.$_,
-			       $Apache::lonpublisher::metadatafields{$_},
+			       ($Apache::lonpublisher::metadatafields{$_}?
+				$Apache::lonpublisher::metadatafields{$_}:'default'),
 			       \&Apache::loncommon::copyrightdescription,
 			       (&Apache::loncommon::copyrightids)));
        } elsif (m/language/) {