--- loncom/publisher/lonpubdir.pm 2004/01/06 02:15:12 1.57
+++ loncom/publisher/lonpubdir.pm 2004/06/07 22:34:12 1.60
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Construction Space Directory Lister
#
-# $Id: lonpubdir.pm,v 1.57 2004/01/06 02:15:12 www Exp $
+# $Id: lonpubdir.pm,v 1.60 2004/06/07 22:34:12 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -222,8 +222,15 @@ ENDPUBDIRSCRIPT
$r->print('
'.&mt('Co-Author').': '.$uname.' at '.$udom.
'
');
}
- $r->print(
- &Apache::lonhtmlcommon::crumbs($uname.'/'.$thisdisfn.'/','_top','/priv').'
');
+ my $formaction='/priv/'.$uname.'/'.$thisdisfn.'/';
+ $formaction=~s/\/+/\//g;
+ $r->print('');
+ &Apache::lonhtmlcommon::store_recent('construct',$formaction,$formaction);
}
#
@@ -286,7 +293,7 @@ sub putdirectory {
''.&mt('Go to ...').' | '.
''.
$disfilename.' | '.
- ''.($kaputt?'':'').$Apache::lonpublisher::metadatafields{'title'}.' '.
+ ' | '.($kaputt?&Apache::lonhtmlcommon::authorbombs($resdir.'/'.$disfilename.'/'):'').$Apache::lonpublisher::metadatafields{'title'}.' '.
$Apache::lonpublisher::metadatafields{'subject'}.' '.
$Apache::lonpublisher::metadatafields{'keywords'}.' | '.
''.&Apache::lonlocal::locallocaltime($modtime).' | '.
@@ -305,15 +312,17 @@ sub putresource {
my $status=&mt('Unpublished');
my $bgcolor='#FFAA99';
my $title=' ';
+ my $publish_button=&mt('Publish');
if (-e $resdir.'/'.$filename) {
my ($rdev,$rino,$rmode,$rnlink,
$ruid,$rgid,$rrdev,$rsize,
$ratime,$rmtime,$rctime,
$rblksize,$rblocks)=stat($resdir.'/'.$filename);
+ $publish_button=&mt('Re-Publish');
if ($rmtime>=$cmtime) {
$status=&mt('Published').'
'.
&mt(&getCopyRightString($targetdir.'/'.$filename));
- $bgcolor='#CCFF88';
+ $bgcolor='#CCFF88';
if (&Apache::lonnet::metadata($targetdir.'/'.$filename,'obsolete')) {
$status=&mt('Obsolete');
$bgcolor='#AAAAAA';
@@ -355,7 +364,7 @@ sub putresource {
''.($filename=~/[\#\~]$/?' ':
' | ').
''.&mt('Publish').''.
+ $uname.$thisdisfn.'/'.$filename.'">'.$publish_button.''.
' | '.
''.
''.
|