Changeset 17797
- Timestamp:
- 2008-11-10T10:32:09+13:00 (15 years ago)
- Location:
- gsdl/trunk/perllib
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
gsdl/trunk/perllib/lucenebuildproc.pm
r17568 r17797 227 227 } 228 228 229 $new_text = "<$shortname index=\"1\">$new_text</$shortname>"; 229 if ($self->{'indexing_text'}) { 230 # add the tag 231 $new_text = "<$shortname index=\"1\">$new_text</$shortname>"; 232 } 230 233 # filter the text 231 234 $new_text = $self->filter_text ($field, $new_text); … … 234 237 $text .= "$new_text"; 235 238 236 if ($ new_field) {239 if ($self->{'indexing_text'} && $new_field) { 237 240 # we need to add to the list in indexfields 238 241 -
gsdl/trunk/perllib/mgppbuildproc.pm
r17567 r17797 340 340 # now we add the text and/or the metadata into new_text 341 341 if ($section_text ne "" || scalar(@metadata_list)) { 342 $new_text .= "$paratag<$shortname>"; 343 342 if ($self->{'indexing_text'}) { 343 # only add tags in if indexing 344 $new_text .= "$paratag<$shortname>"; 345 } 344 346 if ($section_text ne "") { 345 347 $new_text .= "$section_text "; 346 if ($ paratag ne "" && scalar(@metadata_list)) {348 if ($self->{'indexing_text'} && $paratag ne "" && scalar(@metadata_list)) { 347 349 $new_text .= "</$shortname>$paratag<$shortname>"; 348 350 } … … 351 353 $new_text .= "$item "; 352 354 } 353 $new_text .= "</$shortname>"; 354 355 if ($new_field) { 355 if ($self->{'indexing_text'}) { 356 # only add tags in if indexing 357 $new_text .= "</$shortname>"; 358 } 359 if ($self->{'indexing_text'} && $new_field) { 356 360 # we need to add to the list in indexfields 357 361
Note:
See TracChangeset
for help on using the changeset viewer.