Ignore:
Timestamp:
2004-10-06T05:38:35+13:00 (20 years ago)
Author:
cs025
Message:

Added AllList to provide a universal list of all documents, which
supports OAI in particular at this early date. Also, changes to
Hierarchy and List to support 'memberof' function, and BasClas
ditto.

File:
1 edited

Legend:

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

    r7835 r8221  
    208208    $self->{'list'}->{$doc_OID} = $metavalue;
    209209    }
     210    my $id = $self->get_number();
     211    $doc_obj->add_metadata($doc_obj->get_top_section(), "memberof", "CL$id");
    210212}
    211213
     
    215217    my ($no_thistype) = @_;
    216218    $no_thistype = 0 unless defined $no_thistype;
     219    my $memberof = &supports_memberof();
    217220
    218221    my @list = ();
     
    231234            'contains'=>[]);
    232235    $classifyinfo{'thistype'} = 'Invisible' unless $no_thistype;
     236    # always supports memberof
     237    $classifyinfo{'supportsmemberof'} = $memberof;
    233238
    234239    foreach $OID (@list) {
     
    246251}
    247252
     253sub supports_memberof {
     254    my $self = shift(@_);
     255
     256    return "true";
     257}
    248258
    2492591;
Note: See TracChangeset for help on using the changeset viewer.