Changeset 11123
- Timestamp:
- 2006-01-27T00:23:31+13:00 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/perllib/plugins/UnknownPlug.pm
r11090 r11123 195 195 $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 196 196 $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 197 204 198 205 # associate the file with the document
Note:
See TracChangeset
for help on using the changeset viewer.