- Timestamp:
- 2019-07-18T22:45:22+12:00 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone2/perllib/lucenebuildproc.pm
r28566 r33327 260 260 261 261 if ($section_text ne "") { 262 $new_text .= "$section_text "; 262 263 if ($self->{'allfields_index'}) { 264 $allfields_text .= "$section_text "; 265 } 266 267 if ($self->{'indexing_text'}) { 268 # add the tag 269 $new_text .= "<$shortname index=\"1\">$section_text</$shortname>"; 270 $self->{'allindexfields'}->{$real_field} = 1; 271 } else { 272 $new_text .= "$section_text "; 273 } 263 274 } 264 275 265 276 foreach my $item (@metadata_list) { 266 277 &ghtml::htmlsafe($item); 267 $new_text .= "$item "; 268 } 269 270 if ($self->{'allfields_index'}) { 271 $allfields_text .= $new_text; 272 } 273 274 if ($self->{'indexing_text'}) { 275 # add the tag 276 $new_text = "<$shortname index=\"1\">$new_text</$shortname>"; 277 $self->{'allindexfields'}->{$real_field} = 1; 278 } 278 279 if ($self->{'allfields_index'}) { 280 $allfields_text .= "$item "; 281 } 282 283 if ($self->{'indexing_text'}) { 284 # add the tag 285 $new_text .= "<$shortname index=\"1\">$item</$shortname>"; 286 $self->{'allindexfields'}->{$real_field} = 1; 287 } else { 288 $new_text .= "$item "; 289 } 290 } # end for loop processing @metadata_list 291 279 292 # filter the text 280 293 $new_text = $self->filter_text ($field, $new_text); … … 384 397 push (@metadata_list, @section_metadata); 385 398 } 386 my $new_text = ""; 387 foreach my $item (@metadata_list) { 388 &ghtml::htmlsafe($item); 389 $new_text .= "$item"; 390 } 391 if ($new_text =~ /\S/) { 392 $new_text = "<$sf_shortname index=\"1\" tokenize=\"0\">$new_text</$sf_shortname>"; 393 # filter the text??? 394 $text .= "$new_text"; # add it to the main text block 395 $self->{'actualsortfields'}->{$sfield} = 1; 399 # my $new_text = ""; 400 # foreach my $item (@metadata_list) { 401 # &ghtml::htmlsafe($item); 402 # $new_text .= "$item"; # should be .="$item "; But will be commenting out and rewriting this entire thing, so it doesn't matter 403 # } 404 # if ($new_text =~ /\S/) { 405 # $new_text = "<$sf_shortname index=\"1\" tokenize=\"0\">$new_text</$sf_shortname>"; 406 # # filter the text??? 407 # $text .= "$new_text"; # add it to the main text block 408 # $self->{'actualsortfields'}->{$sfield} = 1; 409 # } 410 411 foreach my $item (@metadata_list) { 412 &ghtml::htmlsafe($item); 413 if ($item =~ /\S/) { 414 $item = "<$sf_shortname index=\"1\" tokenize=\"0\">$item</$sf_shortname>"; 415 $text .= "$item"; # add it to the main text block 416 } 417 } 418 if(scalar @metadata_list > 0) { 419 $self->{'actualsortfields'}->{$sfield} = 1; 396 420 } 397 421 }
Note:
See TracChangeset
for help on using the changeset viewer.