Changeset 1917 for trunk/gsdl/perllib/mgppbuildproc.pm
- Timestamp:
- 2001-02-07T13:09:29+13:00 (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/perllib/mgppbuildproc.pm
r1852 r1917 324 324 # output all the section metadata 325 325 my $metadata = $doc_obj->get_all_metadata ($section); 326 foreach $pair (@$metadata) {326 foreach my $pair (@$metadata) { 327 327 my ($field, $value) = (@$pair); 328 328 … … 482 482 483 483 # see if this document belongs to this subcollection 484 foreach $indexexp (@{$self->{'indexexparr'}}) {484 foreach my $indexexp (@{$self->{'indexexparr'}}) { 485 485 $indexed_doc = 0; 486 486 my ($field, $exp, $options) = split /\//, $indexexp; … … 525 525 } 526 526 my $doc_section = 0; # just for this document 527 my $text = ""; 528 if ($self->{'num_docs'} == 1) { 529 $text = "<Document>\n"; 530 } 531 else { 532 $text = "</Document><Document>\n"; 533 } 534 my $text_extra = ""; 535 527 my $text = "<Document>\n"; 528 536 529 # get the text for this document 537 530 my $section = $doc_obj->get_top_section(); … … 544 537 if ($indexed_doc) { 545 538 $self->{'num_bytes'} += $doc_obj->get_text_length ($section); 546 foreach $field (split (/,/, $fields)) {539 foreach my $field (split (/,/, $fields)) { 547 540 # only deal with this field if it doesn't start with top or 548 541 # this is the first section … … 618 611 $self->filter_text ($field, $new_text); 619 612 620 #????????????????????621 if ($self->{'indexing_text'} &&622 $new_text =~ /[\(\)\{\}]/) {623 }624 613 $self->{'num_processed_bytes'} += length ($new_text); 625 614 $text .= "$new_text"; … … 630 619 $section = $doc_obj->get_next_section($section); 631 620 } #while defined section 632 print $handle "$text ";621 print $handle "$text\n</Document>\n"; 633 622 } 634 623
Note:
See TracChangeset
for help on using the changeset viewer.