--- loncom/publisher/lonpubdir.pm 2003/12/30 22:19:18 1.50
+++ loncom/publisher/lonpubdir.pm 2004/01/03 03:19:43 1.52
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Construction Space Directory Lister
#
-# $Id: lonpubdir.pm,v 1.50 2003/12/30 22:19:18 www Exp $
+# $Id: lonpubdir.pm,v 1.52 2004/01/03 03:19:43 www Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -270,12 +270,20 @@ sub putdirectory {
foreach (keys %{$bombs}) {
if ($_=~/^$resdir\/$disfilename\//) { $kaputt=1; last; }
}
+ %Apache::lonpublisher::metadatafields=();
+ %Apache::lonpublisher::metadatakeys=();
+ my $construct=$here;
+ $construct=~s/^\/priv\/(\w+)$/\/home\/$1\/public_html/;
+ &Apache::lonpublisher::metaeval(&Apache::lonnet::getfile(
+ $construct.'/'.$dirname.'/default.meta'
+ ));
$r->print('
'.
''.&mt('Go to ...').' | '.
''.
$disfilename.' | '.
- ''.($kaputt?'':' ').' | '.
- ' | '.
+ ''.($kaputt?'':'').$Apache::lonpublisher::metadatafields{'title'}.' '.
+ $Apache::lonpublisher::metadatafields{'subject'}.' '.
+ $Apache::lonpublisher::metadatafields{'keywords'}.' | '.
''.&Apache::lonlocal::locallocaltime($modtime).' | '.
"
\n");
}
@@ -306,20 +314,20 @@ sub putresource {
}
$title=''.
- ($$bombs{$targetdir.'/'.$filename}?'':'').
getTitleString($targetdir.'/'.$filename, 'title').'';
} else {
$status=&mt('Modified');
$bgcolor='#FFFFCC';
$title=''.
- ($$bombs{$targetdir.'/'.$filename}?'':'').
getTitleString($targetdir.'/'.$filename,'title').'';
if (&Apache::loncommon::fileembstyle(($filename=~/\.(\w+)$/)) eq 'ssi') {
$status.='
'.&mt('Diffs').'';
}
- }
+ }
+ $title.='
'.
+ ($$bombs{$targetdir.'/'.$filename}?'':'Edit Metadata').'';
$status.='
'.&mt('Retrieve').'';
}