--- loncom/interface/lonnavmaps.pm 2009/02/25 15:25:21 1.428 +++ loncom/interface/lonnavmaps.pm 2009/03/16 15:25:40 1.431 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Navigate Maps Handler # -# $Id: lonnavmaps.pm,v 1.428 2009/02/25 15:25:21 droeschl Exp $ +# $Id: lonnavmaps.pm,v 1.431 2009/03/16 15:25:40 schulted Exp $ # # Copyright Michigan State University Board of Trustees # @@ -865,7 +865,7 @@ sub render_resource { my $location=&Apache::loncommon::lonhttpdurl("/adm/lonIcons"); # If this is a new branch, label it so if ($params->{'isNewBranch'}) { - $newBranchText = "Branch"; + $newBranchText = ".mt('Branch')."; } # links to open and close the folder @@ -962,7 +962,7 @@ sub render_resource { # Is this the current resource? if (!$params->{'displayedHereMarker'} && $resource->symb() eq $params->{'here'} ) { - $curMarkerBegin = ''; + $curMarkerBegin = ''; $curMarkerEnd = ''; $params->{'displayedHereMarker'} = 1; } @@ -1463,7 +1463,8 @@ END } else { $result .= ''; } - $result.=&show_linkitems($args->{'linkitems'}); + $result.="".mt('Tools:').""; + $result.=&show_linkitems_toolbar($args->{'linkitems'}); if ($args->{'sort_html'}) { if ($env{'environment.remotenavmap'} ne 'on') { $result.='   '. @@ -1486,11 +1487,10 @@ END } # End parameter setting - $result .= "\n\n\n\n\n\n\n
 
\n"; $result .= "
\n"; # Data - $result .= '' ."\n"; + $result.=&Apache::loncommon::start_data_table("LC_tableOfContent"); my $res = "Apache::lonnavmaps::resource"; my %condenseStatuses = @@ -1734,7 +1734,7 @@ END $rownum ++; my $backgroundColor = $backgroundColors[$rownum % scalar(@backgroundColors)]; - $result .= " \n"; + $result .= &Apache::loncommon::start_data_table_row(); # Set up some data about the parts that the cols might want my $filter = $it->{FILTER}; @@ -1760,7 +1760,7 @@ END } $result .= $colHTML . "\n"; } - $result .= " \n"; + $result .= &Apache::loncommon::end_data_table_row(); $args->{'isNewBranch'} = 0; } @@ -1796,8 +1796,8 @@ if (location.href.indexOf('#curloc')==-1 "; } - $result .= "
"; - + $result.=&Apache::loncommon::end_data_table(); + if ($r) { $r->print($result); $result = ""; @@ -1847,6 +1847,41 @@ ENDBLOCK return $result; } +sub show_linkitems_toolbar { + my ($linkitems,$condition)=@_; + my @linkorder = ("blank","launchnav","closenav","firsthomework", + "everything","uncompleted","changefolder","clearbubbles"); + + my $result .=' + + '."\n'; + $result .= ' '."\n"; + + return $result; +} + + 1;