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

@ -45,6 +45,7 @@
- fixed #9039: Synopsis not output as a meta field
- fixed #9132: usage error in Hover Help
- fixed #4181: hoover help for 'encrypt login' is wrong
- fixed #4186: search results (macro not expanded in the synopsis field)
7.6.3
- improved performance of file uploads

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;
}

View file

@ -130,13 +130,14 @@ our $I18N = { ##hashref of hashes
},
'synopsis' => {
message => q|The synopsis of the Asset found in the search.|,
lastUpdated => 1169843465,
message => q|The synopsis of the Asset found in the search. Macros in the synopsis will be expanded.|,
lastUpdated => 1227292885,
},
'assetId' => {
message => q|The assetId of the Asset found in the search.|,
lastUpdated => 1169843465,
},
message => q|The assetId of the Asset found in the search.|,
lastUpdated => 1169843465,
},
'results_found' => {
message => q|A conditional variable that will be true if any results were found.|,