Changeset 9351
- Timestamp:
- 2005-03-10T11:55:52+13:00 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/perllib/plugins/BasPlug.pm
r9067 r9351 354 354 if ((defined $associate_ext) && ($associate_ext ne "")) { 355 355 my @exts = split(/,/,$associate_ext); 356 356 357 357 my %associate_ext_lookup = (); 358 358 foreach my $e (@exts) { 359 $asso icate_ext_lookup{$e} = 1;359 $associate_ext_lookup{$e} = 1; 360 360 } 361 361 … … 486 486 } 487 487 else { 488 $file_prefix_rec->{'exts'}->{$file_ext} = 1; 488 if (defined $self->{'associate_ext_lookup'}->{$file_ext}) { 489 $file_prefix_rec->{'exts'}->{$file_ext} = 1; 490 } 489 491 } 490 492 } … … 515 517 if (defined $file_prefix_rec) { 516 518 my $tie_to = $file_prefix_rec->{'tie_to'}; 519 517 520 if (defined $tie_to) { 518 521 if ($tie_to eq $file_ext) { … … 555 558 my $associate_ext = $self->{'associate_ext'}; 556 559 560 557 561 return 0 if (!$associate_ext); 558 562 … … 564 568 565 569 my $file_prefix_rec = $self->{'shared_fileroot'}->{$file_prefix}; 566 570 567 571 if ($self->tie_to_filename($file_ext,$file_prefix_rec)) { 568 572 … … 966 970 967 971 my ($doc_ext) = ($tail_filename =~ m/^.*\.(.*)$/); 968 my $start_doclink = "<a href=\"_httpcollection_/index/assoc/ [archivedir]/$tail_filename\">";972 my $start_doclink = "<a href=\"_httpcollection_/index/assoc/{Or}{[parent(Top):archivedir],[archivedir]}/$tail_filename\">"; 969 973 my $srcicon = "_icon".$doc_ext."_"; 970 974 my $end_doclink = "</a>";
Note:
See TracChangeset
for help on using the changeset viewer.