--- loncom/interface/lonmeta.pm 2003/03/14 19:29:36 1.28
+++ loncom/interface/lonmeta.pm 2003/04/12 15:57:30 1.29
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Metadata display handler
#
-# $Id: lonmeta.pm,v 1.28 2003/03/14 19:29:36 albertel Exp $
+# $Id: lonmeta.pm,v 1.29 2003/04/12 15:57:30 www Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -55,6 +55,8 @@ sub dynamicmeta {
my %cnt;
my %listitems=('count' => 'add',
'course' => 'add',
+ 'goto' => 'add',
+ 'comefrom' => 'add',
'avetries' => 'avg',
'stdno' => 'add',
'difficulty' => 'avg',
@@ -115,6 +117,15 @@ sub alttag {
{ return 'No information available'; }
}
+# -------------------------------------------------------------- Author display
+
+sub authordisplay {
+ my ($aname,$adom)=@_;
+ return &Apache::loncommon::aboutmewrapper(
+ &Apache::loncommon::plainname($aname,$adom),
+ $aname,$adom).' ['.$aname.'@'.$adom.']';
+}
+
# -------------------------------------------------------------- Pretty display
sub evalgraph {
@@ -210,6 +221,10 @@ my $mime=&Apache::loncommon::filedescrip
my $disuri=&Apache::lonnet::declutter($uri);
$disuri=~s/\.meta$//;
my $currentversion=&Apache::lonnet::getversion($disuri);
+my $author=$content{'author'};
+$author=~s/(\w+)(\:|\@)(\w+)/&authordisplay($1,$3)/gse;
+my $owner=$content{'owner'};
+$owner=~s/(\w+)(\:|\@)(\w+)/&authordisplay($1,$3)/gse;
my $versiondisplay='';
if ($thisversion) {
$versiondisplay='Version: '.$thisversion.
@@ -217,6 +232,11 @@ if ($thisversion) {
} else {
$versiondisplay='Version: '.$currentversion;
}
+my $customdistributionfile='';
+if ($content{'customdistributionfile'}) {
+ $customdistributionfile=''.$content{'customdistributionfile'}.'';
+}
my $bodytag=&Apache::loncommon::bodytag
('Catalog Information','','','',$resdomain);
$r->print(<
Author(s) | -$content{'author'} | $author |
Subject | $content{'subject'} | |
Keyword(s) | @@ -245,9 +265,11 @@ $versiondisplay||
Last Revision Date | $lastrevisiondate | |
Publisher/Owner | -$content{'owner'} | $owner |
Copyright/Distribution | -$content{'copyright'} + | $content{'copyright'} |
Custom Distribution File | +$customdistributionfile |