Changeset 5645
- Timestamp:
- 2003-10-16T10:12:56+13:00 (21 years ago)
- Location:
- trunk/gsdl/perllib/classify
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/perllib/classify/AZList.pm
r4873 r5645 52 52 'reqd' => "no" } , 53 53 { 'name' => "removesuffix", 54 'desc' => " A suffix to ignore in the Metadata values for the field when sorting.",54 'desc' => "{AZList.removesuffix}", 55 55 'type' => "string", 56 56 'deft' => "", … … 59 59 60 60 my $options = { 'name' => "AZList", 61 'desc' => " Classifier plugin for sorting alphabetically",61 'desc' => "{AZList.desc}", 62 62 'inherits' => "Yes", 63 63 'args' => $arguments }; -
trunk/gsdl/perllib/classify/AZSectionList.pm
r4873 r5645 57 57 58 58 my $options = { 'name' => "AZSectionList", 59 'desc' => " Classifier plugin for sorting alphabetically. This is very similar to AZList except it sorts by section level metadata (excluding the top level) instead of just top level metadata. The only change is to the classify() subroutine which must now iterate through each section, adding each to the classification.",59 'desc' => "{AZSectionList.desc}", 60 60 'inherits' => "Yes", 61 61 'args' => $arguments }; -
trunk/gsdl/perllib/classify/BasClas.pm
r4873 r5645 53 53 54 54 use parsargv; 55 use gsprintf; 55 56 use printusage; 56 57 … … 72 73 73 74 my $options = { 'name' => "BasClas", 74 'desc' => " Base class for all the classifiers.",75 'desc' => "{BasClas.desc}", 75 76 'inherits' => "No", 76 77 'args' => $arguments }; 78 79 80 sub gsprintf 81 { 82 return &gsprintf::gsprintf(@_); 83 } 77 84 78 85 … … 168 175 # Produce the usage information using the data structure above 169 176 if ($isleafclass) { 170 print STDERR " usage: classify $classifiername [options]\n\n"; 177 &gsprintf(STDERR, " {common.usage}: classify $classifiername [{common.options}]\n\n"); 178 # print STDERR " usage: classify $classifiername [options]\n\n"; 171 179 } 172 180 … … 177 185 178 186 if ($isleafclass) { 179 print STDERR " specific options:\n"; 187 &gsprintf(STDERR, " {common.specific_options}:\n"); 188 # print STDERR " specific options:\n"; 180 189 } 181 190 else { 182 print STDERR " general options (from $classifiername):\n"; 191 &gsprintf(STDERR, " {common.general_options}:\n", $classifiername); 192 # print STDERR " general options (from $classifiername):\n"; 183 193 } 184 194 … … 227 237 q^verbosity/\d/2^, \$self->{'verbosity'}, 228 238 "allow_extra_options")) { 229 230 print STDERR "\nThe $name classifier uses an incorrect general option\n"; 231 print STDERR "(general options are those available to all classifiers).\n"; 232 print STDERR "Check your collect.cfg configuration file.\n"; 239 240 &gsprintf(STDERR, "\n{BasClas.bad_general_option}\n", $name); 241 # print STDERR "\nThe $name classifier uses an incorrect general option\n"; 242 # print STDERR "(general options are those available to all classifiers).\n"; 243 # print STDERR "Check your collect.cfg configuration file.\n"; 233 244 $self->print_txt_usage(""); # Use default resource bundle 234 245 die "\n"; … … 247 258 248 259 my $outhandle = $self->{'outhandle'}; 249 print $outhandle "BasClas::classify function must be implemented in sub-class\n"; 260 &gsprintf($outhandle, "BasClass::classify {common.must_be_implemented}\n"); 261 # print $outhandle "BasClas::classify function must be implemented in sub-class\n"; 250 262 } 251 263 … … 254 266 255 267 my $outhandle = $self->{'outhandle'}; 256 print $outhandle "BasClas::classify function must be implemented in sub-class\n"; 268 &gsprintf($outhandle, "BasClass::get_classify_info {common.must_be_implemented}\n"); 269 # print $outhandle "BasClas::get_classify_info function must be implemented in sub-class\n"; 257 270 } 258 271 -
trunk/gsdl/perllib/classify/Browse.pm
r4786 r5645 36 36 37 37 my $options = { 'name' => "Browse", 38 'desc' => " ",38 'desc' => "{Browse.desc}", 39 39 'inherits' => "Yes" }; 40 40 -
trunk/gsdl/perllib/classify/DateList.pm
r5532 r5645 74 74 75 75 my $options = { 'name' => "DateList", 76 'desc' => " Classifier plugin for sorting by date. By default, sorts by 'Date' metadata. Date is assumed to be in the form yyyymmdd.",76 'desc' => "{DateList.desc}", 77 77 'inherits' => "Yes", 78 78 'args' => $arguments }; -
trunk/gsdl/perllib/classify/HTML.pm
r4873 r5645 53 53 54 54 my $options = { 'name' => "HTML", 55 'desc' => " Creates an empty classification that's simply a link to a web page.",55 'desc' => "{HTML.desc}", 56 56 'inherits' => "Yes", 57 57 'args' => $arguments }; -
trunk/gsdl/perllib/classify/Hierarchy.pm
r4873 r5645 82 82 my $options = 83 83 { 'name' => "Hierarchy", 84 'desc' => " Classifier plugin for generating hierarchical classifications",84 'desc' => "{Hierarchy.desc}", 85 85 'inherits' => "Yes" , 86 86 'args' => $arguments }; -
trunk/gsdl/perllib/classify/List.pm
r4873 r5645 66 66 67 67 my $options = { 'name' => "List", 68 'desc' => " Simple list classifier plugin.",68 'desc' => "{List.desc}", 69 69 'inherits' => "Yes", 70 70 'args' => $arguments }; … … 223 223 224 224 # organise into classification structure 225 print STDERR "List::get_classify_info::title = " . $self->{'title'} . "\n"; 225 226 my %classifyinfo = ('childtype'=>'VList', 226 227 'Title'=>$self->{'title'}, -
trunk/gsdl/perllib/classify/Phind.pm
r4873 r5645 129 129 130 130 my $options = { 'name' => "Phind", 131 'desc' => " The Phind clasifier plugin.",131 'desc' => "{Phind.desc}", 132 132 'inherits' => "Yes", 133 133 'args' => $arguments }; -
trunk/gsdl/perllib/classify/SectionList.pm
r4873 r5645 40 40 41 41 my $options = { 'name' => "SectionList", 42 'desc' => " Same as List classifier but includes all sections of document (excluding top level) rather than just top level document itself.",42 'desc' => "{SectionList.desc}", 43 43 'inherits' => "Yes" }; 44 44
Note:
See TracChangeset
for help on using the changeset viewer.