--- loncom/publisher/lonpubdir.pm 2005/07/14 21:31:34 1.88 +++ loncom/publisher/lonpubdir.pm 2006/04/06 20:52:50 1.89 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Construction Space Directory Lister # -# $Id: lonpubdir.pm,v 1.88 2005/07/14 21:31:34 raeburn Exp $ +# $Id: lonpubdir.pm,v 1.89 2006/04/06 20:52:50 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -137,7 +137,7 @@ sub handler { } closedir(DIR); - $r->print(''); + $r->print(''.&Apache::loncommon::end_page()); return OK; } # @@ -191,13 +191,10 @@ sub startpage { my $currdir = '/priv/'.$uname.$thisdisfn; &Apache::loncommon::content_type($r,'text/html'); $r->send_http_header; - my $html=&Apache::lonxml::xmlbegin(); - $r->print($html.'LON-CAPA Construction Space'); - my $pagetitle; my $formaction='/priv/'.$uname.$thisdisfn.'/'; - $formaction=~s/\/+/\//g; - $pagetitle .= &Apache::loncommon::help_open_menu('','','','',3,'Authoring'). + $formaction=~s|/+|/|g; + my $pagetitle .= &Apache::loncommon::help_open_menu('','','','',3,'Authoring'). 'Construction Space: '. '
'. @@ -208,8 +205,12 @@ sub startpage { &Apache::lonhtmlcommon::store_recent('construct',$formaction,$formaction); if ($env{'environment.remote'} eq 'off') { $env{'request.noversionuri'}=$currdir.'/'; - $r->print(&Apache::loncommon::bodytag('Construction Space',undef,undef,undef,undef,undef,$pagetitle)); + $r->print(&Apache::loncommon::start_page('Construction Space',undef, + {'body_title' => + $pagetitle,})); } else { + $r->print(&Apache::loncommon::start_page('Construction Space',undef, + {'only_body' => 1,})); $r->print($pagetitle); } my $pubdirscript=(<