#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($content.isPropertyTrue("showactions")) #end #set( $edit = $context.getRequestParameter("editheader")) #if( !$edit || $edit == "false") #set( $edit = false) #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.name ) #if( $edit) #elseif ($sortby.startsWith($detail.getId())) #if($sortby.endsWith("Up")) #set($sorticon="up") #else #set($sorticon="down") #end     #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("${searchhome}/cell.html", $context)
#if($content.isPropertyTrue("showactions")) ##
$pages.include("/${content.searchhome}/selections/togglepage.html")
#end
#if($enablepopup) #end #end ## $pages.include("/${content.searchhome}/actions.html", $context)