From b03c4399c6425d7732edb70709bf433661cfdb30 Mon Sep 17 00:00:00 2001 From: ryounes Date: Mon, 25 Jul 2011 14:20:52 +0000 Subject: [PATCH] Merge r8819 from maint-rel-vivo-1.3 --- doc/list_view_configuration_guidelines.txt | 9 ++++++--- .../webapp/search/controller/PagedSearchController.java | 4 +++- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/doc/list_view_configuration_guidelines.txt b/doc/list_view_configuration_guidelines.txt index 97daab064..f29097f10 100644 --- a/doc/list_view_configuration_guidelines.txt +++ b/doc/list_view_configuration_guidelines.txt @@ -5,8 +5,10 @@ List view configuration guidelines REGISTERING THE LIST VIEW ------------------------- -A custom list view is associated with an object property in the RDF files in the directory /vivo/productMods/WEB-INF/ontologies/app/loadedAtStartup -To register a list view, create a new .rdf or .n3 file in that directory. The file must be well formed RDF/XML or N3. +A custom list view is associated with an object property in the RDF files in +the directory /vivo/productMods/WEB-INF/ontologies/app/loadedAtStartup. +To register a list view, create a new .rdf or .n3 file in that directory. +The file must be well formed RDF/XML or N3. Example of registering a new association in a file named newListViews.n3: @@ -14,7 +16,8 @@ Example of registering a new association in a file named newListViews.n3: "listViewConfig-authorInAuthorship.xml" . -Place this file in /vivo/productMods/WEB-INF/ontologies/app/loadedAtStartup, redeploy and restart tomcat to put the new custom list view in effect. +Place this file in /vivo/productMods/WEB-INF/ontologies/app/loadedAtStartup, +redeploy and restart tomcat to put the new custom list view in effect. ----------------- REQUIRED ELEMENTS diff --git a/webapp/src/edu/cornell/mannlib/vitro/webapp/search/controller/PagedSearchController.java b/webapp/src/edu/cornell/mannlib/vitro/webapp/search/controller/PagedSearchController.java index f8bb688b1..4cf7a0ed3 100644 --- a/webapp/src/edu/cornell/mannlib/vitro/webapp/search/controller/PagedSearchController.java +++ b/webapp/src/edu/cornell/mannlib/vitro/webapp/search/controller/PagedSearchController.java @@ -446,7 +446,9 @@ public class PagedSearchController extends FreemarkerHttpServlet { } private SolrQuery getQuery(String queryText, int hitsPerPage, int startIndex, VitroRequest vreq) { - SolrQuery query = new SolrQuery(queryText); + // Lowercase the search term to support wildcard searches: Solr applies no text + // processing to a wildcard search term. + SolrQuery query = new SolrQuery(queryText.toLowerCase()); query.setStart( startIndex ) .setRows(hitsPerPage);