--- loncom/interface/lonnavmaps.pm 2010/09/13 03:07:56 1.440.2.2 +++ loncom/interface/lonnavmaps.pm 2010/11/15 22:46:47 1.440.2.3 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Navigate Maps Handler # -# $Id: lonnavmaps.pm,v 1.440.2.2 2010/09/13 03:07:56 raeburn Exp $ +# $Id: lonnavmaps.pm,v 1.440.2.3 2010/11/15 22:46:47 raeburn Exp $ # # Copyright Michigan State University Board of Trustees @@ -1496,12 +1496,7 @@ END if ($args->{'caller'} eq 'navmapsdisplay') { $result .= ''; - if ($env{'environment.remotenavmap'} ne 'on') { - $result .= ''; - } else { - $result .= ''; - } + &Apache::loncommon::help_open_menu('Navigation Screen','Navigation_Screen',undef,'RAT').''; $result.=""; $result.=&show_linkitems_toolbar($args->{'linkitems'}); if ($args->{'sort_html'}) { @@ -1509,7 +1504,7 @@ END $result.=''. ''; } else { - $result.=''; } } @@ -1892,7 +1887,7 @@ sub show_linkitems_toolbar { my $result .=' '."\n";
'. - &Apache::loncommon::help_open_menu('Navigation Screen','Navigation_Screen',undef,'RAT').' 
 ".mt('Tools:')."   '.$args->{'sort_html'}.'

'. + $result.='

'. $args->{'sort_html'}.'
'."\n
    "; - foreach my $link (@linkorder) { + foreach my $link (@linkorder) { my $link_id = "LC_content_toolbar_".$link; if (defined($linkitems->{$link})) { if ($linkitems->{$link}{'text'} ne '') { @@ -1912,6 +1907,14 @@ sub show_linkitems_toolbar { } } } + if ($env{'environment.remotenavmap'} eq 'on') { + if (&Apache::loncommon::needs_gci_custom()) { + if ($env{'request.course.id'} && + &Apache::lonnet::allowed('mdc',$env{'request.course.id'})) { + $result .= '
  • '; + } + } + } $result .= '
'; $result .= '