Changeset 2956


Ignore:
Timestamp:
2002-02-07T16:44:47+13:00 (22 years ago)
Author:
jrm21
Message:

Added Don Gourley's changes for getting Sections to work properly.

File:
1 edited

Legend:

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

    r2955 r2956  
    399399        ## date appears to not be used in classifier call ####
    400400
    401         if ($doc_OID =~ m/^.*\.(\d+)$/)
    402         {
    403             $self->{'classifiers'}->{$node_name}->{'classifyobj'}
    404             ->classify($doc_obj, "Section=$1");
     401        if ($doc_OID =~ m/^[^\.]*\.([\d\.]+)$/)
     402        {
     403            my $section=$1;
     404            if ($self->{'doclevel'} =~ m/^top/i) { # toplevel
     405            $self->{'classifiers'}->{$node_name}->{'classifyobj'}
     406            ->classify($doc_obj, "Section=$section");
     407            } else { # section level
     408            # Thanks to Don Gourley for this...
     409            # classify can't handle multi-level section
     410            $self->{'classifiers'}->{$node_name}->{'classifyobj'}
     411            ->classify_section($section, $doc_obj, $date);
     412            }
    405413        }
    406414        else
Note: See TracChangeset for help on using the changeset viewer.