Changeset 12356
- Timestamp:
- 2006-07-31T16:29:33+12:00 (18 years ago)
- Location:
- trunk/gsdl/perllib
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/perllib/lucenebuildproc.pm
r12274 r12356 147 147 # sections match up with gdbm db 148 148 my $indexed_section = $doc_obj->get_metadata_element($section, "gsdldoctype") || "indexed_section"; 149 if (!$indexed_doc || $indexed_section ne "indexed_section") {149 if (!$indexed_doc || ($indexed_section ne "indexed_section" && $indexed_section ne "indexed_doc")) { 150 150 $text .= "\n</$sectiontag>\n" if ($sectiontag ne ""); 151 151 $section = $doc_obj->get_next_section($section); -
trunk/gsdl/perllib/mgbuildproc.pm
r12274 r12356 86 86 87 87 my $indexed_section = $doc_obj->get_metadata_element($section, "gsdldoctype") || "indexed_section"; 88 if ( $indexed_doc && $indexed_section eq "indexed_section") {88 if (($indexed_doc) && ($indexed_section eq "indexed_section" || $indexed_section eq "indexed_doc")) { 89 89 $self->{'num_bytes'} += $doc_obj->get_text_length ($section); 90 90 foreach my $field (split (/,/, $fields)) { -
trunk/gsdl/perllib/mgppbuildproc.pm
r12274 r12356 195 195 # only output this document if it is one to be indexed 196 196 return if ($doc_obj->get_doc_type() ne "indexed_doc"); 197 197 198 198 my $indexed_doc = $self->is_subcollection_doc($doc_obj); 199 199 … … 239 239 $self->{'num_sections'} += 1; 240 240 $text .= "$sectiontag"; 241 241 242 242 my $indexed_section = $doc_obj->get_metadata_element($section, "gsdldoctype") || "indexed_section"; 243 if ( !$indexed_doc || $indexed_section ne "indexed_section") {243 if ((!$indexed_doc) || ($indexed_section ne "indexed_section" && $indexed_section ne "indexed_doc")) { 244 244 # we are not actually indexing anything for this document, 245 245 # but we want to keep the section numbers the same, so we just … … 250 250 251 251 $self->{'num_bytes'} += $doc_obj->get_text_length ($section); 252 253 252 foreach my $field (split (/;/, $fields)) { 254 253 # only deal with this field if it doesn't start with top or
Note:
See TracChangeset
for help on using the changeset viewer.