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

    r17209 r18455  
    6363sub classify {
    6464    my $self = shift (@_);
    65     my ($doc_obj, @options) = @_;
     65    my ($doc_obj, $edit_mode, @options) = @_;
    6666   
    6767    # @options used by AZCompactList when is uses SectionList internally
     
    9797    if (defined $thissection) {
    9898    # just classify the one section
    99     $self->classify_section($thissection, $doc_obj, $sortmeta, $nosort);
     99    $self->classify_section($thissection, $doc_obj, $edit_mode, $sortmeta, $nosort);
    100100    } else   
    101101    {
    102102    $thissection = $doc_obj->get_next_section ($doc_obj->get_top_section());
    103103    while (defined $thissection) {
    104         $self->classify_section($thissection, $doc_obj, $sortmeta, $nosort);
     104        $self->classify_section($thissection, $doc_obj, $edit_mode, $sortmeta, $nosort);
    105105        $thissection = $doc_obj->get_next_section ($thissection);
    106106    }
     
    110110sub classify_section {
    111111    my $self = shift (@_);
    112     my ($section, $doc_obj, $sortmeta, $nosort) = @_;
     112    my ($section, $doc_obj, $edit_mode, $sortmeta, $nosort) = @_;
    113113
    114114    my $doc_OID = $doc_obj->get_OID();
Note: See TracChangeset for help on using the changeset viewer.