#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
$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