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

www lon-capa-cvs@mail.lon-capa.org
Tue, 15 Jul 2003 19:04:31 -0000


www		Tue Jul 15 15:04:31 2003 EDT

  Modified files:              
    /loncom/interface	lonmeta.pm 
  Log:
  Display cleanup.
  
  
Index: loncom/interface/lonmeta.pm
diff -u loncom/interface/lonmeta.pm:1.32 loncom/interface/lonmeta.pm:1.33
--- loncom/interface/lonmeta.pm:1.32	Mon Jun 30 13:17:30 2003
+++ loncom/interface/lonmeta.pm	Tue Jul 15 15:04:31 2003
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Metadata display handler
 #
-# $Id: lonmeta.pm,v 1.32 2003/06/30 17:17:30 albertel Exp $
+# $Id: lonmeta.pm,v 1.33 2003/07/15 19:04:31 www Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -290,6 +290,7 @@
   delete($content{'lastrevisiondate'});
   delete($content{'owner'});
   delete($content{'copyright'});
+  delete($content{'customdistributionfile'});
   if ($ENV{'user.adv'}) {
 # ------------------------------------------------------------ Dynamic Metadata
    $r->print(
@@ -382,20 +383,22 @@
  '<h3>Additional Metadata (non-standard, parameters, exports)</h3>');
    foreach (sort keys %content) {
       my $name=$_;
-      my $display=&Apache::lonnet::metadata($uri,$name.'.display');
-      unless ($display) { $display=$name; };
-      my $otherinfo='';
-      foreach ('name','part','type','default') {
-          if (defined(&Apache::lonnet::metadata($uri,$name.'.'.$_))) {
-             $otherinfo.=' '.$_.'='.
-		 &Apache::lonnet::metadata($uri,$name.'.'.$_).'; ';
-          }
+      unless ($name=~/\.display$/) {
+	  my $display=&Apache::lonnet::metadata($uri,$name.'.display');
+	  unless ($display) { $display=$name; };
+	  my $otherinfo='';
+	  foreach ('name','part','type','default') {
+	      if (defined(&Apache::lonnet::metadata($uri,$name.'.'.$_))) {
+		  $otherinfo.=' '.$_.'='.
+		      &Apache::lonnet::metadata($uri,$name.'.'.$_).'; ';
+	      }
+	  }
+	  $r->print('<b>'.$display.':</b> '.$content{$name});
+	  if ($otherinfo) {
+	      $r->print(' ('.$otherinfo.')');
+	  }
+	  $r->print("<br>\n");
       }
-      $r->print('<b>'.$display.':</b> '.$content{$name});
-      if ($otherinfo) {
-         $r->print(' ('.$otherinfo.')');
-      }
-      $r->print("<br>\n");
    }
   }
 # ===================================================== End Resource Space Call