--- loncom/publisher/lonpubdir.pm 2004/01/03 15:11:37 1.53
+++ 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.53 2004/01/03 15:11:37 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)
@@ -281,8 +284,8 @@ sub putdirectory {
'
| '.
''.&mt('Go to ...').' | '.
- ''.
- $disfilename.' | '.
+ ''.
+ $disfilename.' | '.
''.($kaputt?'':'').$Apache::lonpublisher::metadatafields{'title'}.' '.
$Apache::lonpublisher::metadatafields{'subject'}.' '.
$Apache::lonpublisher::metadatafields{'keywords'}.' | '.
@@ -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.='
'.&mt('Edit').')';
+ $editlink='
('.&mt('Edit').')';
}
if ($filename=~/\.(problem|exam|quiz|assess|survey|form|library)$/) {
$editlink=' ('.&mt('EditXML').')';
- $editlink2=' ('.&mt('Edit').')';
+ $editlink2='
('.&mt('Edit').')';
}
if ($filename=~/\.(zip|tar|bz2|gz|tar.gz|tar.bz2|tgz)$/) {
$editlink=' ('.&mt('Publish').''.
''.
- ''.
+ ' | '.
''.
- $filename.''.$editlink2.$editlink.
+ $filename.''.$editlink2.$editlink.
' | '.
''.$title.' | '.
''.$status.' | '.