##requires $details //List of Detail ##requires $hits //Gets input from that ##requires $searcher //used to get the catalogid and searcherManager $context.putPageValue("insearch",true)
#foreach( $detail in $details)
$!detail.getText($context)
#set( $viewtype = false ) #set( $viewtype = $detail.searchcomponent ) #if (!$viewtype) #set( $viewtype = $detail.viewType ) #end #if (!$viewtype) #set ($viewtype = $detail.dataType) #end #if (!$viewtype || $viewtype == "text") #set ($viewtype = "default") #end #if (!$viewtype || $viewtype == "map") #set ($viewtype = "default") #end #if (!$viewtype || $viewtype == "date" || $viewtype == "datesearch") #set ($viewtype = "datesearch") #else #end #if( $hits.getSearchQuery() ) #set( $value = "$!hits.getSearchQuery().getInput($detail.id)" ) #set( $term = $hits.getSearchQuery().getTermByDetailId($detail.id) ) $context.putPageValue("term",$term) $context.putPageValue("val",$value) #end $context.putPageValue("detail",$detail) #if( $viewtype.equals("asset") || $viewtype.equals("primarymedia") || $viewtype.equals("category")) $pages.include("/${applicationid}/components/xml/types/default.html", $context) #else $pages.include("/${applicationid}/components/xml/types/${viewtype}.html", $context) #end
#end
#if( $details.size() == 0) [[No search fields found with index]]=true #end