--- loncom/publisher/lonpubdir.pm 2004/12/02 19:45:39 1.68 +++ loncom/publisher/lonpubdir.pm 2005/02/28 08:22:09 1.77 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Construction Space Directory Lister # -# $Id: lonpubdir.pm,v 1.68 2004/12/02 19:45:39 raeburn Exp $ +# $Id: lonpubdir.pm,v 1.77 2005/02/28 08:22:09 albertel 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. @@ -189,8 +191,8 @@ sub startpage { my $currdir = '/priv/'.$uname.$thisdisfn; &Apache::loncommon::content_type($r,'text/html'); $r->send_http_header; - - $r->print('LON-CAPA Construction Space'); + my $html=&Apache::lonxml::xmlbegin(); + $r->print($html.'LON-CAPA Construction Space'); my $pagetitle; my $formaction='/priv/'.$uname.$thisdisfn.'/'; @@ -211,7 +213,8 @@ sub startpage { $r->print($pagetitle); } my $pubdirscript=(< +