Changeset 12274
- Timestamp:
- 2006-07-21T15:54:02+12:00 (18 years ago)
- Location:
- trunk/gsdl/perllib
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/perllib/lucenebuildproc.pm
r12272 r12274 146 146 # but we need to put the section tag placeholders in there so the 147 147 # sections match up with gdbm db 148 if (!$indexed_doc) { 148 my $indexed_section = $doc_obj->get_metadata_element($section, "gsdldoctype") || "indexed_section"; 149 if (!$indexed_doc || $indexed_section ne "indexed_section") { 149 150 $text .= "\n</$sectiontag>\n" if ($sectiontag ne ""); 150 151 $section = $doc_obj->get_next_section($section); -
trunk/gsdl/perllib/mgbuildproc.pm
r10474 r12274 85 85 $self->{'num_sections'} += 1; 86 86 87 if ($indexed_doc) { 87 my $indexed_section = $doc_obj->get_metadata_element($section, "gsdldoctype") || "indexed_section"; 88 if ($indexed_doc && $indexed_section eq "indexed_section") { 88 89 $self->{'num_bytes'} += $doc_obj->get_text_length ($section); 89 90 foreach my $field (split (/,/, $fields)) { -
trunk/gsdl/perllib/mgppbuildproc.pm
r10961 r12274 240 240 $text .= "$sectiontag"; 241 241 242 if (!$indexed_doc) { 242 my $indexed_section = $doc_obj->get_metadata_element($section, "gsdldoctype") || "indexed_section"; 243 if (!$indexed_doc || $indexed_section ne "indexed_section") { 243 244 # we are not actually indexing anything for this document, 244 245 # but we want to keep the section numbers the same, so we just
Note:
See TracChangeset
for help on using the changeset viewer.