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/RecentDocumentsList.pm

    r17209 r18455  
    124124sub classify {
    125125    my $self = shift (@_);
    126     my ($doc_obj) = @_;
     126    my ($doc_obj,$edit_mode) = @_;
    127127
    128128    my $doc_OID = $doc_obj->get_OID();
     
    130130    if (!defined $lastmodified || $lastmodified eq "") {
    131131    print $self->{'outhandle'}, "RecentDocumentsList: $doc_OID has no lastmodified metadata, not classifying\n";
     132    return;
     133    }
     134
     135    if ($edit_mode eq "delete") {
     136    $self->oid_hash_delete($doc_OID,'list');
    132137    return;
    133138    }
Note: See TracChangeset for help on using the changeset viewer.