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 | use BasClas;
|
---|
27 | package Browse;
|
---|
28 |
|
---|
29 | use sorttools;
|
---|
30 |
|
---|
31 | sub BEGIN {
|
---|
32 | @ISA = ('BasClas');
|
---|
33 | }
|
---|
34 |
|
---|
35 | sub print_usage {
|
---|
36 | print STDERR "
|
---|
37 | usage: classify Browse
|
---|
38 | This classifier has no options (yet).
|
---|
39 | ";
|
---|
40 | }
|
---|
41 |
|
---|
42 | sub new {
|
---|
43 | my $class = shift (@_);
|
---|
44 | my $self = new BasClas($class, @_);
|
---|
45 |
|
---|
46 |
|
---|
47 | # classifier information
|
---|
48 | $self->{'collection'} = $ENV{'GSDLCOLLECTION'};
|
---|
49 |
|
---|
50 | $self->{'title'} = "Browse";
|
---|
51 |
|
---|
52 | return bless $self, $class;
|
---|
53 | }
|
---|
54 |
|
---|
55 | sub init {
|
---|
56 | my $self = shift (@_);
|
---|
57 |
|
---|
58 |
|
---|
59 | }
|
---|
60 |
|
---|
61 | sub classify {
|
---|
62 | my $self = shift (@_);
|
---|
63 |
|
---|
64 | }
|
---|
65 |
|
---|
66 | sub get_classify_info {
|
---|
67 | my $self = shift (@_);
|
---|
68 |
|
---|
69 |
|
---|
70 | # Return the information about the classifier that we'll later want to
|
---|
71 | # use to create macros when the Phind classifier document is displayed.
|
---|
72 | my %classifyinfo = ('thistype'=>'Invisible',
|
---|
73 | 'Title'=>$self->{'title'},
|
---|
74 | 'contains'=>[]);
|
---|
75 |
|
---|
76 | my $collection = $self->{'collection'};
|
---|
77 | my $url = "library?a=br&c=collection";
|
---|
78 | push (@{$classifyinfo{'contains'}}, {'OID'=>$url});
|
---|
79 |
|
---|
80 | return \%classifyinfo;
|
---|
81 |
|
---|
82 |
|
---|
83 | }
|
---|
84 |
|
---|
85 |
|
---|
86 | 1;
|
---|