--- loncom/interface/lonmeta.pm 2003/12/30 14:57:49 1.49 +++ loncom/interface/lonmeta.pm 2003/12/31 02:33:27 1.52 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Metadata display handler # -# $Id: lonmeta.pm,v 1.49 2003/12/30 14:57:49 www Exp $ +# $Id: lonmeta.pm,v 1.52 2003/12/31 02:33:27 www Exp $ # # Copyright Michigan State University Board of Trustees # @@ -433,9 +433,8 @@ sub handler { # --------------------------------------------------------------- Render Output # displayed url my ($thisversion)=($uri=~/\.(\d+)\.(\w+)\.meta$/); + $uri=~s/\.meta$//; my $disuri=&Apache::lonnet::clutter($uri); - $disuri=~s/\.meta$//; - $disuri=&Apache::lonhtmlcommon::crumbs($disuri); # version my $currentversion=&Apache::lonnet::getversion($disuri); my $versiondisplay=''; @@ -446,6 +445,8 @@ sub handler { } else { $versiondisplay='Version: '.$currentversion; } +# crumbify displayed URL + $disuri=&Apache::lonhtmlcommon::crumbs($disuri); # obsolete my $obsolete=$content{'obsolete'}; my $obsoletewarning=''; @@ -526,16 +527,15 @@ ENDHEAD &prettyprint($dynmeta{$_})."\n"); } $r->print(''); - $disuri=~/^(\w+)\/(\w+)\//; + $uri=~/^\/res\/(\w+)\/(\w+)\//; if ((($ENV{'user.domain'} eq $1) && ($ENV{'user.name'} eq $2)) || ($ENV{'user.role.ca./'.$1.'/'.$2})) { - $r->print( - '
'.$dynmeta{'comments'}.''); - $r->print('