## This file should be obsolete, along with the containing search-results-list.html and search-results-list.vm ## ------------------------------------------------------------------------------------------- ## This is search-results.vmd from Confluence 5.7.5, modified to eliminate abort of ## search results rendering on empty query string ## ------------------------------------------------------------------------------------------- #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")) #set ($isUsingThemePress = $action.key && $themePress.isThemePress($action.key) || !$action.key && $themePress.themePressSiteTheme) #if ($params.get("showExcerpts")) #set ($showExcerpts = $params.get("showExcerpts")) #end #parse("$searchCore.parseFileLocation('targeted-search')/html/includes/search-result-macros.html") ## Brikit: comment out formAction reset, and empty query string test (and its closure): ## #set ($formAction = "dosearchsite.action?") ## #if ($stringUtils.isNotBlank($queryString)) #if ($results && $results.size() > 0)

#if ($topCell) $topCell #else $searchCore.text("com.brikit.targetedsearch.results.found", [$total, $generalUtil.escapeXml($searchWords)]) #end

#if ($isUsingThemePress && !$richLinksDisabled && !$macro.previewContext) #foreach ($result in $results) $themePress.renderRichLink($result) #end #else #end
#if($action.key) #pagination($action.paginationSupport "${formAction}${action.currentSearch.queryParameters}&key=$generalUtil.urlEncode($action.key)&") #else #pagination($action.paginationSupport "${formAction}${action.currentSearch.queryParameters}&") #end #else $searchCore.text("search.no.results.found", ["${generalUtil.htmlEncode($queryString)}"]) #end ## Brikit: comment out empty query string closure: ## #end