Ignore:
Timestamp:
2003-06-20T14:22:34+12:00 (21 years ago)
Author:
mdewsnip
Message:

Tidied up and structures (representing the options of the plugin) in preparation for removing the print_usage() routines.

File:
1 edited

Legend:

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

    r3587 r4744  
    5252
    5353my $arguments =
    54 [ {     'name' => "process_exp",
    55     'desc' => "A perl regular expression to match against filenames. Matching filenames will be processed by this plugin. Each plugin has its own default process_exp. e.g HTMLPlug defaults to '(?i)\.html?\$' i.e. all documents ending in .htm or .html (case-insensitive).",
     54    [ { 'name' => "process_exp",
     55    'desc' => "A perl regular expression to match against filenames. Matching filenames will be processed by this plugin. For example, using '(?i).html?\$' matches all documents ending in .htm or .html (case-insensitive).",
    5656    'type' => "string",
    5757    'reqd' => "no" ,
    58     'deft' => q^(?i)\.bib$^ }
    59 ];
    60 
    61 my $options =
    62 {   'name'     => "BibTexPlug",
    63     'desc'     => "BibTexPlug reads bibliography files in BibTex format. BibTexPlug creates a document object for every reference in the file. It is a subclass of SplitPlug, so if there are multiple records, all are read.",
    64     'inherits' => "Yes",
    65     'args'     => $arguments };
     58    'deft' => q^(?i)\.bib$^ } ];
     59
     60my $options = { 'name'     => "BibTexPlug",
     61        'desc'     => "BibTexPlug reads bibliography files in BibTex format. BibTexPlug creates a document object for every reference in the file. It is a subclass of SplitPlug, so if there are multiple records, all are read.",
     62        'inherits' => "Yes",
     63        'args'     => $arguments };
    6664
    6765# This plugin processes files with the suffix ".bib"
Note: See TracChangeset for help on using the changeset viewer.