Diff for /loncom/lonnet/perl/lonnet.pm between versions 1.1066 and 1.1067

version 1.1066, 2010/05/30 21:12:24 version 1.1067, 2010/06/03 00:07:17
Line 8241  sub metadata { Line 8241  sub metadata {
 #  #
     my $entry=$token->[1];      my $entry=$token->[1];
     my $unikey;      my $unikey;
     if ($entry eq 'import') {  
  $unikey='';  
     } else {  
  $unikey=$entry;  
     }  
     $unikey.=&add_prefix_and_part($prefix,$token->[2]->{'part'});  
   
     if (defined($token->[2]->{'id'})) {   
  $unikey.='_'.$token->[2]->{'id'};   
     }  
   
     if ($entry eq 'import') {      if ($entry eq 'import') {
 #  #
 # Importing a library here  # Importing a library here
 #  #
                           my $location=$parser->get_text('/import');
                           my $dir=$filename;
                           $dir=~s|[^/]*$||;
                           $location=&filelocation($dir,$location);
    
                           $unikey=&add_prefix_and_part($prefix,$token->[2]->{'part'});
                           if (defined($token->[2]->{'id'})) {
                              $unikey.='_'.$token->[2]->{'id'};
                           }
   
  if ($depthcount<20) {   if ($depthcount<20) {
     my $location=$parser->get_text('/import');  
     my $dir=$filename;  
     $dir=~s|[^/]*$||;  
     $location=&filelocation($dir,$location);  
     my $metadata =       my $metadata = 
  &metadata($uri,'keys', $location,$unikey,   &metadata($uri,'keys', $location,$unikey,
   $depthcount+1);    $depthcount+1);
Line 8269  sub metadata { Line 8265  sub metadata {
  $metathesekeys{$meta}=1;   $metathesekeys{$meta}=1;
     }      }
  }   }
     } else {       } else {
   #
   # Not importing, some other kind of non-package, non-library start tag
   # 
                           $unikey=$entry.&add_prefix_and_part($prefix,$token->[2]->{'part'});
                           if (defined($token->[2]->{'id'})) {
                               $unikey.='_'.$token->[2]->{'id'};
                           }
  if (defined($token->[2]->{'name'})) {    if (defined($token->[2]->{'name'})) { 
     $unikey.='_'.$token->[2]->{'name'};       $unikey.='_'.$token->[2]->{'name'}; 
  }   }

Removed from v.1.1066  
changed lines
  Added in v.1.1067


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>