Changeset 16921 for gsdl/trunk/perllib


Ignore:
Timestamp:
2008-08-20T17:39:48+12:00 (16 years ago)
Author:
ak19
Message:

src_link uses the new SourceFile metadata, which is the url-encoded reference to the associated file's name on the filesystem (which may itself be url-encoded originally)

Location:
gsdl/trunk/perllib/plugins
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • gsdl/trunk/perllib/plugins/OggVorbisPlugin.pm

    r16392 r16921  
    125125
    126126    $doc_obj->add_metadata ($top_section, "FileFormat", "OggVorbis");
    127     $doc_obj->add_metadata ($top_section, "srclink", "<a href=\"_httpprefix_/collect/[collection]/index/assoc/[assocfilepath]/[Source]\">");
     127    $doc_obj->add_metadata ($top_section, "srclink", "<a href=\"_httpprefix_/collect/[collection]/index/assoc/[assocfilepath]/[SourceFile]\">");
    128128    $doc_obj->add_metadata ($top_section, "/srclink", "</a>");
    129129    # srcicon (need to include "iogg.gif" in the greenstone images directory
  • gsdl/trunk/perllib/plugins/RealMediaPlugin.pm

    r16392 r16921  
    101101    $doc_obj->add_metadata($top_section, "FileFormat", "RealMedia");
    102102
    103     $doc_obj->add_metadata($top_section, "srclink", "<a href=\"_httpprefix_/collect/[collection]/index/assoc/[assocfilepath]/[Source]\">");
     103    $doc_obj->add_metadata($top_section, "srclink", "<a href=\"_httpprefix_/collect/[collection]/index/assoc/[assocfilepath]/[SourceFile]\">");
    104104    $doc_obj->add_metadata($top_section, "/srclink", "</a>");
    105105    # srcicon (need to include "irmvideo.gif" in the greenstone images directory
    106106    $doc_obj->add_metadata($top_section, "srcicon", "<img src=\"_httpprefix_/images/irmvideo.gif\" title=\"Download\" border=0>");
    107107
    108     # Add the actual file as an associated file
     108    # Add the actual filename as it exists on the file system as an associated file
     109    # by making sure we undo any URL-encoding escaping there may be
     110    $filename_no_path =~ s/%25/%/g;
    109111    $doc_obj->associate_file($filename_full_path, $filename_no_path, "RealMedia", $top_section);
    110112
Note: See TracChangeset for help on using the changeset viewer.