#set( $view = "product/productstore_search") #set( $searcher = $searcherManager.getSearcher($catalogid, "product") ) $context.putPageValue("view", $view) $context.putPageValue("searcher", $searcher) #set($usestartswith = $page.isPropertyTrue('usestartswith')) $context.putPageValue("usestartswith",$usestartswith) #if ($userprofile.getSettingsGroup().getId() == "distributor") #set( $searchlink = "$home$apphome/distributors/fieldsearch.html") #else #set( $searchlink = "$home$apphome/search/fieldsearch.html") #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 #if ($userprofile.getSettingsGroup().getId() == "distributor") #end #foreach( $detail in $details) $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 #end
#set ($resultview = $userprofile.get('resultview')) #if( !$resultview ) #end