--- loncom/interface/lonnavmaps.pm 2003/04/04 18:13:44 1.171 +++ loncom/interface/lonnavmaps.pm 2003/04/04 19:08:46 1.172 @@ -2,7 +2,7 @@ # The LearningOnline Network with CAPA # Navigate Maps Handler # -# $Id: lonnavmaps.pm,v 1.171 2003/04/04 18:13:44 bowersj2 Exp $ +# $Id: lonnavmaps.pm,v 1.172 2003/04/04 19:08:46 bowersj2 Exp $ # # Copyright Michigan State University Board of Trustees # @@ -491,7 +491,7 @@ The pre-packaged column names are refere =item * B: If true (default), the resource will show a part count if the full part list is not displayed. If false, the resource will never show a part count. -=item * B: If true, the resource's folder will not be clickable to open or close it. Default is false. +=item * B: If true, the resource's folder will not be clickable to open or close it. Default is false. True implies printCloseAll is false, since you can't close or open folders when this is on anyhow. =back @@ -993,7 +993,7 @@ sub render { $result .= ''; } - if ($printCloseAll) { + if ($printCloseAll && !$args->{'resource_no_folder_link'}) { if ($condition) { $result.="new($self, $id); } +sub getBySymb { + my $self = shift; + my $symb = shift; + my ($mapUrl, $id, $filename) = split (/___/, $symb); + my $map = $self->getResourceByUrl($mapUrl); + return $self->getById($map->map_pc() . '.' . $id); +} + =pod =item * B(): Returns a resource object reference corresponding to the first resource in the navmap. @@ -1664,7 +1672,7 @@ sub retrieveResources { # Create the necessary iterator. if (!ref($map)) { # assume it's a url of a map. - $map = $self->getMapByUrl($map); + $map = $self->getResourceByUrl($map); } # Check the map's validity.