Changeset 16922 for gsdl/trunk/perllib
- Timestamp:
- 2008-08-20T17:45:33+12:00 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
gsdl/trunk/perllib/plugins/ConvertBinaryFile.pm
r16888 r16922 481 481 my $assocfilename = "doc.$doc_ext"; 482 482 if ($self->{'keep_original_filename'} == 1) { 483 # this should be the same filename that was used for the Source metadata, as we will use [Source] in the srclink 484 ($assocfilename) = $file =~ /([^\\\/]+)$/; 483 # this should be the same filename that was used for the Source and SourceFile metadata, 484 # as we will use [SourceFile] in the srclink 485 $assocfilename = $doc_obj->assocfile_from_sourcefile(); #($assocfilename) = $file =~ /([^\\\/]+)$/; 485 486 } 486 487 $doc_obj->associate_file($filename, $assocfilename, undef, $cursection); … … 490 491 my $doclink = "<a href=\"_httpprefix_/collect/[collection]/index/assoc/[archivedir]/doc.$doc_ext\">"; 491 492 if ($self->{'keep_original_filename'} == 1) { 492 $doclink = "<a href=\"_httpprefix_/collect/[collection]/index/assoc/[archivedir]/[Source ]\">";493 $doclink = "<a href=\"_httpprefix_/collect/[collection]/index/assoc/[archivedir]/[SourceFile]\">"; 493 494 } 494 495 $doc_obj->add_utf8_metadata ($cursection, "srclink", $doclink);
Note:
See TracChangeset
for help on using the changeset viewer.