Changeset 6214 for trunk


Ignore:
Timestamp:
2003-12-10T17:05:57+13:00 (20 years ago)
Author:
mdewsnip
Message:

Added David's fixes for spaces in filenames and setting srclink metadata.

File:
1 edited

Legend:

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

    r5924 r6214  
    136136    # }
    137137
    138     # Escape spaces in the filename
    139     $filename =~ s/ /%20/g;
    140     $file =~ s/ /%20/g;
     138    # Add the image metadata
     139    my $url = $file;
     140    $url =~ s/ /%20/g;
    141141
    142142    # Add the file as an associated file ...
     
    147147    $doc_obj->associate_file($filename, $file, $mime_type, $section);
    148148    $doc_obj->add_metadata ($section, $assoc_field, $file);
     149
     150   
     151    $doc_obj->add_metadata ($section, "srclink",
     152                "<a href=_httpcollection_/index/assoc/[assocfilepath]/[$assoc_field]>");
     153    $doc_obj->add_metadata ($section, "/srclink", "</a>");
    149154   
    150155    return 1;
Note: See TracChangeset for help on using the changeset viewer.