Ignore:
Timestamp:
2012-11-28T11:59:17+13:00 (11 years ago)
Author:
davidb
Message:

Introduction of two new OIDtype values (hash_on_full_filename and full_filename) designed to help provide more stable document IDs for collections that are rebuilt over time, including rebuilt after the Greenstone install has been upgraded

File:
1 edited

Legend:

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

    r26451 r26536  
    297297
    298298    if (!defined $self->{'OIDtype'}
    299     || ($self->{'OIDtype'} !~ /^(hash|incremental|assigned|dirname)$/ )) {
     299    || ($self->{'OIDtype'} !~ /^(hash|hash_on_full_filename|incremental|assigned|dirname|full_filename)$/ )) {
     300    # OIDtype was either not defined on the command-line, or if it was not one of the recognized values
    300301    if (defined $collectcfg->{'OIDtype'}
    301         && $collectcfg->{'OIDtype'} =~ /^(hash|incremental|assigned|dirname)$/) {
     302        && $collectcfg->{'OIDtype'} =~ /^(hash|hash_on_full_filename|incremental|assigned|dirname|full_filename)$/) {
    302303        $self->{'OIDtype'} = $collectcfg->{'OIDtype'};
    303304    } else {
     
    548549    $processor->setoutputdir ($archivedir);
    549550    $processor->set_sortmeta ($sortmeta, $removeprefix, $removesuffix) if defined $sortmeta;
     551
    550552    $processor->set_OIDtype ($OIDtype, $OIDmetadata);
    551553   
Note: See TracChangeset for help on using the changeset viewer.