{if ($secfacetterm == "Image" || $record->artefacttype == 'profileicon') && $record->thumb}

{if $record->link} {$record->title|str_shorten_html:50:true|safe} {else} {$record->title|str_shorten_html:50:true|safe} {/if}

{elseif $record->artefacttype == 'socialprofile'} {$record->note}

{if $record->link} {$record->title|str_shorten_html:50:true|safe} {else} {$record->title|str_shorten_html:50:true|safe} {/if}

{else}

{if $record->link} {$record->title|str_shorten_html:50:true|safe} {else} {$record->title|str_shorten_html:50:true|safe} {/if}

{/if} {if $secfacetterm == "Journalentry"} ({str tag=blogpost section=search.elasticsearch}) {elseif $secfacetterm == "Forumpost"} ({str tag=forumpost section=search.elasticsearch}) {elseif $secfacetterm == "Resume"} ({str tag=resume section=search.elasticsearch}) {elseif $secfacetterm == "Wallpost"} ({str tag=wallpost section=search.elasticsearch}) {else} ({$secfacetterm}) {/if} {if $record->deleted} ({str tag=deleted section=search.elasticsearch}) {/if} {if $record->createdbyname}
{str tag=createdby section=search.elasticsearch arg1='`$record->createdbyname`'}
{/if}
{if $record->highlight} {$record->highlight|safe} {else} {$record->description|str_shorten_html:140:true|safe} {/if}
{if $record->tags|count gt 0}
{str tag=tags section=search.elasticsearch}: {foreach from=$record->tags item=tag name=tags} {$tag}{if !$.foreach.tags.last}, {/if} {/foreach}
{/if}
{if $record->resumeitems|count gt 0} {str tag=contains section=search.elasticsearch}: {/if} {if $record->views|count gt 0} {/if}