- Timestamp:
- 1999-12-13T16:51:06+13:00 (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/perllib/classify.pm
r811 r831 109 109 sub print_classify_info { 110 110 my ($handle, $classifyinfo, $OID, $allclassifications) = @_; 111 111 112 $OID =~ s/^\.+//; # just for good luck 112 113 … … 132 133 133 134 134 $outputtext .= "<contains>"; 135 my $contains_text = "<contains>"; 136 my $mdoffset_text = "<mdoffset>"; 135 137 136 138 my $next_subOID = 1; … … 140 142 next unless defined $tempinfo; 141 143 142 $outputtext .= ";" unless $first; 144 $contains_text .= ";" unless $first; 145 $mdoffset_text .= ";" unless $first; 143 146 $first = 0; 144 147 145 148 if (defined ($tempinfo->{'classifyOID'})) { 146 $ outputtext .= $tempinfo->{'classifyOID'};149 $contains_text .= $tempinfo->{'classifyOID'}; 147 150 &print_classify_info ($handle, $tempinfo, $tempinfo->{'classifyOID'}, 148 151 $allclassifications); 149 152 } elsif (defined ($tempinfo->{'OID'})) { 150 $outputtext .= $tempinfo->{'OID'}; 153 $contains_text .= $tempinfo->{'OID'}; 154 $mdoffset_text .= $tempinfo->{'offset'} 155 if (defined ($tempinfo->{'offset'})) 151 156 # note: we don't want to print the contents of the books 152 157 } else { 153 $ outputtext .= "\".$next_subOID";158 $contains_text .= "\".$next_subOID"; 154 159 &print_classify_info ($handle, $tempinfo, "$OID.$next_subOID", 155 160 $allclassifications); … … 157 162 } 158 163 } 159 $outputtext .= "\n"; 164 165 $outputtext .= "$contains_text\n"; 166 $outputtext .= "<mdtype>$classifyinfo->{'mdtype'}\n" 167 if defined $classifyinfo->{'mdtype'}; 168 $outputtext .= "$mdoffset_text\n" 169 if ($mdoffset_text !~ m/^<mdoffset>;+$/); 170 160 171 $outputtext .= '-' x 70 . "\n"; 161 172
Note:
See TracChangeset
for help on using the changeset viewer.