#if ($type=="video")
#set( $imagelink = "/${mediadbappid}/services/module/asset/players/html5/index.html")
$pages.include($imagelink, $context)
#else
#set($imagelink = $mediaarchive.asLinkToPreview($hit, null, $imagesize, true))

#end
#set($hitcaptions = $hit.getValue("headline"))
#ifnull($hitcaptions)
#set($hitcaptions = $hit.getValue("longcaption"))
#end
#if($publishing.image_caption_enabled == true)
#ifnotnull($hitcaptions)
#set( $caption = $!{hitcaptions.get($context.language)} )
#ifnull($caption)
#set( $caption = $!{hitcaptions} )
#end
$caption
#end
#end
#ifnotnull($hit.creator)
© $!{hit.creator}
#end