#set( $moduleid = "product") #set( $searchhome = $context.findValue("searchhome") ) #set( $view = "product/productadvancedsearch") #set( $searcher = $searcherManager.getSearcher("$content.catalogid", "${moduleid}") ) $context.putPageValue("caneditlists","false") $context.putPageValue("view", $view) $context.putPageValue("searcher", $searcher) #set($usestartswith = $page.isPropertyTrue('usestartswith')) $context.putPageValue("usestartswith",$usestartswith) ###get suppliers #set($suppliersearcher = $mediaarchive.getSearcher("supplier")) #set($supplierquery = $suppliersearcher.createSearchQuery()) #set($null = $supplierquery.addMatches("id","*")) #set($null = $supplierquery.addSortBy("nameUp")) #set($suppliers = $suppliersearcher.search($supplierquery)) #set($details = $searcher.getDetailsForView($view)) #foreach( $detail in $details) #if($detail.id != "suppliername" && $detail.id != "alternate") $context.putPageValue("detail", $detail) #if ($detail.isLeaf()) $pages.include("/${applicationid}/components/advancedsearch/detailedit.html", $context) #else $pages.include("/${applicationid}/components/advancedsearch/section.html", $context) #end #else
#end #end