Changeset 15962


Ignore:
Timestamp:
2008-06-12T12:15:17+12:00 (16 years ago)
Author:
kjdon
Message:

added a check for info_only before lookign at the arguments

File:
1 edited

Legend:

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

    r15872 r15962  
    4545    'type' => "string",
    4646    'deft' => "marctodc.txt",
    47     'hiddengli' => "yes", # deprecated in favour or 'metadata_mapping_file'
     47    'hiddengli' => "yes", # deprecated in favour of 'metadata_mapping_file'
    4848    'reqd' => "no" },
    4949      { 'name' => "metadata_mapping_file",
     
    8686    my $self = new SplitTextFile($pluginlist, $inputargs, $hashArgOptLists);
    8787
     88    if ($self->{'info_only'}) {
     89    # don't worry about the options
     90    return bless $self, $class;
     91    }
    8892    # 'metadata_mapping' was used in two ways in the plugin: as a plugin
    8993    # option (filename) and as a datastructure to represent the mapping.
Note: See TracChangeset for help on using the changeset viewer.