${title}
@@ -15,8 +17,20 @@
<#list individuals as individual>
-
- <#-- Currently we just use the search view here; there's no custom list view defined. -->
- <#include "${individual.searchView}">
+ <#-- The old JSP version uses a custom search view if one is defined, but it doesn't make sense
+ to do that in the current system, because we don't use the default search view. We could define
+ a custom list or use the custom short view, but for now just hard-code the view here; it will not be
+ customizable.
+ <#include "${individual.searchView}"> -->
+ ${individual.name}
+
+ <@l.firstLastList>
+ <#if individual.moniker??>- ${individual.moniker}
,#if>
+ <#list individual.links as link>
+ - ${link.anchor}
,
+ #list>
+ @l.firstLastList>
+
#list>
diff --git a/webapp/web/templates/freemarker/body/pagedSearchResults.ftl b/webapp/web/templates/freemarker/body/pagedSearchResults.ftl
new file mode 100644
index 000000000..d7946e3c2
--- /dev/null
+++ b/webapp/web/templates/freemarker/body/pagedSearchResults.ftl
@@ -0,0 +1,55 @@
+<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
+
+<#-- Template for displaying paged search results -->
+
+
+ Search Results for '${querytext}'
+ <#if classgroupName?has_content>limited to type '${classgroupName}'#if>
+ <#if typeName?has_content>limited to type '${typeName}'#if>
+
+
+
+
+ <#-- Refinement links -->
+ <#if classGroupLinks?has_content>
+
+
Show only results of this type:
+ <#list classGroupLinks as link>
+
${link.text}
+ #list>
+
+ #if>
+
+ <#if classLinks?has_content>
+
+
Show only results of this subtype:
+ <#list classLinks as link>
+
${link.text}
+ #list>
+
+ #if>
+
+ <#-- Search results -->
+
+ <#list individuals as individual>
+ -
+ <#include "${individual.searchView}">
+
+ #list>
+
+
+ <#-- Paging controls -->
+ <#if (pagingLinks?size > 0)>
+
+ Pages:
+ <#list pagingLinks as link>
+ <#if link.url??>
+
${link.text}
+ <#else>
+ ${link.text} <#-- no link if current page -->
+ #if>
+ #list>
+
+ #if>
+
+
\ No newline at end of file
diff --git a/webapp/web/templates/freemarker/body/partials/class/view/search/view-search-default.ftl b/webapp/web/templates/freemarker/body/partials/class/view/search/view-search-default.ftl
index 0c5416f08..0e9a0342c 100644
--- a/webapp/web/templates/freemarker/body/partials/class/view/search/view-search-default.ftl
+++ b/webapp/web/templates/freemarker/body/partials/class/view/search/view-search-default.ftl
@@ -2,14 +2,9 @@
<#-- Default individual search view -->
-<#import "listMacros.ftl" as l>
-
${individual.name}
-
- <@l.firstLastList>
- <#if individual.moniker??>- ${individual.moniker}
,#if>
- <#list individual.links as link>
- - ${link.anchor}
,
- #list>
- @l.firstLastList>
-
+<#if individual.moniker?has_content> | ${individual.moniker}#if>
+
+<#if individual.description?has_content>
+
${individual.description}
+#if>
\ No newline at end of file
diff --git a/webapp/web/templates/search/searchPaged.jsp b/webapp/web/templates/search/searchPaged.jsp
index b77edb848..9b604099a 100644
--- a/webapp/web/templates/search/searchPaged.jsp
+++ b/webapp/web/templates/search/searchPaged.jsp
@@ -7,6 +7,7 @@
<%@ page import="edu.cornell.mannlib.vitro.webapp.beans.Portal" %>
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
<%@ page errorPage="/error.jsp"%>
+
<%
/***********************************************
Display Paged Search Results
@@ -153,7 +154,7 @@ if( request.getAttribute("types") != null ){
String basePageUrl =
request.getContextPath() + "/search?querytext="
+URLEncoder.encode(request.getParameter("querytext"),"UTF-8") +
- request.getAttribute("refinment");
+ request.getAttribute("refinement");
out.println("
");
out.println("Pages:");