#set( $moduleid = $context.findValue("searchtype") ) #set ( $defaultview = $userprofile.getDefaultViewForModule($moduleid) ) #set( $searchhome = $context.findValue("searchhome") ) #if ( $hits.size() == 0 ) $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 #set($module = $searcherManager.getData($catalogid, "module", $moduleid ) )
#if($content.isPropertyTrue("showactions")) #end #set( $sortby = $hits.getSearchQuery().getSortBy() ) #foreach( $detail in $resultdetail ) #end #set( $even = true ) #set($count = 0) #foreach ( $cell in $hits.getPageOfHits() ) $context.putPageValue('data', $cell) $context.putPageValue('cell', $cell) #set( $clink = "$home${content.linkprefix}${cell.id}${content.linksuffix}" ) #if($content.isPropertyTrue("showactions")) #end #foreach( $detail in $resultdetail ) #end #set($count = $count + 1) #end
#text( $detail.text ) #if( $edit) #end
#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('detail', $detail) $pages.include("/${content.searchhome}/cell.html", $context)
$pages.stream("/${content.searchhome}/navigate.html", $context) #if($enablepopup) #end #end ## $pages.include("/${content.searchhome}/actions.html", $context)