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

    r16960 r17026  
    8181}
    8282
     83# we don't want to hash on the file
     84sub get_oid_hash_type {
     85    my $self = shift (@_);
     86    return "hash_on_ga_xml";
     87}
     88
    8389sub process
    8490{
     
    8793
    8894    my ($filename_full_path, $filename_no_path) = &util::get_full_filenames($base_dir, $file);
    89     # do something about OIDtype so no hashing
    90      
    91     # old code was in effect the following.
    92     if ($doc_obj->{'OIDtype'} =~ /^hash$/) {
    93     $doc_obj->set_OIDtype ("incremental");
    94     }
    9595
    9696    my $top_section = $doc_obj->get_top_section();
Note: See TracChangeset for help on using the changeset viewer.