[LON-CAPA-cvs] cvs: loncom /interface lonnavmaps.pm

bowersj2 lon-capa-cvs@mail.lon-capa.org
Fri, 13 Jun 2003 13:58:06 -0000


bowersj2		Fri Jun 13 09:58:06 2003 EDT

  Modified files:              
    /loncom/interface	lonnavmaps.pm 
  Log:
  I'm hearing too much confusion about what maps are linked on the nav 
  screen. All maps are now unlinked.
  
  If we want to change it back, we need to make doc maps linkable.
  
  
Index: loncom/interface/lonnavmaps.pm
diff -u loncom/interface/lonnavmaps.pm:1.202 loncom/interface/lonnavmaps.pm:1.203
--- loncom/interface/lonnavmaps.pm:1.202	Thu Jun 12 16:56:19 2003
+++ loncom/interface/lonnavmaps.pm	Fri Jun 13 09:58:06 2003
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Navigate Maps Handler
 #
-# $Id: lonnavmaps.pm,v 1.202 2003/06/12 20:56:19 bowersj2 Exp $
+# $Id: lonnavmaps.pm,v 1.203 2003/06/13 13:58:06 bowersj2 Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -923,7 +923,8 @@
         $nonLinkedText .= ' (' . $resource->countParts() . ' parts)';
     }
 
-    if (!$params->{'resource_nolink'} && $src !~ /^\/uploaded\//) {
+    if (!$params->{'resource_nolink'} && $src !~ /^\/uploaded\// &&
+	!$resource->is_map()) {
         $result .= "  $curMarkerBegin<a href='$link'>$title$partLabel</a>$curMarkerEnd $nonLinkedText</td>";
     } else {
         $result .= "  $curMarkerBegin$title$partLabel$curMarkerEnd $nonLinkedText</td>";