Ignore:
Timestamp:
2016-12-09T21:37:52+13:00 (7 years ago)
Author:
ak19
Message:

First major commit to do with the new oaiinfo db that keeps track of which oids are deleted. Still need to fix up issue with the new remove and rename subroutines of dbutil's jdbm not being called to clean up *.lg log file associated with main db file. Still need to clean up unused methods in oaiinfo, remove debugging and test agains GS3 incr-build-with-manifest tutorial. (Previous 3 commits were commits, not all related.)

File:
1 edited

Legend:

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

    r30517 r31190  
    2929no strict 'refs'; # allow filehandles to be variables and viceversa
    3030
     31use arcinfo;
    3132use classify;
    3233use cfgread;
    3334use colcfg;
    3435use dbutil;
     36use oaiinfo;
    3537use plugin;
    3638use util;
     
    9294
    9395    my $colcfgname = &colcfg::get_collect_cfg_name($outhandle, $gs_mode);
     96    $self->{'colcfgname'} = $colcfgname;
    9497    $self->{'collect_cfg'} = &colcfg::read_collection_cfg ($colcfgname, $gs_mode);
    9598
     
    169172    }
    170173
     174
     175    # Prepare to work with the <collection>/etc/oai-inf.<db> that keeps track
     176    # of the OAI identifiers with their time stamps and deleted status.
     177    #
     178    # At this stage of working with the oai info db, we don't care whether we have a
     179    # manifest or are otherwise incremental, or whether we're doing removeold (full rebuild).
     180    # Because we've already dealt with that during the import stage. From here on, we pretend
     181    # we're incremental, since the oai info db should just do what archiveinfo contains.
     182    # This is because "building is always incremental" where oai info db is concerned.
     183   
     184    my $archivedir = $self->{'source_dir'};
     185    my $oai_info = new oaiinfo($self->{'colcfgname'}, $self->{'collect_cfg'}->{'infodbtype'});   
     186    $oai_info->building_stage_before_indexing($archivedir);
     187
     188
    171189    # check incremental against whether builder can cope or not.
    172190    if ($self->{'incremental'} && !$self->is_incremental_capable()) {
Note: See TracChangeset for help on using the changeset viewer.