expand macros in the synopsis shown by the Search asset

This commit is contained in:
Colin Kuskie 2008-11-21 18:41:55 +00:00
parent c4255305c0
commit f4db27c76b
3 changed files with 11 additions and 7 deletions

View file

@ -217,8 +217,10 @@ sub view {
#Add highlighting
$properties->{'title' } = $hl->highlight($properties->{title} || '');
$properties->{'title_nohighlight' } = $properties->{title};
$properties->{'synopsis' } = $hl->highlight($properties->{synopsis} || '');
$properties->{'synopsis_nohighlight'} = $properties->{synopsis};
my $synopsis = $properties->{'synopsis'} || '';
WebGUI::Macro::process($self->session, \$synopsis);
$properties->{'synopsis' } = $hl->highlight($synopsis);
$properties->{'synopsis_nohighlight'} = $synopsis;
push(@results, $properties);
$var{results_found} = 1;
}