Ignore:
Timestamp:
2008-11-10T10:32:09+13:00 (15 years ago)
Author:
kjdon
Message:

my previous changes to the text method meant that field tags were being output for text as well as for index. Don't want this - they end up in the HTML and give errors. So now tags are only output if ->'indexing_text'}

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gsdl/trunk/perllib/lucenebuildproc.pm

    r17568 r17797  
    227227        }
    228228
    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        }
    230233        # filter the text
    231234        $new_text = $self->filter_text ($field, $new_text);
     
    234237        $text .= "$new_text";
    235238
    236         if ($new_field) {
     239        if ($self->{'indexing_text'} && $new_field) {
    237240            # we need to add to the list in indexfields
    238241           
Note: See TracChangeset for help on using the changeset viewer.