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

bowersj2 lon-capa-cvs@mail.lon-capa.org
Thu, 12 Jun 2003 20:56:19 -0000


bowersj2		Thu Jun 12 16:56:19 2003 EDT

  Modified files:              
    /loncom/interface	lonnavmaps.pm 
  Log:
  Not a user visible change, but cleans up the HTML for future nav maps 
  readers: Navmaps was outputting an empty <a> tag trying to link to a 
  folder created by DOCS; it no longer outputs that empty link tag.
  
  
Index: loncom/interface/lonnavmaps.pm
diff -u loncom/interface/lonnavmaps.pm:1.201 loncom/interface/lonnavmaps.pm:1.202
--- loncom/interface/lonnavmaps.pm:1.201	Thu Jun 12 16:36:41 2003
+++ loncom/interface/lonnavmaps.pm	Thu Jun 12 16:56:19 2003
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Navigate Maps Handler
 #
-# $Id: lonnavmaps.pm,v 1.201 2003/06/12 20:36:41 bowersj2 Exp $
+# $Id: lonnavmaps.pm,v 1.202 2003/06/12 20:56:19 bowersj2 Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -923,7 +923,7 @@
         $nonLinkedText .= ' (' . $resource->countParts() . ' parts)';
     }
 
-    if (!$params->{'resource_nolink'}) {
+    if (!$params->{'resource_nolink'} && $src !~ /^\/uploaded\//) {
         $result .= "  $curMarkerBegin<a href='$link'>$title$partLabel</a>$curMarkerEnd $nonLinkedText</td>";
     } else {
         $result .= "  $curMarkerBegin$title$partLabel$curMarkerEnd $nonLinkedText</td>";