#set( $view = "asset/advancedsearch") #set( $searcher = $mediaarchive.getAssetSearcher()) $context.putPageValue("view", $view) $context.putPageValue("searcher", $searcher) #set($usestartswith = $page.isPropertyTrue('usestartswith')) $context.putPageValue("usestartswith",$usestartswith) $context.putPageValue("caneditlists",false) #set( $edit = $context.getRequestParameter("editadvsearch")) #if( $edit) $context.putPageValue("edit",$edit) #end #if( $librarycol)
#else #end ##We need 2 things passed in: $searcher, $view or $searcher $details #if (!$details && $userprofile) #set ($details = $searcher.getDetailsForView($view, $userprofile)) #else #set ($details = $searcher.getDetailsForView($view)) #end $context.putPageValue("idprefix","search") #foreach( $detail in $details) $context.putPageValue("detail", $detail) $context.putPageValue("searchform", true) #if ($detail.isLeaf()) $pages.include("/${applicationid}/components/advancedsearch/detailedit.html", $context) #else $pages.include("/${applicationid}/components/advancedsearch/section.html", $context) #end #end #if( $librarycol.rootcategory ) #elseif( $selectedlibrary.categoryid ) #end
[[Clear]]
#set ($resultview = $userprofile.get('resultview')) #if( !$resultview ) #end
#if ($edit == "true")

##TODO: Pass this view name in #set ($alldetails = $searcher.getUserPropertyDetails() )
#if($cansearchjoins) #end
#end