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/AbstractPlugin.pm

    r16388 r17026  
    7979}
    8080
     81# called once, at the start of processing
    8182sub init {
    8283    my $self = shift (@_);
     
    9293}
    9394
     95# called at the beginning of each plugin pass (import has one, buildin has many)
    9496sub begin {
     97    my $self = shift (@_);
     98    my ($pluginfo, $base_dir, $processor, $maxdocs) = @_;
    9599
    96100}
    97101
     102# called at the end of each plugin pass
    98103sub end {
     104    my ($self) = shift (@_);
    99105
    100106}
    101107
     108# called once, after all passes have finished
    102109sub deinit {
     110    my ($self) = @_;
    103111
    104112}
Note: See TracChangeset for help on using the changeset viewer.