Ignore:
Timestamp:
1999-04-23T11:11:34+12:00 (25 years ago)
Author:
sjboddie
Message:

fixed a couple of bugs

File:
1 edited

Legend:

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

    r240 r244  
    6969    my @contents = ();
    7070    map { push (@contents, "\".$_->[1]"); } @$subclasses;
    71 
    7271    # write out top level entry
    7372    $self->output_entry ($handle, $self->{'OID'}, $self->{'metaname'}, \@contents, "List");
     
    104103    if ($title =~ /^[0-9]$/) {$title = '0-9';}
    105104    elsif ($title !~ /^[A-Z]$/) {
    106         print STDERR "AZClassify: WARNING $classification has badly formatted title ($title)\n";}
     105        print STDERR "AZClassify: WARNING $classification has badly formatted title ($title)\n";
     106    }
    107107    $classhash->{$title} = [] unless defined $classhash->{$title};
    108108    push (@{$classhash->{$title}}, $classification);
     
    113113    my $count = 1;
    114114    foreach $subsection (sort keys (%$classhash)) {
    115     push (@$arr, [$subsection, $count, $classhash->{$subsection}]);
     115    push (@$rarr, [$subsection, $count, $classhash->{$subsection}]);
    116116    $count ++;
    117117    }
    118     return $arr;
     118    return $rarr;
    119119}
    120120
     
    137137
    138138    foreach $subsection (sort keys %$classhashref) {
    139     next if $subsection eq '0-9';
     139    if ($subsection eq '0-9') {
     140        @{$compactedhash->{$subsection}} = @{$classhashref->{$subsection}};
     141        next;
     142    }
    140143    $currentfirstletter = $subsection if $currentfirstletter eq "";
    141144    if ((scalar (@currentOIDs) < $min) ||
     
    228231    $$stringref =~ s/^\s+//;
    229232}
    230    
    231233
    2322341;
Note: See TracChangeset for help on using the changeset viewer.