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

    r16104 r17026  
    815815}
    816816
    817 sub set_OID {
     817sub add_OID {
    818818    my $self = shift (@_);
    819819    my ($doc_obj, $id, $segment_number) = @_;
    820820   
    821821    if ( $self->{'key'} eq "default") {
    822     $doc_obj->set_OID("$id\_$segment_number");
     822    $self->SUPER::add_OID(@_);
     823#   $doc_obj->set_OID("$id\_$segment_number");
    823824    } else {
    824825    $doc_obj->set_OID($self->{'key'});
Note: See TracChangeset for help on using the changeset viewer.