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

    r6940 r6968  
    6262    'reqd' => "yes" },
    6363      { 'name' => "buttonname",
    64     'desc' => "{AZCompactList.buttonname}",
     64    'desc' => "{BasClas.buttonname}",
    6565    'type' => "string",
    6666    'deft' => "{BasClas.metadata.deft}",
     
    127127    'args'     => $arguments };
    128128
    129 #  sub print_usage {
    130 #      print STDERR "
    131 #    usage: classify AZCompactList -metadata X [options]
    132 #    options:
    133 #     -metadata X            (required) Metadata field used for classification
    134 #     -buttonname X          Title to use on web pages (defaults to metadata)
    135 #     -removeprefix regex    pattern to remove from metadata before sorting
    136 #     -doclevel top|section  (Defaults to top)
    137 #     -freqsort              Sort by node frequency rather than alpha-numeric
    138 #     -mingroup N            Minimum num of documents required to form a new group
    139 #     -minnesting N          Minimum list size to become a nested list
    140 #     -mincompact N          Used in compact list
    141 #     -maxcompact N          Used in compact list
    142 #     -onlyfirst             Only use the first value if metadata is repeated.
    143 #     -recopt
    144 #  ";
    145 #  }
    146129
    147130sub new {
     
    153136    push( @{$option_list}, $options );
    154137
     138    if ($self->{'info_only'}) {
     139    # created from classinfo.pl - don't need to parse the arguments
     140    return bless $self, $class;
     141    }
    155142
    156143    my ($metaname, $title, $removeprefix, $removesuffix);
Note: See TracChangeset for help on using the changeset viewer.