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

    r17288 r18455  
    280280# classify_doc lets each of the classifiers classify a document
    281281sub classify_doc {
    282     my ($classifiers, $doc_obj) = @_;
     282    my ($classifiers, $doc_obj, $edit_mode) = @_;
    283283   
    284284    foreach my $classobj (@$classifiers) {
    285285    my $title = $classobj->{'title'};
    286     $classobj->classify($doc_obj);
     286    $classobj->classify($doc_obj,$edit_mode);
    287287    }
    288288}
Note: See TracChangeset for help on using the changeset viewer.