Changeset 8866


Ignore:
Timestamp:
2004-12-21T10:18:34+13:00 (19 years ago)
Author:
kjdon
Message:

if the list is split into only one bucket, then suppress the HList

File:
1 edited

Legend:

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

    r8852 r8866  
    264264    foreach my $subsection (sort keys (%$classhash)) {
    265265    push (@tmparr, $subsection);
     266    }
     267    #if there is only one entry here, we suppress the buckets
     268    if ((scalar @tmparr) == 1) {
     269    $classifyinfo->{'childtype'} = "Vlist";
     270    foreach my $OID (@{$classhash->{@tmparr[0]}}) {
     271        push (@{$classifyinfo->{'contains'}}, {'OID'=>$OID});
     272    }
     273    return $classifyinfo;
    266274    }
    267275   
Note: See TracChangeset for help on using the changeset viewer.