[LON-CAPA-cvs] cvs: loncom(version_2_11_X) /interface lonnavmaps.pm
raeburn
raeburn at source.lon-capa.org
Mon Jul 1 14:13:20 EDT 2024
raeburn Mon Jul 1 18:13:20 2024 EDT
Modified files: (Branch: version_2_11_X)
/loncom/interface lonnavmaps.pm
Log:
- For 2.11
Backport 1.555, 1.556, 1.557
Index: loncom/interface/lonnavmaps.pm
diff -u loncom/interface/lonnavmaps.pm:1.509.2.14 loncom/interface/lonnavmaps.pm:1.509.2.15
--- loncom/interface/lonnavmaps.pm:1.509.2.14 Fri Dec 31 23:14:04 2021
+++ loncom/interface/lonnavmaps.pm Mon Jul 1 18:13:20 2024
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Navigate Maps Handler
#
-# $Id: lonnavmaps.pm,v 1.509.2.14 2021/12/31 23:14:04 raeburn Exp $
+# $Id: lonnavmaps.pm,v 1.509.2.15 2024/07/01 18:13:20 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
@@ -342,7 +342,7 @@
under it; for example, see the "Show Uncompleted Homework" view on the
B<NAV> screen.
-=item * B<suppressNavmaps>: default: false
+=item * B<suppressNavmap>: default: false
If true, will not display Navigate Content resources.
@@ -1415,11 +1415,15 @@
my $mapIterator = $navmap->getIterator(undef, undef, undef, 1);
my $curRes;
my $found = 0;
+ my $here_is_navmaps = 0;
+ if ($here =~ m{___\d+___adm/navmaps$}) {
+ $here_is_navmaps = 1;
+ }
# We only need to do this if we need to open the maps to show the
# current position. This will change the counter so we can't count
# for the jump marker with this loop.
- while ($here && ($curRes = $mapIterator->next()) && !$found) {
+ while ($here && ($curRes = $mapIterator->next()) && !$found && !$here_is_navmaps) {
if (ref($curRes) && $curRes->symb() eq $here) {
my $mapStack = $mapIterator->getStack();
@@ -1536,9 +1540,6 @@
'&here='.&escape($here);
$text='Open all folders';
}
- if ($env{'form.register'}) {
- $link .= '®ister='.$env{'form.register'};
- }
if ($args->{'caller'} eq 'navmapsdisplay') {
unless ($args->{'notools'}) {
&add_linkitem($args->{'linkitems'},'changefolder',
@@ -1562,9 +1563,6 @@
<input type="hidden" name="navurl" value="$querystr" />
<input type="hidden" name="navtime" value="$time" />
END
- if ($env{'form.register'}) {
- $result .= '<input type="hidden" name="register" value="'.$env{'form.register'}.'" />';
- }
if ($args->{'sort'} eq 'discussion') {
my $totdisc = 0;
my $haveDisc = '';
More information about the LON-CAPA-cvs
mailing list