--- loncom/publisher/lonpubdir.pm 2004/01/03 15:57:11 1.54
+++ loncom/publisher/lonpubdir.pm 2004/01/04 00:50:11 1.55
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Construction Space Directory Lister
#
-# $Id: lonpubdir.pm,v 1.54 2004/01/03 15:57:11 www Exp $
+# $Id: lonpubdir.pm,v 1.55 2004/01/04 00:50:11 www Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -245,7 +245,10 @@ sub getTitleString {
return $title;
}
-
+sub getCopyRightString {
+ my $fullname = shift;
+ return &Apache::lonnet::metadata($fullname, 'copyright');
+}
#
# Put out a directory table row:
# putdirectory(r, base, here, dirname, modtime)
@@ -308,7 +311,8 @@ sub putresource {
$ratime,$rmtime,$rctime,
$rblksize,$rblocks)=stat($resdir.'/'.$filename);
if ($rmtime>=$cmtime) {
- $status=&mt('Published');
+ $status=&mt('Published').'
'.
+ &mt(&getCopyRightString($targetdir.'/'.$filename));
$bgcolor='#CCFF88';
if (&Apache::lonnet::metadata($targetdir.'/'.$filename,'obsolete')) {
$status=&mt('Obsolete');
@@ -316,12 +320,13 @@ sub putresource {
}
$title=''.
- getTitleString($targetdir.'/'.$filename, 'title').'';
+ &getTitleString($targetdir.'/'.$filename).'';
} else {
- $status=&mt('Modified');
+ $status=&mt('Modified').'
'.
+ &mt(&getCopyRightString($targetdir.'/'.$filename));
$bgcolor='#FFFF77';
$title=''.
- getTitleString($targetdir.'/'.$filename,'title').'';
+ &getTitleString($targetdir.'/'.$filename).'';
if (&Apache::loncommon::fileembstyle(($filename=~/\.(\w+)$/)) eq 'ssi') {
$status.='