#set($hits = $pickerhits) $context.putPageValue("hits",$hits) #set( $componenthome = "$home$apphome/components/assetpicker/search") #set( $searcher = $mediaarchive.getSearcher("asset") ) $context.putPageValue("searcher", $searcher) #set( $viewid = "pickerresults" ) #set ($details = $searcher.getDetailsForView("asset/$viewid", $userprofile))
$context.putPageValue("details",$details) $context.putPageValue("clickpath","$apphome/views/assets/") $context.putPageValue("viewpostfix",".html") #set($resultsLink = "$componenthome/results.html?hitssessionid=$hits.sessionId&searchtype=$hits.getSearchType()&hitsperpage=$!hits.hitsPerPage&oemaxlevel=1&viewid=$!viewid") #set($targetdiv = "dialogsearchresults") #set( $edit = $context.getRequestParameter("editheader")) #if( !$edit || $edit == "false") #set( $edit = false) #end
#if( !$edit ) $pages.include("./pages.html", $context) #end
#if( $canedittablecolumns )
#if( !$edit ) #else
#set ($alldetails = $searcher.getUserPropertyDetails() )
#end
#end
#set( $xmledithome = "$apphome/components/xml") #set( $action = $context.getRequestParameter("actionurl") ) #set( $sortby = $hits.getSearchQuery().getSortBy() )
#foreach( $detail in $details ) ## #end #foreach( $hit in $hits.getPageOfHits() ) $context.putPageValue("hit", $hit) #foreach( $detail in $details) #end #end
[[Preview]]$detail.text
#text( $detail.name ) #if( $edit) #elseif ($sortby.startsWith($detail.getId())) #if($sortby.endsWith("Up")) #set($sorticon="up") #else #set($sorticon="down") #end     #end
$pages.include("$apphome/components/results/thumbnails/small.html",$context) #set( $val = "$!hit.get($detail.id)" ) ##TODO: Get rid of this #if($detail.render) #set( $val = $searcherManager.getValue($catalogid, $detail.render, $hit.properties)) #end $context.putPageValue("detail",$detail) $context.putPageValue("val",$val) $!context.putPageValue("data",$hit) $pages.include("$xmledithome/detailreadonly.html", $context)