expand macros in the synopsis shown by the Search asset
This commit is contained in:
parent
c4255305c0
commit
f4db27c76b
3 changed files with 11 additions and 7 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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.|,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue