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

    r5680 r5919  
    5959    my ($class) = @_;
    6060    my $self = new BasPlug ($class, @_);
    61 
     61    $self->{'plugin_type'} = "DB";
    6262    my $option_list = $self->{'option_list'};
    6363    push( @{$option_list}, $options );
     
    203203        $self->associate_cover_image($doc_obj, $filename);
    204204    }
    205    
     205    $doc_obj->add_utf8_metadata($doc_obj->get_top_section(), "$self->{'plugin_type'}", "1");
     206
    206207
    207208    # include any metadata passed in from previous plugins
Note: See TracChangeset for help on using the changeset viewer.