Browse a DSpace CRIS entity type

29 views
Skip to first unread message

Marc

unread,
Jun 26, 2019, 8:21:29 AM6/26/19
to DSpace Technical Support
Dear List,

We have setup a new entity type and this seems to be working correctly. It is linked into the Navbar and you can search on it a get a list of entities back for this entity type. What is not working is the the Browse link for the Scientific Name

We have followed the instructions at the following links and also looked at how other entity types are setup.


I am assumming that this is caused by a missing setting somewhere, but not sure where else to look. Any advice would be greatly appreciated.

DSpace CRIS 5.10

regards
Marc

The error as reported in the dspace log is

2019-06-26 13:06:20,474 WARN  org.dspace.app.webui.servlet.InternalErrorServlet @ :session_id=7CCDA3BCD706D5EA80DF2697BE5D39E2:internal_error:-- URL Was: http://localhost:8080/dspace5/browse?type=spname
-- Method: GET
-- Parameters were:
-- type: "spname"

javax
.servlet.ServletException: org.apache.jasper.JasperException: An exception occurred processing JSP page [/browse/full.jsp] at line [610]

607:         else
608:         {
609:     %>
610:     <dspace:browselist browseInfo="<%= bi %>" emphcolumn="<%= bix.getSortOption().getMetadata() %>" inputName="<%= inputBiblio %>"/>
611:     <%
612:         }
613:  


Stacktrace:
    at org
.dspace.utils.servlet.DSpaceWebappServletFilter.doFilter(DSpaceWebappServletFilter.java:85)
    at org
.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
    at org
.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
    at org
.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:728)
    at org
.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:470)
    at org
.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:395)
    at org
.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:316)
    at org
.dspace.app.webui.util.JSPManager.showJSP(JSPManager.java:60)
    at org
.dspace.app.webui.servlet.BrowserServlet.showFullPage(BrowserServlet.java:200)
    at org
.dspace.app.webui.servlet.AbstractBrowserServlet.processBrowse(AbstractBrowserServlet.java:382)
    at org
.dspace.app.webui.servlet.BrowserServlet.doDSGet(BrowserServlet.java:97)
    at org
.dspace.app.webui.servlet.DSpaceServlet.processRequest(DSpaceServlet.java:119)
    at org
.dspace.app.webui.servlet.DSpaceServlet.doGet(DSpaceServlet.java:67)
    at javax
.servlet.http.HttpServlet.service(HttpServlet.java:635)
    at javax
.servlet.http.HttpServlet.service(HttpServlet.java:742)
    at org
.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
    at org
.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
    at org
.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
    at org
.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
    at org
.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
    at org
.dspace.app.webui.cris.filter.ExploreLocationFilter.doFilter(ExploreLocationFilter.java:88)
    at org
.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
    at org
.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
    at org
.dspace.utils.servlet.DSpaceWebappServletFilter.doFilter(DSpaceWebappServletFilter.java:78)
    at org
.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
    at org
.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
    at org
.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:199)
    at org
.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
    at org
.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:493)
    at org
.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
    at org
.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81)
    at org
.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:660)
    at org
.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)
    at org
.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)
    at org
.apache.coyote.http11.Http11Processor.service(Http11Processor.java:798)
    at org
.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
    at org
.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:806)
    at org
.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1498)
    at org
.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
    at java
.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    at java
.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    at org
.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
    at java
.lang.Thread.run(Thread.java:748)
Caused by: org.apache.jasper.JasperException: An exception occurred processing JSP page [/browse/full.jsp] at line [610]

607:         else
608:         {
609:     %>
610:     <dspace:browselist browseInfo="<%= bi %>" emphcolumn="<%= bix.getSortOption().getMetadata() %>" inputName="<%= inputBiblio %>"/>
611:     <%
612:         }
613:  


Stacktrace:
    at org
.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:617)
    at org
.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:514)
    at org
.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:386)
    at org
.apache.jasper.servlet.JspServlet.service(JspServlet.java:330)
    at javax
.servlet.http.HttpServlet.service(HttpServlet.java:742)
    at org
.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
    at org
.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
    at org
.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
    at org
.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
    at org
.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
    at org
.dspace.utils.servlet.DSpaceWebappServletFilter.doFilter(DSpaceWebappServletFilter.java:78)
   
... 42 more
Caused by: java.lang.ClassCastException: org.dspace.browse.BrowseItem cannot be cast to org.dspace.browse.BrowseDSpaceObject
    at org
.dspace.app.webui.cris.util.CrisDisplayStrategy.getMetadataDisplay(CrisDisplayStrategy.java:39)
    at org
.dspace.app.webui.jsptag.BrowseListTag.doStartTag(BrowseListTag.java:805)
    at org
.apache.jsp.browse.full_jsp._jspService(full_jsp.java:1365)
    at org
.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
    at javax
.servlet.http.HttpServlet.service(HttpServlet.java:742)
    at org
.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:476)
   
... 51 more


Pascarelli Luigi Andrea

unread,
Jun 26, 2019, 10:05:36 AM6/26/19
to dspac...@googlegroups.com, brouar...@gmail.com
Dear Marc,

you have to setup a meaningful filter for the browse option, please see
the paragraph at
https://wiki.duraspace.org/pages/viewpage.action?pageId=78153687#Browse&Search-Applyfilterstothebrowseindexes

For example:

webui.browse.index.25 = spname:crisrp:spname
browse.solr.bi_crisrp.filter=search.resourcetype:9
browse.solr.bi_25_dis.filter=search.resourcetype:9


Hope this helps.

Luigi Andrea


On Wed, 2019-06-26 at 05:21 -0700, Marc wrote:
> Dear List,
>
> We have setup a new entity type and this seems to be working
> correctly. It is linked into the Navbar and you can search on it a
> get a list of entities back for this entity type. What is not working
> is the the Browse link for the Scientific Name
>
>
> --
> All messages to this mailing list should adhere to the DuraSpace Code
> of Conduct: https://duraspace.org/about/policies/code-of-conduct/
> ---
> You received this message because you are subscribed to the Google
> Groups "DSpace Technical Support" group.
> To unsubscribe from this group and stop receiving emails from it,
> send an email to dspace-tech...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/dspace-tech/441cb3f7-66e3-43c6-af50-f3039a919e0f%40googlegroups.com
> .
>

--
Questo messaggio e' stato analizzato da Libra ESVA ed e' risultato non infetto.
This message was scanned by Libra ESVA and is believed to be clean.

Marc

unread,
Jun 27, 2019, 5:12:33 AM6/27/19
to DSpace Technical Support
Thank you Luigi,

This does seem to be the configuration that I am missing. The bit that I can not figure out is how to set the filter to display only the CRIS entities of the type I am interested in. As mentioned I have created a cris entity for species with the short code of sp . My understanding is that resourcetype is defined in const.jsp and crisconst.jsp, is there a way of determining the resourcetype for my cris entity or can I use a different solr filter?

kind regards
Marc
> send an email to dspac...@googlegroups.com.

Marc

unread,
Jun 27, 2019, 6:58:36 AM6/27/19
to DSpace Technical Support
Hi Luigi,

Please ignore my previous message. My knowledge of solr is limited, but I have managed to figure out that the following

browse.solr.bi_crissp.filter = crisdo.type:sp

This seems to work well

Thanks again
Marc
Reply all
Reply to author
Forward
0 new messages