--- loncom/publisher/lonpubdir.pm 2024/02/28 04:58:02 1.160.2.5.2.3 +++ loncom/publisher/lonpubdir.pm 2024/07/03 21:05:49 1.160.2.6 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Authoring Space Directory Lister # -# $Id: lonpubdir.pm,v 1.160.2.5.2.3 2024/02/28 04:58:02 raeburn Exp $ +# $Id: lonpubdir.pm,v 1.160.2.6 2024/07/03 21:05:49 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -290,7 +290,6 @@ sub handler { } # Print the sorted resources - my %editors = &Apache::loncommon::permitted_editors(); foreach my $filename (@sorted_files) { if ($filehash->{$filename}->{"cmode"}&$dirptr) { # Directories &putdirectory($r, $thisdisfn, $linkdir, $filename, @@ -303,8 +302,7 @@ sub handler { $filehash->{$filename}->{"linkfilename"}, $filehash->{$filename}->{"fulltitle"}, $filehash->{$filename}->{"status"}, - $filehash->{$filename}->{"pubstatus"}, - \%editors); + $filehash->{$filename}->{"pubstatus"}); } } @@ -509,7 +507,14 @@ sub dircontrols { acti => 'Actions for current directory', updc => 'Upload a new document', pick => 'Please select an action to perform using the new filename', + shcu => 'Shortcuts', ); + my %js_lt = &Apache::lonlocal::texthash( + nanf => 'Name of New File', + nans => 'Name of New Subdirectory', + psfn => 'Please specify file name', + ); + &js_escape(\%js_lt); my $mytype = $lt{'type'}; # avoid conflict with " and ' in javascript # Calculate free space in bytes. # $disk_quota is in MB and $current_disk_usage is in kB @@ -544,7 +549,7 @@ sub dircontrols {
$lt{'updc'} - +
@@ -579,9 +584,9 @@ sub dircontrols { -    +   
- Quickactions: + $lt{'shcu'}: @@ -594,26 +599,36 @@ sub dircontrols { @@ -724,8 +739,7 @@ sub putdirectory { $disfilename = ''.&mt('Parent Directory').''; } else { $actionitem = - '
'. + ''. '