Changeset 677 for trunk/gsdl/perllib/classify/DateList.pm
- Timestamp:
- 1999-10-15T12:36:14+13:00 (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/perllib/classify/DateList.pm
r537 r677 79 79 sub get_entry { 80 80 my $self = shift (@_); 81 my ($title, $c lassifytype) = @_;81 my ($title, $childtype, $thistype) = @_; 82 82 83 83 # organise into classification structure 84 my %classifyinfo = ('c lassifytype'=>$classifytype,84 my %classifyinfo = ('childtype'=>$childtype, 85 85 'Title'=>$title, 86 86 'contains'=>[]); 87 $classifyinfo{'thistype'} = $thistype 88 if defined $thistype && $thistype =~ /\w/; 87 89 88 90 return \%classifyinfo; … … 97 99 98 100 # top level 99 my $classifyinfo = $self->get_entry ("Date", "DateList"); 101 my $childtype = "HList"; 102 if (scalar (@$classlistref) <= 20) {$childtype = "DateList";} 103 my $classifyinfo = $self->get_entry ("Date", $childtype, "Invisible"); 100 104 101 105 # don't need to do any splitting if there are less than 20 classifications … … 164 168 @currentOIDs = (); 165 169 $currentfirstletter = ""; 170 $lastkey = $subsection; 166 171 } else { 167 172 @currentOIDs = @{$classhashref->{$subsection}}; … … 175 180 # add final sub-classification 176 181 if (scalar (@currentOIDs) < $min) { 177 my ($newkey) = $lastkey =~ /^( .)/;182 my ($newkey) = $lastkey =~ /^(\d\d\d\d)/; 178 183 @currentOIDs = (@{$compactedhash->{$lastkey}}, @currentOIDs); 179 184 delete $compactedhash->{$lastkey};
Note:
See TracChangeset
for help on using the changeset viewer.