Changeset 11123


Ignore:
Timestamp:
2006-01-27T00:23:31+13:00 (18 years ago)
Author:
davidb
Message:

Filename stored as URL metadata was missing from this plugin and didn't
occur through inheritence.

File:
1 edited

Legend:

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

    r11090 r11123  
    195195    $doc_obj->add_metadata($doc_obj->get_top_section(), "Source", &ghtml::dmsafe($file)); # set the filename as Source metadata to be consistent with other plugins
    196196    $doc_obj->add_utf8_metadata($doc_obj->get_top_section(), "FileSize", (-s $filename));
     197
     198    # URL metadata (even invalid ones) are used to support internal
     199    # links, so even if 'file_is_url' is off, still need to store info
     200
     201    my $web_url = "http://$file";
     202    $doc_obj->add_metadata($doc_obj->get_top_section(), "URL", $web_url);
     203
    197204
    198205    # associate the file with the document
Note: See TracChangeset for help on using the changeset viewer.