#set ($results = $params.get("results")) #set ($showExcerpts = "true") #set ($searchWords = $params.get("searchWords")) #set ($queryString = $params.get("queryString")) #set ($ignoredWords = $params.get("ignoredWords")) #set ($topCell = $params.get("topCell")) #set ($start = $params.get("start")) #set ($end = $params.get("end")) #set ($total = $params.get("total")) #if ($params.get("showExcerpts")) #set ($showExcerpts = $params.get("showExcerpts")) #end ##TODO: Refactor these into another vm file. #macro (searchResultIcon $searchResult) #if ($searchResult.type == "userinfo") #end #end #macro (newSearchResultContentLink $searchResult) #set ($path = $searchResult.urlPath) #if ($searchResult.type == "attachment") #set ($path = $searchResult.extraFields.attachmentDownloadPath) #end $action.getTitleForResult($searchResult)#searchResultIcon($searchResult)##TODO: Highlight matches in titles #end #macro (newSearchResult $searchResult $showExcerpts $queryString) ## TODO: Show labels only if there is a matching label

#newSearchResultContentLink($searchResult)#if ($searchResult.type == "userinfo") ($htmlUtil.htmlEncode($searchResult.extraFields.username))#end

#set ($webInterfaceContext = $action.getWebInterfaceContext($searchResult)) #set ($primaryItems = $webInterfaceManager.getDisplayableItems("system.search/result.primary", $webInterfaceContext)) #if ($searchResult.type == "attachment" || $primaryLinks.size()) #end #if ("true" == $showExcerpts)

$action.getSummaryForResult($searchResult)

#end #if ($searchResult.type != "spacedesc" && $searchResult.type != "personalspacedesc") #end #end #set ($formAction = "dosearchsite.action?") #if ($stringUtils.isNotBlank($queryString)) #if ($results && $results.size() > 0)

#if ($topCell) $topCell #else #set ($start = $start + 1) #if($ignoredWords && !$ignoredWords.isEmpty()) $action.getText("search.result.with.ignored", [$start, $end, $total, $searchWords, $ignoredWords]) #else $action.getText("search.result", [$start, $end, $total, $generalUtil.escapeXml($queryString)]) #end #end

#if($action.key) #pagination($action.paginationSupport "${formAction}${action.currentSearch.queryParameters}&key=$htmlUtil.urlEncode($action.key)&") #else #pagination($action.paginationSupport "${formAction}${action.currentSearch.queryParameters}&") #end #else $action.getText("search.no.results.found", ["${htmlUtil.htmlEncode($queryString)}"]) #end #end