Ignore:
Timestamp:
2010-10-12T14:01:54+13:00 (13 years ago)
Author:
kjdon
Message:

process the reconstructed docs after reading through the archives folder - we will know which have been deleted or updated then, and those don't need to be processed again. This means that we don't have to do any deleting from classifiers

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/perllib/basebuilder.pm

    r22264 r23120  
    451451
    452452    $self->{'buildproc'}->{'mdprefix_fields'} = {};
    453 
    454     if ($self->{'incremental'}) {
    455     # create flat classify structure, ready for new docs to be added
    456     foreach my $doc_obj ( @$reconstructed_docs ) {     
    457         print $outhandle "  Adding reconstructed ", $doc_obj->get_OID(), " into classify structures\n";
    458         $self->{'buildproc'}->process($doc_obj,undef);
    459     }
    460     }
    461 
    462453   
    463454    &plugin::read ($self->{'pluginfo'}, $self->{'source_dir'},
    464455           "", {}, {}, $self->{'buildproc'}, $self->{'maxdocs'},0, $self->{'gli'});
    465456
     457    if ($self->{'incremental'}) {
     458    # create flat classify structure, ready for new docs to be added
     459    foreach my $doc_obj ( @$reconstructed_docs ) {
     460        if (! defined $self->{'buildproc'}->{'dont_reconstruct'}->{$doc_obj->get_OID()}) {
     461        print $outhandle "  Adding reconstructed ", $doc_obj->get_OID(), " into classify structures\n";
     462        $self->{'buildproc'}->process($doc_obj,undef);
     463        }
     464    }
     465    }
    466466    # this has changed to only output collection meta if its
    467467    # not in the config file
Note: See TracChangeset for help on using the changeset viewer.