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

albertel lon-capa-cvs@mail.lon-capa.org
Sun, 12 Dec 2004 21:17:05 -0000


albertel		Sun Dec 12 16:17:05 2004 EDT

  Modified files:              
    /loncom/interface	lonnavmaps.pm 
  Log:
  - page anchors and part anchors are clashing, disable part anchors if there already is a page anchor
  
  
Index: loncom/interface/lonnavmaps.pm
diff -u loncom/interface/lonnavmaps.pm:1.308 loncom/interface/lonnavmaps.pm:1.309
--- loncom/interface/lonnavmaps.pm:1.308	Sun Dec 12 16:06:36 2004
+++ loncom/interface/lonnavmaps.pm	Sun Dec 12 16:17:04 2004
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Navigate Maps Handler
 #
-# $Id: lonnavmaps.pm,v 1.308 2004/12/12 21:06:36 albertel Exp $
+# $Id: lonnavmaps.pm,v 1.309 2004/12/12 21:17:04 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -1129,7 +1129,7 @@
         !$params->{'condensed'}) {
 	my $displaypart=$resource->part_display($part);
         $partLabel = " (Part: $displaypart)";
-	$link.='#'.&Apache::lonnet::escape($part);
+	if ($link!~/\#/) { $link.='#'.&Apache::lonnet::escape($part); }
         $title = "";
     }