#set($detailid = $detail.id ) #if( !$detailid) #set( $detailid = $context.getRequestParameter("detailid")) #end #set($idcount = $context.getRequestParameter("idcount")) #if(!$idcount) #set($idcount = "") #end #set($value = $context.getRequestParameter('assetid')) #if($value && $value != "") #set( $foundrow = $mediaarchive.getAsset($value) ) #end #if( $foundrow ) #set( $rootid = $hits.sessionId ) #set( $hit = $foundrow) $context.putPageValue("hit", $hit) #set( $rendertype = $mediaarchive.getMediaRenderType($hit.fileformat)) #if(!$rendertype || $rendertype =="rendertype") #set( $rendertype = "mime" ) #elseif( $rendertype == "video") #set( $rendertype = "videothumbnail" ) #end #if( $hit.previewstatus == "mime" || $alwaysmime) #set( $rendertype = "mime" ) #end $context.putPageValue("type", $rendertype) #set($searchhome = "$!{apphome}/views/modules/asset/results/default") $!context.putPageValue("searchhome", $searchhome) #if($rendertype == "audio") #if($hit.getValue("length")) #set($length = $!mediaarchive.formatMinutesAndSeconds($hit.getValue("length"))) #end $context.putPageValue("length", $length )