--- loncom/interface/lonmenu.pm 2012/08/07 01:35:47 1.369.2.20 +++ loncom/interface/lonmenu.pm 2012/08/07 13:15:29 1.369.2.21 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Routines to control the menu # -# $Id: lonmenu.pm,v 1.369.2.20 2012/08/07 01:35:47 raeburn Exp $ +# $Id: lonmenu.pm,v 1.369.2.21 2012/08/07 13:15:29 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -758,7 +758,7 @@ sub innerregister { ### ### # Prepare the rest of the buttons - my ($menuitems,$got_prt,$got_wishlist); + my ($menuitems,$got_prt,$got_wishlist,$cstritems); if ($const_space) { # # We are in construction space @@ -778,12 +778,16 @@ sub innerregister { # Probably should be in mydesk.tab # $menuitems=(< + +$cstrcrumbs ENDREGTHIS } } else { @@ -1031,10 +1051,6 @@ sub get_inline_text { pparm => 'Content Settings', docs => 'Folder/Page Content', pcstr => 'Edit', - list => 'Directory', - rtrv => 'Retrieve', - pub => 'Publish', - del => 'Delete', prt => 'Print', alnk => 'Stored Links', anot => 'Notes', @@ -1051,10 +1067,6 @@ sub get_rc_text { subm => 'view sub-[_1]', pparm => 'problem[_2]', pcstr => 'edit[_1]', - list => 'list[_1]', - rtrv => 'retrieve[_1]', - pub => 'publish[_1]', - del => 'delete[_1]', prt => 'prepare[_1]', back => 'backward[_1]', forw => 'forward[_1]', @@ -1302,6 +1314,16 @@ sub switch { if ($env{'environment.remote'} eq 'on') { if (($row<1) || ($row>13)) { return ''; } + if ($env{'request.state'} eq 'construct') { + my $text = $top.' '.$bot; + $text=~s/\s*\-\s*//gs; + my $pic = ''.$text.''; + $inlineremote[$idx] = + ''. + $pic.''.$top.' '; + } # Remote $img=~s/\.png$/\.gif/; return "\n".