Changeset 244 for trunk/gsdl/perllib/classify
- Timestamp:
- 1999-04-23T11:11:34+12:00 (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/perllib/classify/AZClassify.pm
r240 r244 69 69 my @contents = (); 70 70 map { push (@contents, "\".$_->[1]"); } @$subclasses; 71 72 71 # write out top level entry 73 72 $self->output_entry ($handle, $self->{'OID'}, $self->{'metaname'}, \@contents, "List"); … … 104 103 if ($title =~ /^[0-9]$/) {$title = '0-9';} 105 104 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 } 107 107 $classhash->{$title} = [] unless defined $classhash->{$title}; 108 108 push (@{$classhash->{$title}}, $classification); … … 113 113 my $count = 1; 114 114 foreach $subsection (sort keys (%$classhash)) { 115 push (@$ arr, [$subsection, $count, $classhash->{$subsection}]);115 push (@$rarr, [$subsection, $count, $classhash->{$subsection}]); 116 116 $count ++; 117 117 } 118 return $ arr;118 return $rarr; 119 119 } 120 120 … … 137 137 138 138 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 } 140 143 $currentfirstletter = $subsection if $currentfirstletter eq ""; 141 144 if ((scalar (@currentOIDs) < $min) || … … 228 231 $$stringref =~ s/^\s+//; 229 232 } 230 231 233 232 234 1;
Note:
See TracChangeset
for help on using the changeset viewer.