Ignore:
Timestamp:
2003-11-20T13:48:25+13:00 (20 years ago)
Author:
kjdon
Message:

each plugin now adds a metadata field to teh doc obj based on the plugin name. For example, if a Word document doc.xml file will end up with metadata name='Word' value=1. You should be able to test for thismetadata and use it in format statements

File:
1 edited

Legend:

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

    r5680 r5919  
    5555    # $self is global for use within subroutines called by XML::Parser
    5656    $self = new BasPlug ($class, @_);
    57 
     57    $self->{'plugin_type'} = "XML";
    5858    # 14-05-02 To allow for proper inheritance of arguments - John Thompson
    5959    my $option_list = $self->{'option_list'};
     
    239239    $self->{'doc_obj'}->set_OID();
    240240   
     241    $doc_obj->add_utf8_metadata($doc_obj->get_top_section(), "$self->{'plugin_type'}", "1");
     242
    241243    # process the document
    242244    $self->{'processor'}->process($self->{'doc_obj'});
Note: See TracChangeset for help on using the changeset viewer.