#set( $view = "asset/advancedsearch") #set( $searcher = $mediaarchive.getAssetSearcher()) $context.putPageValue("view", $view) $context.putPageValue("searcher", $searcher)

Search

#set($usestartswith = $page.isPropertyTrue('usestartswith')) $context.putPageValue("usestartswith",$usestartswith) #set( $edit = $context.getRequestParameter("editadvsearch"))
##We need 2 things passed in: $searcher, $view or $searcher $details #if (!$details && $view) #set ($details = $searcher.getDetailsForView($view, $userprofile)) #end #foreach( $detail in $details) $context.putPageValue("detail", $detail) #if ($detail.isLeaf()) #if ($edit == "true") #end #else $pages.include("/${applicationid}/components/advancedsearch/section.html", $context) #end #end
$!detail.getText($context) $pages.include("/${applicationid}/components/advancedsearch/detail.html", $context)
#if ($edit == "true")

##TODO: Pass this view name in #set ($alldetails = $searcher.getDetailsForView("asset/searchselect", $user))
Done
#else
#end