#set( $rootid = $hits.sessionId )
#set($count = 0)
#set( $viewerlink = $content.get("assetviewerlink") )
#foreach ($hit in $hits.getPageOfHits())
#set ($sourcepath = $hit.sourcepath)
$context.putPageValue("hit", $hit)
#set( $type = $mediaarchive.getMediaRenderType($hit.fileformat))
$context.putPageValue("type", $type)
$context.putPageValue("assetid", $hit.id)
$context.putPageValue("count", $count )
$context.putPageValue("sourcepath", $hit.sourcepath )
$context.putPageValue("thumbsize", "mediumplus" )
#set($assetwidth = $mediaarchive.getRealImageWidth($hit))
#set($assetheight = $mediaarchive.getRealImageHeight($hit))
#set($click = "$home$viewerlink?hitssessionid=${hits.getSessionId()}&assetid=${hit.id}")
#set ( $count = $count + 1)
#end
#end
#if ( $hits.totalPages == 0 )