use BSE::Util::Tags qw(tag_article);
use BSE::Request;
-our $VERSION = "1.002";
+our $VERSION = "1.003";
my %actions =
(
for my $type (qw(keyword author pageTitle file_displayName
file_description file_notes summary description product_code)) {
$highlight_prefix{$type} =
- $cfg->entry('search highlight', "${type}_prefix", "<b>");
+ $cfg->entry('search highlight', "${type}_prefix", $cfg->entry('search highlight', "prefix", "<b>"));
$highlight_suffix{$type} =
- $cfg->entry('search highlight', "${type}_suffix", "</b>");
+ $cfg->entry('search highlight', "${type}_suffix", $cfg->entry('search highlight', "suffix", "</b>"));
}
my $page_num_iter = 0;
$text = escape_html($text);
- my $prefix = $cfg->entry('search highlight', "${arg}_prefix", "<b>");
- my $suffix = $cfg->entry('search highlight', "${arg}_suffix", "</b>");
+ my $prefix = $cfg->entry('search highlight', "${arg}_prefix", $cfg->entry('search highlight', "prefix", "<b>"));
+ my $suffix = $cfg->entry('search highlight', "${arg}_suffix", $cfg->entry('search highlight', "suffix", "</b>"));
$text =~ s/$words_re/$prefix$1$suffix/g;
=cut
-our $VERSION = "1.020";
+our $VERSION = "1.021";
my $excerptSize = 300;
}
my $highlight_prefix =
- $cfg->entry('search highlight', "${type}_prefix", "<b>");
+ $cfg->entry('search highlight', "${type}_prefix", $cfg->entry('search highlight', "prefix", "<b>"));
my $highlight_suffix =
- $cfg->entry('search highlight', "${type}_suffix", "</b>");
+ $cfg->entry('search highlight', "${type}_suffix", $cfg->entry('search highlight', "suffix", "</b>"));
my $termSize = $excerptSize / @found;
my $result = '';
for my $term (@found) {