#set( $rootid = $hits.sessionId )
#set($count = 0)
#foreach ($hit in $hits.getPageOfHits())
#set ($sourcepath = $hit.sourcepath)
$context.putPageValue("hit", $hit)
#set( $type = $mediaarchive.getMediaRenderType($hit.fileformat))
$context.putPageValue("type", $type)
#set( $click = "$siteroot$!viewerlink?assetid=$hit.id&categoryid=$catid&hitssessionid=$rootid" )
$context.putPageValue("clink", $clink)
$context.putPageValue("assetid", $hit.id)
$context.putPageValue("count", $count )
$context.putPageValue("click", $click)
$context.putPageValue("sourcepath", $sourcepath)
$pages.include("$componenthome/results/gallery-cell.html", $context)
#set ( $count = $count + 1)
#end
$pages.include("$componenthome/results/pages.html",$context)
#end
#if ( $hits.totalPages == 0 )