Ignore:
Timestamp:
2004-03-08T15:39:43+13:00 (20 years ago)
Author:
kjdon
Message:

all classifiers now use BasClas.buttonname for their buttonname option description.
removed the old print_usage methods and old usage notes.
added in a test for $self->{'info_only'} in new(): if this is set, don't try and parse the arguments cos we are only running classinfo.pl.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/perllib/classify/HTML.pm

    r6408 r6968  
    2626# html classifier plugin - creates an empty classification
    2727# that's simply a link to a web page
    28 # options are:
    29 # buttonname=Title  -- (optional) the title field for this classification.
    30 #                      if not included title field 'Browse'
    31 # url=url           -- the url of the web page to link to
    32 
    33 # 12/05/02 Added usage datastructure - John Thompson
    3428
    3529package HTML;
     
    4741    'reqd' => "yes" } ,
    4842      { 'name' => "buttonname",
    49     'desc' => "{HTML.buttonname}",
     43    'desc' => "{BasClas.buttonname}",
    5044    'type' => "string",
    5145    'deft' => "Browse",
     
    5852        'args'     => $arguments };
    5953
    60 #  sub print_usage {
    61 #      print STDERR "
    62 #    usage: classify AZList [options]
    63 #    options:
    64 #     -url X         The url of the web page to link to.
    65 #     -buttonname X  (optional) the title field for this classification.
    66 #                    The default is 'Browse'
    67 
    68 #  HTML classifier plugin - creates classifier that is a link to a web page
    69 
    70 #  ";
    71 #  }
    7254
    7355sub new {
Note: See TracChangeset for help on using the changeset viewer.