Changeset 17287 for gsdl/trunk/perllib
- Timestamp:
- 2008-09-15T12:33:09+12:00 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
gsdl/trunk/perllib/lucenebuildproc.pm
r17110 r17287 303 303 if ($self->get_mode() eq "incinfodb") 304 304 { 305 print STDERR "*** Processing a document added using INCINFODB ***\n" ;305 print STDERR "*** Processing a document added using INCINFODB ***\n" if ($self->{'verbosity'} > 3); 306 306 my ($archivedir) = $file =~ /^(.*?)(?:\/|\\)[^\/\\]*$/; 307 307 $archivedir = "" unless defined $archivedir; … … 311 311 312 312 # Number of files 313 print STDERR "There are " . scalar( $doc_obj->get_assoc_files()) . " associated documents...\n";313 print STDERR "There are " . scalar(@{$doc_obj->get_assoc_files()}) . " associated documents...\n" if ($self->{'verbosity'} > 3); 314 314 315 315 # resolve the final filenames of the files associated with this document … … 329 329 330 330 my $section = $doc_obj->get_top_section (); 331 print STDERR "+ top section: '$section'\n" ;331 print STDERR "+ top section: '$section'\n" if ($self->{'verbosity'} > 3); 332 332 my $doc_OID = $doc_obj->get_OID(); 333 333 my $url = ""; 334 334 while (defined $section) 335 335 { 336 print STDERR "+ processing section: '$section'\n" ;336 print STDERR "+ processing section: '$section'\n" if ($self->{'verbosity'} > 3); 337 337 # Attach all the other metadata to this document 338 338 # output the fact that this document is a document (unless doctype … … 341 341 if (!defined $dtype || $dtype !~ /\w/) 342 342 { 343 $doc_obj->add_utf8_metadata($section, "doctype", $dtype); 343 #$doc_obj->add_utf8_metadata($section, "doctype", $dtype); 344 $doc_obj->add_utf8_metadata($section, "doctype", "doc"); 344 345 } 345 346 # output whether this node contains text … … 380 381 } 381 382 #output the matching doc number 382 print STDERR "+ docnum=" . $self->{'numincdocs'} . "\n" ;383 print STDERR "+ docnum=" . $self->{'numincdocs'} . "\n" if ($self->{'verbosity'} > 3); 383 384 $doc_obj->add_utf8_metadata($section, "docnum", $self->{'numincdocs'}); 384 385 … … 388 389 last if ($self->{'db_level'} eq "document"); 389 390 } 390 print STDERR "\n*** incrementally add metadata from document at: " . $file . "\n" ;391 print STDERR "\n*** incrementally add metadata from document at: " . $file . "\n" if ($self->{'verbosity'} > 3); 391 392 &IncrementalBuildUtils::addDocument($self->{'collection'}, $doc_obj, $doc_obj->get_top_section()); 392 393 }
Note:
See TracChangeset
for help on using the changeset viewer.