diff --git a/dspace-jspui/src/main/java/org/dspace/app/webui/discovery/DiscoverySearchRequestProcessor.java b/dspace-jspui/src/main/java/org/dspace/app/webui/discovery/DiscoverySearchRequestProcessor.java index 00df6fd1cd..7ae8785d50 100644 --- a/dspace-jspui/src/main/java/org/dspace/app/webui/discovery/DiscoverySearchRequestProcessor.java +++ b/dspace-jspui/src/main/java/org/dspace/app/webui/discovery/DiscoverySearchRequestProcessor.java @@ -233,6 +233,7 @@ public class DiscoverySearchRequestProcessor implements SearchRequestProcessor HttpServletResponse response) throws SearchProcessorException, IOException, ServletException { + init(); List resultsItems; List resultsCollections; List resultsCommunities; @@ -514,6 +515,7 @@ public class DiscoverySearchRequestProcessor implements SearchRequestProcessor public void doItemMapSearch(Context context, HttpServletRequest request, HttpServletResponse response) throws SearchProcessorException, ServletException, IOException { + init(); String queryString = (String) request.getParameter("query"); Collection collection = (Collection) request.getAttribute("collection"); int page = UIUtil.getIntParameter(request, "page")-1; diff --git a/dspace-jspui/src/main/webapp/browse/full.jsp b/dspace-jspui/src/main/webapp/browse/full.jsp index 788c57b4b4..3a0924ccec 100644 --- a/dspace-jspui/src/main/webapp/browse/full.jsp +++ b/dspace-jspui/src/main/webapp/browse/full.jsp @@ -70,11 +70,11 @@ if (community != null) { - scope = "\"" + community.getMetadata("name") + "\""; + scope = "\"" + community.getName() + "\""; } if (collection != null) { - scope = "\"" + collection.getMetadata("name") + "\""; + scope = "\"" + collection.getName() + "\""; } type = bix.getName(); diff --git a/dspace-jspui/src/main/webapp/browse/single.jsp b/dspace-jspui/src/main/webapp/browse/single.jsp index bc98efdcfd..c850a9c19c 100644 --- a/dspace-jspui/src/main/webapp/browse/single.jsp +++ b/dspace-jspui/src/main/webapp/browse/single.jsp @@ -48,14 +48,14 @@ { collection = (Collection) bi.getBrowseContainer(); } - + if (community != null) { - scope = "\"" + community.getMetadata("name") + "\""; + scope = "\"" + community.getName() + "\""; } if (collection != null) { - scope = "\"" + collection.getMetadata("name") + "\""; + scope = "\"" + collection.getName() + "\""; } type = bix.getName(); diff --git a/dspace-jspui/src/main/webapp/search/discovery.jsp b/dspace-jspui/src/main/webapp/search/discovery.jsp index a926995f3d..73820557d4 100644 --- a/dspace-jspui/src/main/webapp/search/discovery.jsp +++ b/dspace-jspui/src/main/webapp/search/discovery.jsp @@ -407,9 +407,9 @@ <% DiscoverResult qResults = (DiscoverResult)request.getAttribute("queryresults"); -Item [] items = (Item[] )request.getAttribute("items"); -Community [] communities = (Community[] )request.getAttribute("communities"); -Collection[] collections = (Collection[])request.getAttribute("collections"); +List items = (List )request.getAttribute("items"); +List communities = (List )request.getAttribute("communities"); +Listcollections = (List)request.getAttribute("collections"); if( error ) { @@ -531,21 +531,21 @@ else if( qResults != null)
-<% if (communities.length > 0 ) { %> +<% if (communities.size() > 0 ) { %>
<% } %> -<% if (collections.length > 0 ) { %> +<% if (collections.size() > 0 ) { %>
<% } %> -<% if (items.length > 0) { %> +<% if (items.size() > 0) { %>
@@ -553,7 +553,7 @@ else if( qResults != null) <% } %>
<%-- if the result page is enought long... --%> -<% if ((communities.length + collections.length + items.length) > 10) {%> +<% if ((communities.size() + collections.size() + items.size()) > 10) {%> <%-- show again the navigation info/links --%>
<%--

Results - of --%>