source: trunk/gsdl/perllib/classify/Browse.pm@ 6956

Last change on this file since 6956 was 6408, checked in by jmt12, 20 years ago

Added two new attributes for script arguments. HiddenGLI controls whether the argument will be visible at all in GLI, while ModeGLI defines the lowest detail mode under which the argument will be visible (only really for import and buildcol). Also ensured that the scripts were reporting their correct default process expressions, and further refined argument types by adding the catagory regexp for any regular expression (which can then be hidden under lower detail modes in GLI)

  • Property svn:keywords set to Author Date Id Revision
File size: 2.4 KB
Line 
1###########################################################################
2#
3# List.pm --
4# A component of the Greenstone digital library software
5# from the New Zealand Digital Library Project at the
6# University of Waikato, New Zealand.
7#
8# Copyright (C) 1999 New Zealand Digital Library Project
9#
10# This program is free software; you can redistribute it and/or modify
11# it under the terms of the GNU General Public License as published by
12# the Free Software Foundation; either version 2 of the License, or
13# (at your option) any later version.
14#
15# This program is distributed in the hope that it will be useful,
16# but WITHOUT ANY WARRANTY; without even the implied warranty of
17# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18# GNU General Public License for more details.
19#
20# You should have received a copy of the GNU General Public License
21# along with this program; if not, write to the Free Software
22# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
23#
24###########################################################################
25
26# 12/05/02 Added usage datastructure - John Thompson
27
28use BasClas;
29package Browse;
30
31use sorttools;
32
33sub BEGIN {
34 @ISA = ('BasClas');
35}
36
37my $options = { 'name' => "Browse",
38 'desc' => "{Browse.desc}",
39 'abstract' => "yes",
40 'inherits' => "yes" };
41
42# sub print_usage {
43# print STDERR "
44# usage: classify Browse
45# This classifier has no options (yet).
46# ";
47# }
48
49sub new {
50 my $class = shift (@_);
51 my $self = new BasClas($class, @_);
52
53 # 14-05-02 To allow for proper inheritance of arguments - John Thompson
54 my $option_list = $self->{'option_list'};
55 push( @{$option_list}, $options );
56
57 # classifier information
58 $self->{'collection'} = $ENV{'GSDLCOLLECTION'};
59
60 $self->{'title'} = "Browse";
61
62 return bless $self, $class;
63}
64
65sub init {
66 my $self = shift (@_);
67
68
69}
70
71sub classify {
72 my $self = shift (@_);
73
74}
75
76sub get_classify_info {
77 my $self = shift (@_);
78
79
80 # Return the information about the classifier that we'll later want to
81 # use to create macros when the Phind classifier document is displayed.
82 my %classifyinfo = ('thistype'=>'Invisible',
83 'Title'=>$self->{'title'},
84 'contains'=>[]);
85
86 my $collection = $self->{'collection'};
87 my $url = "library?a=br&c=collection";
88 push (@{$classifyinfo{'contains'}}, {'OID'=>$url});
89
90 return \%classifyinfo;
91
92
93}
94
95
961;
Note: See TracBrowser for help on using the repository browser.