#set( $moduleid = $page.get("module") )
#set ( $defaultview = $userprofile.getDefaultViewForModule($moduleid) )
#set( $searchhome = $page.get("searchhome") )
#if ( $hits.size() == 0 )
$pages.include("${searchhome}/resultsactions.html",$context)
$pages.stream("/${content.searchhome}/empty.html", $context)
#else
#set( $resultdetail = $searcher.getDetailsForView("${moduleid}/${moduleid}resultstable", $userprofile))
##set ( $canedit = $context.getPageValue("${moduleid}edit") )
#set($popupdetail = $searcher.getDetailsForView("${moduleid}/${moduleid}popupdetail"))
#if ($popupdetail && $popupdetail.size() > 0)
#set( $enablepopup = "true")
#end
##Header
$pages.include("${searchhome}/resultsactions.html",$context)
#if( $caneditdata )
#set( $readonly = false)
#else
#set( $readonly = true)
#end
#if($enablepopup)
#end
#end
## $pages.include("/${content.searchhome}/actions.html", $context)