#if (!$hit) #set ($hit = $asset) #end #if (!$hit) #set ($hit = $data) #end #set ($sourcepath = $hit.sourcepath) #set ( $urlutils = $context.getPageValue("url_util")) #if ($urlutils) #set ( $sourcepath = $urlutils.encode($sourcepath)) #set ( $sourcepath = $sourcepath.replace("%2F", "/") ) #end #set ($mime = $mediaarchive.getMimeTypeIcon($hit.fileformat)) #set( $thumbpath = "$themeprefix/images/mimetypes/${mime}.png" )
#set( $badges = $mediaarchive.getBadges($hit) )
#if($canshowbadge) #foreach($badge in $badges) #end #end