#if( !$related )
#set ( $hitssessionid = $context.findValue("hitssessionid") )
#set ( $related = $context.getSessionValue($hitssessionid) )
#end
#set( $pagenum = $context.getRequestParameter("page") )
#if( $pagenum )
#set( $pageval = 1)
#set( $pageval = $pageval.parseInt($pagenum))
$related.setPage($pageval)
#end
#if( $hideheader && $hideheader == "false")
$pages.include("$apphome/components/results/header.html",$context)
#end
$context.putPageValue("assetrootfolder", "/$catalogid/assets")
#set( $thumbsize = $context.findValue("thumbsize") )
#if( $category )
#set( $catid = $category.id )
#else
#set( $catid = "index" )
#end
#set( $editlink = $content.get("asseteditlink") )
#if ( $related && $related.size() > 0 )
#set( $details = $mediaarchive.getAssetSearcher().getDetailsForView("asset/resultstable",$context.getUserProfile()) )
$context.putPageValue("details",$details)
#end