- Timestamp:
- 2010-03-01T13:03:47+13:00 (14 years ago)
- Location:
- main/trunk/greenstone2/perllib/plugins
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone2/perllib/plugins/BasePlugin.pm
r21315 r21742 1088 1088 my ($pre_doc_ext) = ($file_extended_ext =~ m/^(.*)\..*$/); 1089 1089 my ($doc_ext) = ($tail_filename =~ m/^.*\.(.*)$/); 1090 my $start_doclink = "<a href=\"_httpprefix_/collect/[collection]/index/assoc/{Or}{[parent(Top):a rchivedir],[archivedir]}/$url_tail_filename\">";1090 my $start_doclink = "<a href=\"_httpprefix_/collect/[collection]/index/assoc/{Or}{[parent(Top):assocfilepath],[assocfilepath]}/$url_tail_filename\">"; 1091 1091 my $srcicon = "_icon".$doc_ext."_"; 1092 1092 my $end_doclink = "</a>"; -
main/trunk/greenstone2/perllib/plugins/ConvertBinaryFile.pm
r20766 r21742 498 498 # We use set instead of add here because we only want one value 499 499 $doc_obj->set_utf8_metadata_element($cursection, "FileFormat", $file_type); 500 my $doclink = "<a href=\"_httpprefix_/collect/[collection]/index/assoc/[a rchivedir]/doc.$doc_ext\">";500 my $doclink = "<a href=\"_httpprefix_/collect/[collection]/index/assoc/[assocfilepath]/doc.$doc_ext\">"; 501 501 if ($self->{'keep_original_filename'} == 1) { 502 $doclink = "<a href=\"_httpprefix_/collect/[collection]/index/assoc/[a rchivedir]/[SourceFile]\">";502 $doclink = "<a href=\"_httpprefix_/collect/[collection]/index/assoc/[assocfilepath]/[SourceFile]\">"; 503 503 } 504 504 $doc_obj->add_utf8_metadata ($cursection, "srclink", $doclink); -
main/trunk/greenstone2/perllib/plugins/ConvertToRogPlugin.pm
r18327 r21742 444 444 $doc_obj->associate_file($filename, "doc.$doc_ext", undef, $cursection); 445 445 446 my $doclink = "<a href=\"_httpprefix_/collect/[collection]/index/assoc/[a rchivedir]/doc.$doc_ext\">";446 my $doclink = "<a href=\"_httpprefix_/collect/[collection]/index/assoc/[assocfilepath]/doc.$doc_ext\">"; 447 447 $doc_obj->add_utf8_metadata ($cursection, "srclink", $doclink); 448 448 $doc_obj->add_utf8_metadata ($cursection, "srcicon", "_icon".$doc_ext."_"); -
main/trunk/greenstone2/perllib/plugins/HTMLImagePlugin.pm
r18327 r21742 533 533 $doc_obj->add_metadata($section, "PageTitle", $pagetitle); 534 534 $doc_obj->add_metadata($section, "ThumbURL", 535 "_httpprefix_/collect/[collection]/index/assoc/[a rchivedir]/$fn.thumb.jpg");535 "_httpprefix_/collect/[collection]/index/assoc/[assocfilepath]/$fn.thumb.jpg"); 536 536 $doc_obj->add_metadata($section, "FileFormat", "W3Img"); 537 537 … … 555 555 $doc_obj->associate_file($filepath, $onlyfn, undef, $section); 556 556 $doc_obj->add_utf8_metadata($section, "CacheURL", 557 "_httpprefix_/collect/[collection]/index/assoc/[a rchivedir]/$onlyfn");557 "_httpprefix_/collect/[collection]/index/assoc/[assocfilepath]/$onlyfn"); 558 558 } 559 559 return 1; -
main/trunk/greenstone2/perllib/plugins/OpenDocumentPlugin.pm
r20831 r21742 262 262 263 263 #setup to doclink thingi 264 my $doclink = "<a href=\"_httpprefix_/collect/[collection]/index/assoc/[a rchivedir]/$file_only\">";264 my $doclink = "<a href=\"_httpprefix_/collect/[collection]/index/assoc/[assocfilepath]/$file_only\">"; 265 265 $doc_obj->add_utf8_metadata ("", "srclink", $doclink); 266 $doc_obj->add_utf8_metadata ("", "srcicon", "<img border=\"0\" align=\"absmiddle\" src=\"_httpprefix_/collect/[collection]/index/assoc/[a rchivedir]/thumbnail.png\" alt=\"View the Open document\" title=\"View the Open document\">");266 $doc_obj->add_utf8_metadata ("", "srcicon", "<img border=\"0\" align=\"absmiddle\" src=\"_httpprefix_/collect/[collection]/index/assoc/[assocfilepath]/thumbnail.png\" alt=\"View the Open document\" title=\"View the Open document\">"); 267 267 $doc_obj->add_utf8_metadata ("", "/srclink", "</a>"); 268 268 $self->set_Source_metadata($doc_obj, $file_only);
Note:
See TracChangeset
for help on using the changeset viewer.