Changeset 28638 for main


Ignore:
Timestamp:
2013-11-19T11:12:03+13:00 (10 years ago)
Author:
kjdon
Message:

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

File:
1 edited

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
Note: See TracChangeset for help on using the changeset viewer.