Changeset 3515


Ignore:
Timestamp:
2002-11-05T17:23:35+13:00 (21 years ago)
Author:
jrm21
Message:

call a plugin's set_OID() method if one exists, otherwise use the
default one in doc.pm. Previously, a plugin could only override this if it
also overrode the read() method from BasPlug.

File:
1 edited

Legend:

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

    r3427 r3515  
    322322   
    323323    # add an OID
    324     $doc_obj->set_OID();
     324    # see if there is a plugin-specific set_OID function...
     325    if (defined ($self->can(set_OID))) {
     326    # it will need $doc_obj to set the Identifier metadata...
     327    $self->set_OID($doc_obj);
     328    } else {
     329    # use the default set_OID() in doc.pm
     330    $doc_obj->set_OID();
     331    }
    325332
    326333    # process the document
Note: See TracChangeset for help on using the changeset viewer.