Changeset 28638

Show
Ignore:
Timestamp:
19.11.2013 11:12:03 (6 years ago)
Author:
kjdon
Message:

don't process a doc.xml entry if the group-position > 1: we have already processed this file

Files:
1 modified

Legend:

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

    r28563 r28638  
    270270        my $curr_mode = $processor->get_mode(); 
    271271        my $new_mode = $curr_mode; 
     272        my $group_position = $archive_info->get_group_position($doc_oid); 
    272273 
    273274        # Start by assuming we want to process the file... 
    274275        my $process_file = 1; 
    275276 
     277        # ... unless we have processed files into a group doc.xml, in which case we only process the xml for the first one 
     278        if (defined $group_position && $group_position >1) { 
     279        $process_file = 0; 
     280        } 
    276281        # ...unless the build processor is incremental capable and -incremental was specified, in which case we need to check its index_status flag 
    277         if ($processor->is_incremental_capable() && $self->{'incremental'}) 
     282        elsif ($processor->is_incremental_capable() && $self->{'incremental'}) 
    278283        { 
    279284            # Check to see if the file needs indexing