--- loncom/interface/lonmeta.pm	2002/08/09 19:49:30	1.16
+++ loncom/interface/lonmeta.pm	2002/09/11 19:37:51	1.19
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Metadata display handler
 #
-# $Id: lonmeta.pm,v 1.16 2002/08/09 19:49:30 albertel Exp $
+# $Id: lonmeta.pm,v 1.19 2002/09/11 19:37:51 www Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -44,7 +44,7 @@ sub dynamicmeta {
     my $url=&Apache::lonnet::declutter(shift);
     $url=~s/\.meta$//;
     my ($adomain,$aauthor)=($url=~/^(\w+)\/(\w+)\//);
-    my $regexp=&Apache::lonnet::escape($url);
+    my $regexp=$url;
     $regexp=~s/(\W)/\\$1/g;
     $regexp='___'.$regexp.'___';
     my %evaldata=&Apache::lonnet::dump('nohist_resevaldata',$adomain,
@@ -157,7 +157,7 @@ sub handler {
   foreach (split(/\,/,&Apache::lonnet::metadata($uri,'keys'))) {
       $content{$_}=&Apache::lonnet::metadata($uri,$_);
   }
-
+  my ($resdomain)=(&Apache::lonnet::declutter($uri)=~/^(\w+)\//);
 # ------------------------------------------------------------------ Hide stuff
 
   unless ($ENV{'user.adv'}) {
@@ -174,10 +174,11 @@ my $language=&Apache::loncommon::languag
 my $mime=&Apache::loncommon::filedescription($content{'mime'}); 
 my $disuri=&Apache::lonnet::declutter($uri);
   $disuri=~s/\.meta$//;
+my $bodytag=&Apache::loncommon::bodytag
+            ('Catalog Information','','','',$resdomain);
   $r->print(<<ENDHEAD);
 <html><head><title>Catalog Information</title></head>
-<body bgcolor="#FFFFFF">
-<h1>Catalog Information</h1>
+$bodytag
 <h2>$content{'title'}</h2>
 <h3><tt>$disuri</tt></h3>
 <table cellspacing=2 border=0>