Changeset 20609


Ignore:
Timestamp:
2009-09-16T14:05:23+12:00 (15 years ago)
Author:
kjdon
Message:

added process_exp arg explicitly to this plugin. Otherwise, due to the way the args are ordered, inheriting from both ReadTextFile and ReadXMLFile, GLI thinks its process exp is empty not matching .xml. And then it won't be suggested as a plugin when you add in a marcxml file

File:
1 edited

Legend:

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

    r19672 r20609  
    4545          'type' => "string",
    4646          'deft' => "marc2dc.txt",
    47           'reqd' => "no" }];
     47          'reqd' => "no" },
     48         { 'name' => "process_exp",
     49           'desc' => "{BasePlugin.process_exp}",
     50           'type' => "regexp",
     51           'deft' => &get_default_process_exp(),
     52           'reqd' => "no" }];
    4853
    4954my $options = { 'name'     => "MARCXMLPlugin",
     
    5358        'args'     => $arguments
    5459        };
     60
    5561
    5662sub new {
     
    99105
    100106
     107sub get_default_process_exp {
     108    my $self = shift (@_);
     109
     110    return q^(?i)\.xml$^;
     111}
    101112
    102113sub get_doctype {
Note: See TracChangeset for help on using the changeset viewer.