#set ($content="
") #if ($advancedSearchFlag) #set ($adv="$r.translate('switch.advanced.search')

") #set ($adv="${adv}$r.render('advancedSearchform')") #set ($adv="${adv}$r.render('switch.simple.search')") #set ($adv="${adv} | $r.translate('search.intro') | ") #set ($adv="${adv}$r.help('advanced-search.html','help.hover.search')

") #set ($content="${content}${adv}") #else #set ($simp="$r.translate('switch.simple.search')

") #set ($simp="${simp}$r.render('searchform')") #set ($simp="${simp}$r.render('switch.advanced.search')") #set ($simp="${simp} | $r.translate('search.intro') | ") #set ($simp="${simp}$r.help('simple-search.html','help.hover.search')

") #set ($content="${content}${simp}") #end #set ($content="${content}
") ## create an openclose box which is initially open #o_openclose("search" "

#### $r.translate('search.title')

" $content true "o_opened_div_plain" "o_closed_div")
#if ($hasDidYouMean)

#### $r.translate("search.did.you.mean") #set ($wordCounter = 0) #foreach( $link in $didYouMeanLinks ) #set ($linkname = "didYouMeanLink-$wordCounter") $r.render($linkname) #set ($wordCounter = $wordCounter + 1) #end

#else #if ($hasResult) #if ($emptyResult)

#### $r.translate("search.empty.result",$searchResults.getNumberOfIndexDocuments())

#else #if ($searchResults.hasTooManyResults()) $r.translate("too.many.results",$searchResults.getMaxResults())
#end

$resultTitle #if ($doHighlighting) $r.render("disable.highlighting") #else $r.render("enable.highlighting") #end | $r.translate("search.result.numberofdocuments",$searchResults.getNumberOfIndexDocuments()) $r.translate("search.result.querytime",$searchResults.getQueryTime())

#if (!$singlePageMode) $r.render("paging.start") $r.render("previous.page") $currentPage $r.render("next.page") $r.render("paging.end") $r.render("paging.all.results") #end #set ($index=0) #foreach( $result in $pagedSearchResults )
$result.title #if (!$result.parentContextType.equals("")) $r.translate("label.search.result.parent.context") : $r.translate("$result.parentContextType") '$result.parentContextName' #end $r.translate("label.search.result.documenttype") : $r.translate($result.documentType)
$r.translate("label.search.result.last.changed"): $result.lastChange #if (!$result.author.equals("") ) - $r.translate("label.search.author"): $result.author #end
#if (!$result.description.equals("")) $r.translate("result.description"): $result.description
#end #if (!$result.highlightResult.equals("")) $result.highlightResult
#end #set ($index=$index+1)
#end #end #end #end