Ignore:
Timestamp:
2006-07-20T16:02:07+12:00 (18 years ago)
Author:
kjdon
Message:

set_OIDtype now takes two arguments, the type and the metadata (used if type=assigned)

File:
1 edited

Legend:

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

    r12169 r12270  
    322322    $mp3_doc_count++;
    323323   
    324 ##    $doc_obj->set_OIDtype ($processor->{'OIDtype'});   
    325     $doc_obj->set_OIDtype ("incremental");    # this is done to avoid hashing content of file
     324##    $doc_obj->set_OIDtype ($processor->{'OIDtype'}); 
     325    if ($processor->{'OIDtype'} =~ /^(assigned|dirname)$/) {
     326    $doc_obj->set_OIDtype ($processor->{'OIDtype'}, $processor->{'OIDmetadata'});
     327    }
     328    else {
     329    $doc_obj->set_OIDtype ("incremental");    # this is done to avoid hashing content of file
     330    }
    326331    $doc_obj->add_utf8_metadata($doc_obj->get_top_section(), "Plugin", "$self->{'plugin_type'}");
    327332    $doc_obj->add_utf8_metadata($doc_obj->get_top_section(), "FileSize", (-s $filename));
Note: See TracChangeset for help on using the changeset viewer.