Ignore:
Timestamp:
2009-10-05T15:53:42+13:00 (15 years ago)
Author:
kjdon
Message:

plugins now need to add any auxiliary source files as source assoc files, so we know when to reimport for incremental import. Have started this, but not finished and not tested :-)

File:
1 edited

Legend:

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

    r19999 r20778  
    394394    my $self = shift(@_);
    395395    my ($filename_full_path, $filename_no_path, $doc_obj, $section, $rotate) = @_;
     396    # check the filenames
     397    return 0 if ($filename_no_path eq "" || !-f $filename_full_path);
     398 
     399    # remember that this image file was one of our source files
     400    $doc_obj->associate_source_file($filename_full_path);
     401 
    396402    # do rotation
    397403    if  ((defined $rotate) && ($rotate eq "r")) {
    398     # check the filenames
    399     return 0 if ($filename_no_path eq "" || !-f $filename_full_path);
    400 
    401404    # we get a new temporary file which is rotated
    402405    $filename_full_path = $self->rotate_image($filename_full_path);
     
    617620    }
    618621
     622    # remember that this text file was one of our source files
     623    $doc_obj->associate_source_file($filename_full_path);
    619624    # Do encoding stuff
    620625    my ($language, $encoding) = $self->textcat_get_language_encoding ($filename_full_path);
Note: See TracChangeset for help on using the changeset viewer.