Ignore:
Timestamp:
2013-02-19T14:12:28+13:00 (11 years ago)
Author:
kjdon
Message:

ConvertBinaryFile needs to reset the doc OID after all the processing has been done. This will mean it uses the top level plugin OIDtype settings, rather than the secondary plugin ones.

File:
1 edited

Legend:

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

    r26536 r26893  
    10201020sub add_OID {
    10211021    my $self = shift (@_); 
    1022     my ($doc_obj) = @_;
    1023 
    1024     # don't add one if there is one already set
    1025     return unless $doc_obj->get_OID() =~ /^NULL$/;
     1022    my ($doc_obj, $force) = @_;
     1023
     1024    # don't add one if there is one already set, unless we are forced to do so
     1025    return unless ($doc_obj->get_OID() =~ /^NULL$/ || $force);
    10261026    $doc_obj->set_OIDtype($self->{'OIDtype'}, $self->{'OIDmetadata'});
    10271027
Note: See TracChangeset for help on using the changeset viewer.