Changeset 21219

Show
Ignore:
Timestamp:
02.12.2009 14:50:15 (10 years ago)
Author:
kjdon
Message:

added a place for calling post_process method after the doc obj has been created and has had its id generated. Need this for pharos, as we are going to index an image using its identifier

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/perllib/plugins/BasePlugin.pm

    r20778 r21219  
    865865    $self->add_OID($doc_obj); 
    866866     
     867    $self->post_process_doc_obj($pluginfo, $base_dir, $file, $metadata, $doc_obj, $gli); 
    867868    return (1,$doc_obj); 
     869} 
     870 
     871sub post_process_doc_obj { 
     872    my $self = shift (@_);   
     873    my ($pluginfo, $base_dir, $file, $metadata, $doc_obj, $gli) = @_; 
     874 
     875    return 1; 
    868876} 
    869877 
     
    939947     
    940948    my ($process_status,$doc_obj) = $self->read_into_doc_obj(@_); 
    941  
     949     
    942950    if ((defined $process_status) && ($process_status == 1)) { 
    943  
     951     
    944952    # process the document 
    945953    $processor->process($doc_obj);