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

banghart lon-capa-cvs@mail.lon-capa.org
Tue, 08 Aug 2006 19:35:54 -0000


banghart		Tue Aug  8 15:35:54 2006 EDT

  Modified files:              
    /loncom/interface	lonmeta.pm 
  Log:
  	change &make_anchor calls
  
  
Index: loncom/interface/lonmeta.pm
diff -u loncom/interface/lonmeta.pm:1.164 loncom/interface/lonmeta.pm:1.165
--- loncom/interface/lonmeta.pm:1.164	Fri Aug  4 18:16:38 2006
+++ loncom/interface/lonmeta.pm	Tue Aug  8 15:35:53 2006
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Metadata display handler
 #
-# $Id: lonmeta.pm,v 1.164 2006/08/04 22:16:38 albertel Exp $
+# $Id: lonmeta.pm,v 1.165 2006/08/08 19:35:53 banghart Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -287,15 +287,24 @@
     if ($group) {
 	$start = "groups/$group/".$start;
     }
-    my $result = &Apache::portfolio::make_anchor($port_path,$start,'/');
-    
+    my %anchor_fields;
+    %anchor_fields = (
+        'selectfile'  => $start,
+        'currentpath' => '/'
+    );
+    my $result = &Apache::portfolio::make_anchor($port_path,\%anchor_fields,$start);
     my $fullpath = '/';
     my (undef,@tree) = split('/',$path);
     my $filename = pop(@tree);
     foreach my $dir (@tree) {
 	$fullpath .= $dir.'/';
 	$result .= '/';
-	$result .= &Apache::portfolio::make_anchor($port_path,$dir,$fullpath);
+	my %anchor_fields = ();
+	%anchor_fields = (
+            'selectfile'  => $dir,
+            'currentpath' => $fullpath
+        );
+	$result .= &Apache::portfolio::make_anchor($port_path,\%anchor_fields,$dir);
     }
     $result .= "/$filename";
     return $result;