Changeset 15725 for gsdl/trunk/perllib/classify.pm
- Timestamp:
- 2008-05-27T15:02:16+12:00 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
gsdl/trunk/perllib/classify.pm
r15705 r15725 233 233 sub reconstruct_doc_objs_metadata 234 234 { 235 my ($infodb_file_path) = @_; 235 my $infodb_type = shift(@_); 236 my $infodb_file_path = shift(@_); 236 237 237 238 my %database_recs; 238 &dbutil::read_infodb_file($infodb_ file_path, \%database_recs);239 &dbutil::read_infodb_file($infodb_type, $infodb_file_path, \%database_recs); 239 240 240 241 # dig out top level doc sections … … 293 294 sub output_classify_info 294 295 { 295 my ($classifiers, $infodb_ handle, $remove_empty_classifications, $gli) = @_;296 my ($classifiers, $infodb_type, $infodb_handle, $remove_empty_classifications, $gli) = @_; 296 297 297 298 $gli = 0 unless defined $gli; … … 313 314 } 314 315 315 &print_classify_info ($infodb_handle, $classifyinfo, "", $remove_empty_classifications);316 &print_classify_info($infodb_type, $infodb_handle, $classifyinfo, "", $remove_empty_classifications); 316 317 } 317 318 … … 319 320 sub print_classify_info 320 321 { 321 my ($infodb_ handle, $classifyinfo, $OID, $remove_empty_classifications) = @_;322 my ($infodb_type, $infodb_handle, $classifyinfo, $OID, $remove_empty_classifications) = @_; 322 323 323 324 $OID =~ s/^\.+//; # just for good luck … … 381 382 #rint STDERR "Result: \"" . join(";", @{$clids}) . "\"\n"; 382 383 383 &print_classify_info ($infodb_ handle, $tempinfo, $tempinfo->{'classifyOID'},384 &print_classify_info ($infodb_type, $infodb_handle, $tempinfo, $tempinfo->{'classifyOID'}, 384 385 $remove_empty_classifications); 385 386 } elsif (defined ($tempinfo->{'OID'})) { … … 426 427 #rint STDERR "Result: \"" . join(";", @{$clids}) . "\"\n"; 427 428 428 &print_classify_info ($infodb_ handle, $tempinfo, "$OID.$next_subOID",429 &print_classify_info ($infodb_type, $infodb_handle, $tempinfo, "$OID.$next_subOID", 429 430 $remove_empty_classifications); 430 431 $next_subOID++; … … 438 439 if ($mdoffset_text !~ m/^;+$/); 439 440 440 &dbutil::write_infodb_entry($infodb_ handle, $OID, \%classify_infodb);441 &dbutil::write_infodb_entry($infodb_type, $infodb_handle, $OID, \%classify_infodb); 441 442 } 442 443
Note:
See TracChangeset
for help on using the changeset viewer.