Ignore:
Timestamp:
2021-09-21T11:42:49+12:00 (3 years ago)
Author:
kjdon
Message:

OpenOfficePlugin needs to set serlinkFile instead of srclink_file as the latter has been deprecated. Also, lets set it to a value, not to [SourceFile] which doesn't work in gs3

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gs2-extensions/open-office/trunk/src/perllib/plugins/OpenOfficePlugin.pm

    r32317 r35440  
    197197    $doc_obj->set_utf8_metadata_element($cursection, "FileFormat", $format);
    198198
    199     $doc_obj->add_utf8_metadata ($cursection, "srclink_file", "[SourceFile]");
     199    my $srclink_filename = $doc_obj->get_sourcefile();
     200    #$doc_obj->add_utf8_metadata ($cursection, "srclink_file", "[SourceFile]");
     201    # srclink_file is now deprecated because of the "_" in the metadataname. Use srclinkFile
     202    $doc_obj->add_utf8_metadata ($cursection, "srclink_file", $srclink_filename);
     203    $doc_obj->add_utf8_metadata ($cursection, "srclinkFile", $srclink_filename);
     204
    200205    $doc_obj->add_utf8_metadata ($cursection, "srcicon",  "_icon".$ext."_");   
    201206    # if oo conversion not available, we have no text, so add some
Note: See TracChangeset for help on using the changeset viewer.