Handle search error message from Freemarker controller and template.

This commit is contained in:
rjy7 2010-08-27 16:52:26 +00:00
parent 73024a4d03
commit 589383f15b
3 changed files with 50 additions and 55 deletions

View file

@ -0,0 +1,55 @@
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
<#-- Template for displaying paged search results -->
<h2>
Search Results for '${querytext}'
<#if classgroupName?has_content>limited to type '${classGroupName}'</#if>
<#if typeName?has_content>limited to type '${typeName}'</#if>
</h2>
<div class="contentsBrowseGroup">
<#-- Refinement links -->
<#if classGroupLinks?has_content>
<div class="searchTOC">
<span class="jumpText">Show only results of this <b>type</b>:</span>
<#list classGroupLinks as link>
<a href="${link.url}">${link.text}</a>
</#list>
</div>
</#if>
<#if classLinks?has_content>
<div class="searchTOC">
<span class="jumpText">Show only results of this <b>subtype</b>:</span>
<#list classLinks as link>
<a href="${link.url}">${link.text}</a>
</#list>
</div>
</#if>
<#-- Search results -->
<ul class="searchhits">
<#list individuals as individual>
<li>
<#include "${individual.searchView}">
</li>
</#list>
</ul>
<#-- Paging controls -->
<#if (pagingLinks?size > 0)>
<div class="searchpages">
Pages:
<#list pagingLinks as link>
<#if link.url??>
<a href="${link.url}">${link.text}</a>
<#else>
${link.text} <#-- no link if current page -->
</#if>
</#list>
</div>
</#if>
</div> <!-- end contentsBrowseGroup -->

View file

@ -0,0 +1,9 @@
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
<#-- Template for displaying search error message -->
<#if title??>
<h2>${title}</h2>
</#if>
<p>${message}</p>