--- loncom/publisher/lonpubdir.pm 2004/11/30 19:08:18 1.66
+++ loncom/publisher/lonpubdir.pm 2004/12/10 18:26:49 1.72
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Construction Space Directory Lister
#
-# $Id: lonpubdir.pm,v 1.66 2004/11/30 19:08:18 raeburn Exp $
+# $Id: lonpubdir.pm,v 1.72 2004/12/10 18:26:49 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -94,6 +94,8 @@ sub handler {
if ($ENV{'environment.remote'} eq 'off') {
&dircontrols($r,$uname,$udom,$thisdisfn); # Put out actions for directory,
# browse/upload + new file page.
+ } else {
+ &pubbuttons($r,$uname,$thisdisfn);
}
&resourceactions($r,$uname,$udom,$thisdisfn); #Put out form used for printing/deletion etc.
@@ -193,19 +195,19 @@ sub startpage {
$r->print('
LON-CAPA Construction Space');
my $pagetitle;
- my $formaction='/priv/'.$uname.'/'.$thisdisfn.'/';
+ my $formaction='/priv/'.$uname.$thisdisfn.'/';
$formaction=~s/\/+/\//g;
$pagetitle .= &Apache::loncommon::help_open_menu('','','','',3,'Authoring').
- 'Construction Space: '.
+ 'Construction Space: '.
'';
&Apache::lonhtmlcommon::store_recent('construct',$formaction,$formaction);
if ($ENV{'environment.remote'} eq 'off') {
- $ENV{'request.noversionuri'}=$currdir;
+ $ENV{'request.noversionuri'}=$currdir.'/';
$r->print(&Apache::loncommon::bodytag('Construction Space',undef,undef,undef,undef,undef,$pagetitle));
} else {
$r->print($pagetitle);
@@ -214,7 +216,7 @@ sub startpage {
ENDPUBDIRSCRIPT
$r->print($pubdirscript);
@@ -370,9 +343,9 @@ sub dircontrols {
$r->print(<
- Actions for current directory |
- Upload a new document |
- Create a new directory or LON-CAPA document |
+ Actions for current directory |
+ Upload a new document |
+ Create a new directory or LON-CAPA document |
@@ -393,8 +366,6 @@ sub dircontrols {
|
@@ -409,7 +380,7 @@ sub dircontrols {
|
-
-
END
}
+sub pubbuttons {
+ my ($r,$uname,$thisdisfn) = @_;
+ $r->print('');
+}
+
sub resourceactions {
my ($r,$uname,$udom,$thisdisfn) = @_;
$r->print(<
';
$$numdir ++;
@@ -647,20 +630,16 @@ sub create_pubselect {
';
+ $uname.$thisdisfn.'/'.$filename.'">';
$$numres ++;
}