--- loncom/interface/lonmeta.pm 2002/10/18 13:49:49 1.22 +++ loncom/interface/lonmeta.pm 2002/10/20 18:40:00 1.23 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Metadata display handler # -# $Id: lonmeta.pm,v 1.22 2002/10/18 13:49:49 www Exp $ +# $Id: lonmeta.pm,v 1.23 2002/10/20 18:40:00 www Exp $ # # Copyright Michigan State University Board of Trustees # @@ -37,6 +37,8 @@ use strict; use Apache::Constants qw(:common); use Apache::lonnet(); use Apache::loncommon(); +use Apache::lonmsg; +use Apache::lonpublisher; # ----------------------------------------- Fetch and evaluate dynamic metadata @@ -149,6 +151,8 @@ sub handler { my $uri=$r->uri; + unless ($uri=~/^\/\~/) { +# =========================================== This is not in construction space my ($resdomain,$resuser)= (&Apache::lonnet::declutter($uri)=~/^(\w+)\/(\w+)\//); @@ -179,7 +183,7 @@ sub handler { } # --------------------------------------------------------------- Render Output - my ($thisversion)=($uri=~/\.(\d+)\.(\w+)\.meta/); + my ($thisversion)=($uri=~/\.(\d+)\.(\w+)\.meta$/); my $creationdate=localtime( &Apache::loncommon::unsqltime($content{'creationdate'})); my $lastrevisiondate=localtime( @@ -294,7 +298,17 @@ $dynmeta{$_}." \n"); || ($ENV{'user.role.ca./'.$1.'/'.$2})) { $r->print( '
'.$dynmeta{'comments'}.''); + '
'.$dynmeta{'comments'}.''); + $r->print( + '