Merge r8819 from maint-rel-vivo-1.3
This commit is contained in:
parent
3a853c54f8
commit
b03c4399c6
2 changed files with 9 additions and 4 deletions
|
@ -5,8 +5,10 @@ List view configuration guidelines
|
||||||
REGISTERING THE LIST VIEW
|
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
|
A custom list view is associated with an object property in the RDF files in
|
||||||
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.
|
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:
|
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:
|
||||||
<http://vitro.mannlib.cornell.edu/ontologies/display/1.1#listViewConfigFile>
|
<http://vitro.mannlib.cornell.edu/ontologies/display/1.1#listViewConfigFile>
|
||||||
"listViewConfig-authorInAuthorship.xml" .
|
"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
|
REQUIRED ELEMENTS
|
||||||
|
|
|
@ -446,7 +446,9 @@ public class PagedSearchController extends FreemarkerHttpServlet {
|
||||||
}
|
}
|
||||||
|
|
||||||
private SolrQuery getQuery(String queryText, int hitsPerPage, int startIndex, VitroRequest vreq) {
|
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 )
|
query.setStart( startIndex )
|
||||||
.setRows(hitsPerPage);
|
.setRows(hitsPerPage);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue