version 1.571, 2025/02/03 19:07:54
|
version 1.574, 2025/05/26 19:55:09
|
Line 1710 END
|
Line 1710 END
|
|
|
# Data |
# Data |
if ($counter) { |
if ($counter) { |
$result.=&Apache::loncommon::start_data_table("LC_tableOfContent"); |
$result.=&Apache::loncommon::start_data_table("LC_tableOfContent"). |
|
&Apache::loncommon::start_data_table_header_row('LC_visually_hidden'). |
|
'<th>'.&mt('Resource or Folder').'</th>'. |
|
'<th>'.&mt('Alerts').'</th>'. |
|
'<th>'.&mt('Status Icon').'</th>'. |
|
'<th>'.&mt('Date/Completion Status').'</th>'. |
|
&Apache::loncommon::end_data_table_row()."\n"; |
} |
} |
|
|
my $res = "Apache::lonnavmaps::resource"; |
my $res = "Apache::lonnavmaps::resource"; |
Line 1723 END
|
Line 1729 END
|
$args->{'counter'} = 0; # counts the rows |
$args->{'counter'} = 0; # counts the rows |
$args->{'indentLevel'} = 0; |
$args->{'indentLevel'} = 0; |
$args->{'isNewBranch'} = 0; |
$args->{'isNewBranch'} = 0; |
$args->{'condensed'} = 0; |
$args->{'condensed'} = 0; |
|
$args->{'deeplinknolist'} = 0; |
|
|
my $location = &Apache::loncommon::lonhttpdurl("/adm/lonIcons/whitespace_21.gif"); |
my $location = &Apache::loncommon::lonhttpdurl("/adm/lonIcons/whitespace_21.gif"); |
$args->{'indentString'} = setDefault($args->{'indentString'}, "<img src='$location' alt='' />"); |
$args->{'indentString'} = setDefault($args->{'indentString'}, "<img src='$location' alt='' />"); |
Line 1898 END
|
Line 1905 END
|
|
|
# If this has been filtered out, continue on |
# If this has been filtered out, continue on |
if (!(&$filterFunc($curRes))) { |
if (!(&$filterFunc($curRes))) { |
|
if (!$userCanSeeHidden && !$curRes->randomout && $curRes->deeplinkout) { |
|
$args->{'deeplinknolist'} ++; |
|
} |
$args->{'isNewBranch'} = 0; # Don't falsely remember this |
$args->{'isNewBranch'} = 0; # Don't falsely remember this |
next; |
next; |
} |
} |
Line 1922 END
|
Line 1932 END
|
if ($userCanSeeHidden) { |
if ($userCanSeeHidden) { |
$args->{'mapHiddenDeepLink'} = 1; |
$args->{'mapHiddenDeepLink'} = 1; |
} else { |
} else { |
|
$args->{'deeplinknolist'} ++; |
next; |
next; |
} |
} |
} else { |
} else { |
Line 1931 END
|
Line 1942 END
|
if ($userCanSeeHidden) { |
if ($userCanSeeHidden) { |
$args->{'mapUnlisted'} = 1; |
$args->{'mapUnlisted'} = 1; |
} else { |
} else { |
|
$args->{'deeplinknolist'} ++; |
next; |
next; |
} |
} |
} |
} |
Line 3061 sub parmval_real {
|
Line 3073 sub parmval_real {
|
} |
} |
|
|
sub recurseup_maps { |
sub recurseup_maps { |
my ($self,$mapname,$getsymb) = @_; |
my ($self,$mapname,$getsymb,$inclusive) = @_; |
my @recurseup; |
my @recurseup; |
if ($mapname) { |
if ($mapname) { |
my $res = $self->getResourceByUrl($mapname); |
my $res = $self->getResourceByUrl($mapname); |
Line 3075 sub recurseup_maps {
|
Line 3087 sub recurseup_maps {
|
@recurseup = map { &Apache::lonnet::declutter($self->getByMapPc($_)->src()); } reverse(@pcs); |
@recurseup = map { &Apache::lonnet::declutter($self->getByMapPc($_)->src()); } reverse(@pcs); |
} |
} |
} |
} |
|
if ($inclusive) { |
|
if ($getsymb) { |
|
unshift(@recurseup,$res->symb()); |
|
} else { |
|
unshift(@recurseup,$mapname); |
|
} |
|
} |
} |
} |
} |
} |
return @recurseup; |
return @recurseup; |