version 1.171, 2003/04/04 18:13:44
|
version 1.172, 2003/04/04 19:08:46
|
Line 491 The pre-packaged column names are refere
|
Line 491 The pre-packaged column names are refere
|
|
|
=item * B<resource_part_count>: 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<resource_part_count>: 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<resource_no_folder_link>: If true, the resource's folder will not be clickable to open or close it. Default is false. |
=item * B<resource_no_folder_link>: 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 |
=back |
|
|
Line 993 sub render {
|
Line 993 sub render {
|
$result .= '</tr></table>'; |
$result .= '</tr></table>'; |
} |
} |
|
|
if ($printCloseAll) { |
if ($printCloseAll && !$args->{'resource_no_folder_link'}) { |
if ($condition) { |
if ($condition) { |
$result.="<a href=\"navmaps?condition=0&filter=&$queryString" . |
$result.="<a href=\"navmaps?condition=0&filter=&$queryString" . |
"&here=" . Apache::lonnet::escape($here) . |
"&here=" . Apache::lonnet::escape($here) . |
Line 1497 sub getById {
|
Line 1497 sub getById {
|
return "Apache::lonnavmaps::resource"->new($self, $id); |
return "Apache::lonnavmaps::resource"->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 |
=pod |
|
|
=item * B<firstResource>(): Returns a resource object reference corresponding to the first resource in the navmap. |
=item * B<firstResource>(): Returns a resource object reference corresponding to the first resource in the navmap. |
Line 1664 sub retrieveResources {
|
Line 1672 sub retrieveResources {
|
|
|
# Create the necessary iterator. |
# Create the necessary iterator. |
if (!ref($map)) { # assume it's a url of a map. |
if (!ref($map)) { # assume it's a url of a map. |
$map = $self->getMapByUrl($map); |
$map = $self->getResourceByUrl($map); |
} |
} |
|
|
# Check the map's validity. |
# Check the map's validity. |