--- loncom/interface/lonmenu.pm 2004/10/29 18:40:40 1.120 +++ loncom/interface/lonmenu.pm 2004/11/01 04:31:03 1.121 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Routines to control the menu # -# $Id: lonmenu.pm,v 1.120 2004/10/29 18:40:40 raeburn Exp $ +# $Id: lonmenu.pm,v 1.121 2004/11/01 04:31:03 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -255,13 +255,34 @@ sub innerregister { if ($textual && $const_space) { my $formaction='/priv/'.$uname.'/'.$thisdisfn; $formaction=~s/\/+/\//g; - $newmail .= ('
'. &Apache::lonhtmlcommon::crumbs($uname.'/'.$thisdisfn,'_top','/priv','','-1'). &Apache::lonhtmlcommon::select_recent('construct','recent', 'this.form.action=this.form.recent.value;this.form.submit()'). - '
'); + ''; &Apache::lonhtmlcommon::store_recent('construct',$formaction,$formaction); + $newmail .= &constspaceform(); +# role and realm + my ($role,$realm) = &Apache::lonnet::plaintext((split(/\./,$ENV{'request.role'}))[0]); + unless ($realm) { $realm=' '; } + $newmail .= < + + +$titleinfo + + + + $ENV{'environment.firstname'} + $ENV{'environment.middlename'} + $ENV{'environment.lastname'} + $ENV{'environment.generation'} +  
+ $role  + + +END } if (($textual) && ($ENV{'request.symb'}) && ($ENV{'request.course.id'})) { my ($mapurl,$rid,$resurl)=&Apache::lonnet::decode_symb($ENV{'request.symb'}); @@ -380,13 +401,14 @@ sub innerregister { # Prepare the rest of the buttons my $menuitems; if ($const_space) { - my $dir_catalog = '/priv/'.$uname.'/'.$thisdisfn.'/default.meta'; + my $currdir = '/priv/'.$uname.'/'.$thisdisfn; + $currdir =~ s#[^/]+$##; $menuitems=(< + + +
+ + +
+ENDCONSTSPACEFORM +} + + sub get_nav_status { my $navstatus="swmenu.w_loncapanav_flag="; if ($ENV{'environment.remotenavmap'} eq 'on') {