--- loncom/interface/lonmeta.pm 2002/10/18 13:49:49 1.22 +++ loncom/interface/lonmeta.pm 2003/02/18 21:17:00 1.25 @@ -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.25 2003/02/18 21:17: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 @@ -96,6 +98,13 @@ sub dynamicmeta { return %returnhash; } +# ------------------------------------- Try to make an alt tag if there is none + +sub alttag { + my $src=shift; + return 'None'; +} + # -------------------------------------------------------------- Pretty display sub evalgraph { @@ -149,6 +158,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 +190,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 +305,17 @@ $dynmeta{$_}." \n"); || ($ENV{'user.role.ca./'.$1.'/'.$2})) { $r->print( '
'.$dynmeta{'comments'}.''); + '
'.$dynmeta{'comments'}.''); + $r->print( + '