#set( $moduleid = $context.findValue("module") ) #set ( $defaultview = $userprofile.getDefaultViewForModule($moduleid) ) #set( $searchhome = $context.findValue("searchhome") ) #if ( $hits.size() == 0 ) $pages.stream("/${content.searchhome}/empty.html", $context) #else #set( $resultdetail = $testbench.getDetailsForView("${moduleid}/${moduleid}resultstable")) ##set ( $canedit = $context.getPageValue("${moduleid}edit") ) #set($popupdetail = $testbench.getDetailsForView($searcher,"${moduleid}/${moduleid}popupdetail")) #if ($popupdetail && $popupdetail.size() > 0) #set( $enablepopup = "true") #end #set($module = $searcherManager.getData($catalogid, "module", $moduleid ) )
|
|
#end
#set( $sortby = $hits.getSearchQuery().getSortBy() )
#foreach( $detail in $resultdetail )
#end #if($content.isPropertyTrue("enablefavourites")) | [[Favourite]] | #end
|---|---|---|
|
|
#end
#foreach( $detail in $resultdetail )
#set($val = false)
#set( $val = $cell.get($detail.id) )
#if( !$val && $detail.render )
#set($val = $searcherManager.getValue($catalogid,$detail.render, $cell.properties) )
#end
#if( !$val )
#set($val = "")
#end
$context.putPageValue('val', $val)
$context.putPageValue('value', $val)
$context.putPageValue('detail', $detail)
$pages.include("/${content.searchhome}/cell.html", $context)
|
#end
#if($content.isPropertyTrue("enablefavourites"))
$pages.include("$content.searchhome/favourite.html", $context) | #end