### style
### style="border-style: solid;border-width: 1px; color:red;"
#set( $showtoolbar = "true")
$context.putPageValue("showtoolbar", $showtoolbar)
#if( $hideheader && $hideheader != "true")
$pages.include("$componenthome/results/header.html",$context)
#end
$pages.include("$componenthome/results/hierarchy-categories.html",$context)
$context.putPageValue("assetrootfolder", "/$catalogid/assets")
#if( !$thumbsize )
#set( $thumbsize = "thumb" )
$context.putPageValue("thumbsize", "thumb")
#end
#if( $category )
#set( $catid = $category.id )
#else
#set( $catid = "index" )
#end
$context.putPageValue("category",$catid)
#if ( $hits && $hits.size() > 0 )
#set( $details = $mediaarchive.getAssetSearcher().getDetailsForView("asset/resultstable",$context.getUserProfile()) )
$context.putPageValue("details",$details)
#set( $viewerlink = $content.get("assetviewerlink") )
#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 = "$home$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)
#elseif ( $hits.totalPages == 0 )
[[No results found.]]
#end