Ignore:
Timestamp:
2008-08-27T20:40:20+12:00 (16 years ago)
Author:
kjdon
Message:

OID generation modifications: OIDtype and OIDmetadata options now available for plugins as well as import. OIDtype for plugins defaults to auto - if set to auto, then use the values from import. All plugins now call self->add_OID instead of doc_obj->set_OID. This sets the doc_obj OIDtype so that doesn't need to be donein other places any more. all plugins have the get_oid_hash_type method - normally returns hash_on_file, but can be overridden to return hash_on_ga_xml for those plugins that don't want hashing on file (MP3,OggVorbis...)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gsdl/trunk/perllib/plugins/ReadXMLFile.pm

    r16822 r17026  
    199199}
    200200
    201 
    202 # we need to implement read cos we are not just using process_exp to determine
    203 # whether to process this or not.
    204201sub read {
    205202    my $self = shift (@_); 
     
    363360    # create a new document
    364361    $self->{'doc_obj'} = new doc ($self->{'filename'}, "indexed_doc");
    365     $self->{'doc_obj'}->set_OIDtype ($self->{'processor'}->{'OIDtype'}, $self->{'processor'}->{'OIDmetadata'});
    366362    $self->{'doc_obj'}->add_utf8_metadata($self->{'doc_obj'}->get_top_section(), "Plugin", "$self->{'plugin_type'}");
    367363
     
    385381   
    386382    # add an OID
    387     $self->add_OID();
     383    $self->add_OID($doc_obj);
    388384   
    389385    $doc_obj->add_utf8_metadata($doc_obj->get_top_section(), "Plugin", "$self->{'plugin_type'}");
Note: See TracChangeset for help on using the changeset viewer.