version 1.175, 2001/11/20 22:40:53
|
version 1.176, 2001/11/22 19:02:07
|
Line 35
|
Line 35
|
# 8/4,8/7,8/8,8/9,8/11,8/16,8/17,8/18,8/20,8/23,9/20,9/21,9/26, |
# 8/4,8/7,8/8,8/9,8/11,8/16,8/17,8/18,8/20,8/23,9/20,9/21,9/26, |
# 10/2 Gerd Kortemeyer |
# 10/2 Gerd Kortemeyer |
# 10/5,10/10,11/13,11/15 Scott Harrison |
# 10/5,10/10,11/13,11/15 Scott Harrison |
# 11/17,11/20 Gerd Kortemeyer |
# 11/17,11/20,11/22 Gerd Kortemeyer |
# |
# |
# $Id$ |
# $Id$ |
# |
# |
Line 2232 sub EXT {
|
Line 2232 sub EXT {
|
# ---------------------------------------------------------------- Get metadata |
# ---------------------------------------------------------------- Get metadata |
|
|
sub metadata { |
sub metadata { |
my ($uri,$what,$liburi,$prefix)=@_; |
my ($uri,$what,$liburi,$prefix,$depthcount)=@_; |
|
|
$uri=&declutter($uri); |
$uri=&declutter($uri); |
my $filename=$uri; |
my $filename=$uri; |
Line 2302 sub metadata {
|
Line 2302 sub metadata {
|
# This is not a package - some other kind of start tag |
# This is not a package - some other kind of start tag |
# |
# |
my $entry=$token->[1]; |
my $entry=$token->[1]; |
my $unikey=$entry; |
my $unikey; |
|
if ($entry eq 'import') { |
|
$unikey=''; |
|
} else { |
|
$unikey=$entry; |
|
} |
if ($prefix) { |
if ($prefix) { |
$unikey.='_'.$prefix; |
$unikey.=$prefix; |
} else { |
} else { |
if (defined($token->[2]->{'part'})) { |
if (defined($token->[2]->{'part'})) { |
$unikey.='_'.$token->[2]->{'part'}; |
$unikey.='_'.$token->[2]->{'part'}; |
Line 2317 sub metadata {
|
Line 2322 sub metadata {
|
if ($entry eq 'import') { |
if ($entry eq 'import') { |
# |
# |
# Importing a library here |
# Importing a library here |
# |
# |
my $libid=$token->[2]->{'id'}; |
if (defined($depthcount)) { $depthcount++; } else |
|
{ $depthcount=0; } |
|
if ($depthcount<20) { |
|
$metacache{$uri.':keys'}.=','. |
|
&metadata($uri,'keys', |
|
$parser->get_text('/import'),$unikey, |
|
$depthcount); |
|
} |
|
|
|
|
} else { |
} else { |
|
|
if (defined($token->[2]->{'name'})) { |
if (defined($token->[2]->{'name'})) { |