#set( $link = "/${applicationid}/views/modules/asset/downloads/preview/large/$asset.sourcepath/preview.jpg")
#if( $hits ) #set($hitssessionid = $hits.sessionId ) #set($indexOf = $hits.indexOfId($asset.id)) #set($previous = $hits.previous($indexOf)) #set($next = $hits.next($indexOf)) #if($previous) #end #if($next) #end #end

#if($asset.caption) $asset.caption #else $asset #end

$pages.include("/${applicationid}/components/mediaviewer/details/index.html",$context) #if ($canviewcomments) $pages.include("$apphome/components/mediaviewer/comments/index.html?sourcepath=$asset.sourcepath",$context) #end