#set($viewid = $context.viewid) #if(!$viewid) #set($viewid = $context.getRequestParameter("viewid")) #if(!$viewid) #set( $viewid = "${hits.getSearchType()}resultstable" ) #end #end #if ($canedittablecolumns) #if($viewid == "pickerresults") #set($canedittablecolumns = false) #end #end #set($searcher = $hits.getSearcher()) #ifnull($details) #set( $viewdata = $mediaarchive.getCachedData("view",$viewid) ) #set ($details = $viewdata.getDetailsForView($context.getUserProfile())) #end #ifnull($details) #set ($details = $searcher.getDetailsForView($viewid, $context.getUserProfile())) #end #ifnull($details) No details found for $viewid - Searchtype: $searcher.getSearchType() in $content.path #end
#set($searchhome = "$home$apphome/components/table") #set($resultsLink = "${searchhome}/results.html?hitssessionid=$hits.sessionId&searchtype=$hits.getSearchType()&hitsperpage=$!hits.hitsPerPage&viewid=$!viewid") #set($targetdiv = "resultsdiv") #set( $edit = $context.getRequestParameter("editheader")) #if( !$edit || $edit == "false") #set( $edit = false) #end
$pages.include("${apphome}/components/table/pages.html", $context)
#if( $canedittablecolumns )
#if( !$edit ) #else
#set ($alldetails = $searcher.getUserPropertyDetails() )
#end
#end
#if( $hits.size() == 0 ) [[No results found]] #else
#set( $xmledithome = "$apphome/components/xml") #set( $sortby = $hits.getSearchQuery().getSortBy() ) #foreach( $detail in $details ) #end #foreach( $hit in $hits.getPageOfHits() ) #foreach( $detail in $details) #end #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 = "$!hit.get($detail.id)" ) ##TODO: Get rid of this #if($detail.render) #set( $val = $searcherManager.getValue($catalogid, $detail.render, $hit.properties,$context.getLocale())) #end $context.putPageValue("detail",$detail) $context.putPageValue("value",$value) $pages.include("$xmledithome/detailreadonly.html", $context)
#end