Changeset 18455 for gsdl/trunk/perllib/classify/GenericList.pm
- Timestamp:
- 2009-02-03T09:46:33+13:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
gsdl/trunk/perllib/classify/GenericList.pm
r17209 r18455 194 194 { 195 195 my $self = shift(@_); 196 my $doc_obj = shift(@_);196 my ($doc_obj,$edit_mode) = @_; 197 197 198 198 # If "-classify_sections" is set, classify every section of the document … … 200 200 my $section = $doc_obj->get_next_section($doc_obj->get_top_section()); 201 201 while (defined $section) { 202 $self->classify_section($doc_obj, $doc_obj->get_OID() . ".$section", $section );202 $self->classify_section($doc_obj, $doc_obj->get_OID() . ".$section", $section, $edit_mode); 203 203 $section = $doc_obj->get_next_section($section); 204 204 } … … 206 206 # Otherwise just classify the top document section 207 207 else { 208 $self->classify_section($doc_obj, $doc_obj->get_OID(), $doc_obj->get_top_section() );208 $self->classify_section($doc_obj, $doc_obj->get_OID(), $doc_obj->get_top_section(), $edit_mode); 209 209 } 210 210 } … … 214 214 { 215 215 my $self = shift(@_); 216 my $doc_obj = shift(@_); 217 my $section_OID = shift(@_); 218 my $section = shift(@_); 216 my ($doc_obj,$section_OID,$section,$edit_mode) = @_; 219 217 220 218 my @metadata_groups = @{$self->{'metadata_groups'}}; … … 235 233 return if (!$classify_section); 236 234 235 if ($edit_mode eq "delete") { 236 $self->oid_array_delete($section_OID,'OIDs'); 237 return; 238 } 239 237 240 # Otherwise, include this section in the classifier 238 241 push(@{$self->{'OIDs'}}, $section_OID);
Note:
See TracChangeset
for help on using the changeset viewer.