Changeset 1608
- Timestamp:
- 2000-10-20T16:35:06+13:00 (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/perllib/classify/Hierarchy.pm
r1483 r1608 154 154 if ((defined $self->{'descriptorlist'}->{$metaelement}) && 155 155 (defined $self->{'locatorlist'}->{$self->{'descriptorlist'}->{$metaelement}})) { 156 157 156 push (@{$self->{'locatorlist'}->{$self->{'descriptorlist'}->{$metaelement}}->{'contents'}}, 158 157 [$doc_OID, $sortmeta]); … … 168 167 my $classifyinfo = $self->get_entry ($self->{'title'}, "VList", "Invisible"); 169 168 foreach $OID (keys (%$list)) { 169 170 170 my $tempinfo = $self->get_OID_entry ($OID, $classifyinfo, $list->{$OID}->{'title'}, "VList"); 171 171 … … 190 190 $OID = "" unless defined $OID; 191 191 $OID =~ s/^\.+//; 192 192 193 193 my ($headOID, $tailOID) = $OID =~ /^(\d+)(.*)$/; 194 194 $tailOID = "" unless defined $tailOID; 195 196 195 197 196 if (!defined $headOID) { … … 204 203 205 204 # add entries to the contains list until we have one for headOID 206 while (scalar(@{$classifyinfo->{'contains'}}) < $headOID) { 205 #### the +10 is a hack that works but I'm not completely sure why 206 #### and don't have time to delve deeper. one day someone should 207 #### fix this ;-) -- Stefan 208 while (scalar(@{$classifyinfo->{'contains'}}) <= ($headOID+10)) { 207 209 push (@{$classifyinfo->{'contains'}}, $self->get_entry("", $classifytype)); 208 210 } … … 214 216 my $self = shift (@_); 215 217 my ($title, $childtype, $thistype) = @_; 216 218 217 219 # organise into classification structure 218 220 my %classifyinfo = ('childtype'=>$childtype,
Note:
See TracChangeset
for help on using the changeset viewer.