--- loncom/publisher/lonpubdir.pm 2005/05/28 02:18:03 1.82
+++ loncom/publisher/lonpubdir.pm 2005/07/12 14:56:36 1.85
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Construction Space Directory Lister
#
-# $Id: lonpubdir.pm,v 1.82 2005/05/28 02:18:03 www Exp $
+# $Id: lonpubdir.pm,v 1.85 2005/07/12 14:56:36 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -111,7 +111,7 @@ sub handler {
'
'.&mt('Title').' | '.
''.&mt('Status').' | '.
''.&mt('Last Modified').
- ' | ');
+ ''."\n");
my $filename;
my $dirptr=16384; # Mask indicating a directory in stat.cmode.
@@ -319,21 +319,53 @@ ENDPUBDIRSCRIPT
sub dircontrols {
my ($r,$uname,$udom,$thisdisfn) = @_;
+ my %lt=&Apache::lonlocal::texthash(
+ cnpd => 'Cannot publish directory',
+ cnrd => 'Cannot retrieve directory',
+ mcdi => 'Must create new subdirectory inside a directory',
+ pubr => 'Publish this Resource',
+ pubd => 'Publish this Directory',
+ rtrv => 'Retrieve Old Version',
+ pubs => 'Publish with Subdirectories',
+ list => 'List Directory',
+ uplo => 'Upload file',
+ dele => 'Delete',
+ edit => 'Edit Catalog Information',
+ sela => 'Select Action',
+ nfil => 'New file',
+ nhtm => 'New HTML file',
+ nprb => 'New problem',
+ npag => 'New assembled page',
+ nseq => 'New assembled sequence',
+ ncrf => 'New custom rights file',
+ nsty => 'New style file',
+ nlib => 'New library file',
+ nsub => 'New subdirectory',
+ renm => 'Rename current file to',
+ move => 'Move current file to',
+ copy => 'Copy current file to',
+ type => 'Type Name Here',
+ go => 'Go',
+ prnt => 'Print contents of directory',
+ crea => 'Create a new directory or LON-CAPA document',
+ acti => 'Actions for current directory',
+ updc => 'Upload a new document'
+ );
$r->print(<
- Actions for current directory |
- Upload a new document |
- Create a new directory or LON-CAPA document |
+ $lt{'acti'} |
+ $lt{'updc'} |
+ $lt{'crea'} |
@@ -349,23 +381,24 @@ sub dircontrols {
|
@@ -381,7 +414,7 @@ sub pubbuttons {
'');
}
@@ -480,7 +513,7 @@ sub putdirectory {
$actionitem =
' |