From | Stephen De Gabrielle |
Date | Fri, 15 Oct 2004 16:50:29 +0900 |
Subject | [greenstone-devel] Patch for UnknownPlug.pm to handle filenames with spaces - and begging for video plugins. |
Hi,
Was working on a small test collection in greenstone and noticed that the receptionist was clipping the filename if I used '[ex.srclink]>[ex.Source][ex./srclink]' in my format statements. Eg;
The quick fix was to change the '[ex.srclink]>[ex.Source][ex./srclink]' in my format statements to:
While this works I am not really happy. I went looking at my extracted metadata and found that [ex.srclink] was being defined without quotes around the contents of the href attribute. Adding single quotes the the href in line 149 of unknownplug.pm seemed to do the trick: line 149
I have tested this on WinXP and it seems to work.
PS Does anyone have plugins for video formats? I found mention on MTVPlug and MovPlug in the music video demo collect.cfg file but they are not included in the distro.
Regards, Stephen De Gabrielle
--snippet of unknownplug.pm with the changed line--
sub associate_unknown_file {
my $verbosity = $self->{'verbosity'};
# check the filename is okay
# Add the image metadata
# Add the file as an associated file ...
$doc_obj->associate_file($filename, $file, $mime_type, $section);
$self->title_fallback($doc_obj,$section,$file); $doc_obj->add_metadata ($section, "srclink",
return 1;
|