Ignore:
Timestamp:
2009-02-03T09:46:33+13:00 (15 years ago)
Author:
davidb
Message:

Addition of 'edit_mode' parameter to classify(). This can be either 'add' 'delete' or 'reindex' (should think about renaming the last one to something more appropriate, e.g. update).

File:
1 edited

Legend:

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

    r17209 r18455  
    123123sub classify {
    124124    my $self = shift (@_);
    125     my ($doc_obj) = @_;
     125    my ($doc_obj, $edit_mode) = @_;
    126126
    127127    my $doc_OID = $doc_obj->get_OID();
     128
    128129
    129130    # are we sorting the list??
     
    133134    }
    134135   
     136    if ($edit_mode eq "delete") {
     137    if ($nosort) {
     138        $self->oid_array_delete($doc_OID,'list');
     139    }
     140    else {
     141        $self->oid_hash_delete($doc_OID,'list');
     142    }
     143    return;
     144    }
     145
    135146    my $metavalue;
    136147    my $metaname;
Note: See TracChangeset for help on using the changeset viewer.