Changeset 7177 for trunk


Ignore:
Timestamp:
2004-04-02T15:01:28+12:00 (20 years ago)
Author:
kjdon
Message:

when I chaged the options names to metadata and sort, I forgot to change them where you actually parse the args :-(. ooops.

File:
1 edited

Legend:

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

    r6978 r7177  
    2626# classifier plugin for sorting by date
    2727
    28 # always sorts by 'Date' metadata
    29 
    3028# date is assumed to be in the form yyyymmdd
    3129
    3230# at present dates are split by year - this should change
    3331# jrm21 - added option "bymonth", which splits by year and month.
    34 
    35 # 12/05/02 Added usage datastructure - John Thompson
    3632
    3733# 23/09/03 Added some more options -kjdon.
     
    3935# -nogroup, which makes each year (or year+month) an individual entry in
    4036# the horizontal list and prevents compaction
    41 # -datemeta, use a different metadata for the date (instead of Date), still expects yyyymmdd format. this affects display cos greenstone displays Date metadata as dd month yyyy, whereas any other date metadata is displayed as yyyymmdd - this needs fixing
    42 # -sortmeta specifies an additional metadata to use in sorting, will take affect when two docs have the same date.
     37# -metadata, use a different metadata for the date (instead of Date), still expects yyyymmdd format. this affects display cos greenstone displays Date metadata as dd month yyyy, whereas any other date metadata is displayed as yyyymmdd - this needs fixing
     38# -sort specifies an additional metadata to use in sorting, will take affect when two docs have the same date.
    4339
    4440package DateList;
     
    9995                         q^bymonth^, \$self->{'bymonth'},
    10096             q^nogroup^, \$self->{'nogroup'},
    101              q^datemeta/.*/^, \$datemeta,
    102              q^sortmeta/.*/^, \$sortmeta,
     97             q^metadata/.*/^, \$datemeta,
     98             q^sort/.*/^, \$sortmeta,
    10399                         "allow_extra_options")) {
    104100    $self->print_txt_usage("");  # Use default resource bundle
Note: See TracChangeset for help on using the changeset viewer.