[LON-CAPA-cvs] cvs: loncom /interface lonnavmaps.pm
raeburn
raeburn at source.lon-capa.org
Thu Apr 23 15:06:15 EDT 2026
raeburn Thu Apr 23 19:06:15 2026 EDT
Modified files:
/loncom/interface lonnavmaps.pm
Log:
- Remove code no longer needed after changes in rev. 1.568 which included
icon and title within a single <a href> ... </a>.
Index: loncom/interface/lonnavmaps.pm
diff -u loncom/interface/lonnavmaps.pm:1.589 loncom/interface/lonnavmaps.pm:1.590
--- loncom/interface/lonnavmaps.pm:1.589 Thu Apr 23 16:56:43 2026
+++ loncom/interface/lonnavmaps.pm Thu Apr 23 19:06:15 2026
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Navigate Maps Handler
#
-# $Id: lonnavmaps.pm,v 1.589 2026/04/23 16:56:43 raeburn Exp $
+# $Id: lonnavmaps.pm,v 1.590 2026/04/23 19:06:15 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -1188,19 +1188,6 @@
$nonLinkedText .= ' ('.&mt('[_1] parts', $resource->countParts()).')';
}
- if (!$params->{'resource_nolink'} && !$resource->is_sequence() && !$resource->is_empty_sequence) {
- $linkclose = '</a>';
- if ($params->{'modalLink'}) {
- my $esclink = &js_escape($link);
- if ($nomodal) {
- $linkopen = "<a href=\"#\" onclick=\"javascript:window.open('$esclink','resourcepreview','height=400,width=500,scrollbars=1,resizable=1,menubar=0,location=1'); return false;\" />";
- } else {
- $linkopen = "<a href=\"$link\" onclick=\"javascript:openMyModal('$esclink',600,500,'yes','true'); return false;\">";
- }
- } else {
- $linkopen = "<a href=\"$link\">";
- }
- }
$result .= "$curMarkerBegin$title$partLabel$curMarkerEnd$linkclose$editmapLink$nonLinkedText";
if (($params->{'caller'} eq 'printout') || ($params->{'caller'} eq 'newslot') ||
($params->{'caller'} eq 'resettimes') || ($params->{'caller'} eq 'parameter')) {
@@ -4965,11 +4952,6 @@
return ($src =~ /\.(task)$/)
}
-sub is_empty_sequence {
- my $self=shift;
- return !$self->is_page() && $self->navHash("is_map_", 1) && !$self->navHash("map_type_" . $self->map_pc());
-}
-
# Private method: Shells out to the parmval in the nav map, handler parts.
sub parmval {
my $self = shift;
More information about the LON-CAPA-cvs
mailing list