Changeset 10663 for trunk/gsdl/perllib/classify/HFileHierarchy.pm
- Timestamp:
- 2005-09-29T10:54:06+12:00 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/perllib/classify/HFileHierarchy.pm
r10483 r10663 74 74 'desc' => "{Hierarchy.hlist_at_top}", 75 75 'type' => "flag", 76 'reqd' => "no" } ]; 76 'reqd' => "no" }, 77 { 'name' => "documents_last", 78 'desc' => "{Hierarchy.documents_last}", 79 'type' => "flag", 80 'reqd' => "no"} 81 ]; 77 82 78 83 my $options = … … 273 278 274 279 $classifyinfo->{'contains'} = [] unless defined $classifyinfo->{'contains'}; 280 if ($self->{'documents_last'}) { 281 # documents should come after nodes in the classifier 282 283 my $doc_pos = 0; 284 foreach my $thing (@{$classifyinfo->{'contains'}}) { 285 last if defined $thing->{'OID'}; 286 $doc_pos++; 287 } 288 289 while ($doc_pos < $headOID) { 290 splice(@{$classifyinfo->{'contains'}}, $doc_pos, 0, $self->get_entry("", $classifytype)); 291 $doc_pos++; 292 } 293 294 return $self->get_OID_entry ($tailOID, $classifyinfo->{'contains'}->[($headOID-1)], $title, $classifytype); 295 296 } 297 298 # else, documents come before nodes 275 299 my $offset = 0; 276 300 foreach my $thing (@{$classifyinfo->{'contains'}}) {
Note:
See TracChangeset
for help on using the changeset viewer.