[Dspace-tech] SolrService=Null
Hi, Class Name : org.dspace.discovery.SolrServiceImpl protected HttpSolrServer getSolr() { if ( solr == null) { String solrService = new DSpace().getConfigurationService().getProperty(discovery.search.server); I got value of solrService = null. -- Thanks Awanish Singh 9910287114 -- ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
[Dspace-tech] discovery facet by collection
Hi, I want to make a discovery sidebar facet by collection, what's the value to put in discovery.xml to retrieve the collection of the items? I see in solr that the value is location.coll but i have tested with valuelocation.coll/value with no luck. -- View this message in context: http://dspace.2283337.n4.nabble.com/discovery-facet-by-collection-tp4678162.html Sent from the DSpace - Tech mailing list archive at Nabble.com. -- ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
[Dspace-tech] dspace-cris ordering in custom jsp
Hi, I want to order the researcher results that a custom jsp returns in a specific tab. I see that the jstl line which prints the results is this : dspace:browselist items=quot;lt;%= (BrowseItem[])info.getItems() % config=crisrp / this works nice but the order is not alphabetical, I saw in another default jsp (persons.jsp) that you can add the options sortBy=%= new Integer(info.getSo().getNumber()).toString() % and order=%= info.getOrder() % so I add a new SortOption object to the info instance: SortOption sortOption = new SortOption(4,rpname:crisrp.fullName:title); info.setSo(sortOption); and also the order string to the info instance: info.setOrder(DESC); and the jslt line: dspace:browselist items=quot;lt;%= (BrowseItem[])info.getItems() % config=crisrp sortBy=%= new Integer(info.getSo().getNumber()).toString() % order=%= info.getOrder() %/ but doesn't order the researcher results, it prints the researchers but without the alpabetical order... any hint? -- View this message in context: http://dspace.2283337.n4.nabble.com/dspace-cris-ordering-in-custom-jsp-tp4678159.html Sent from the DSpace - Tech mailing list archive at Nabble.com. -- ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
[Dspace-tech] EXCEPTION
Hi to all, I am working with dspace 5.2 . I got following exception on tomcat console, when I started my dspace jspui instance... SEVERE: Servlet.service() for servlet [jsp] in context with path [/rsdebateNew] threw exception [org.apache.jasper.JasperException: javax.servlet.ServletException: org.dspace.plugin.PluginException: org.dspace.app.webui.components.RecentSubmissionsException: org.dspace.browse.BrowseException: org.dspace.discovery.SearchServiceException] with root cause java.lang.NullPointerException at org.apache.solr.client.solrj.impl.HttpSolrServer.init(HttpSolrServer.java:150) at org.apache.solr.client.solrj.impl.HttpSolrServer.init(HttpSolrServer.java:141) at org.dspace.discovery.SolrServiceImpl.getSolr(SolrServiceImpl.java:148) at org.dspace.discovery.SolrServiceImpl.search(SolrServiceImpl.java:1598) at org.dspace.browse.SolrBrowseDAO.getSolrResponse(SolrBrowseDAO.java:192) at org.dspace.browse.SolrBrowseDAO.doQuery(SolrBrowseDAO.java:291) at org.dspace.browse.BrowseEngine.browseMini(BrowseEngine.java:164) at org.dspace.app.webui.components.RecentSubmissionsManager.getRecentSubmissions(RecentSubmissionsManager.java:89) at org.dspace.app.webui.components.RecentSiteSubmissions.process(RecentSiteSubmissions.java:47) at org.apache.jsp.index_jsp._jspService(index_jsp.java:120) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) at javax.servlet.http.HttpServlet.service(HttpServlet.java:727) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334) at javax.servlet.http.HttpServlet.service(HttpServlet.java:727) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at org.dspace.utils.servlet.DSpaceWebappServletFilter.doFilter(DSpaceWebappServletFilter.java:78) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408) at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1040) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:607) at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:314) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Thanks Awanish Singh 9910287114 -- ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
Re: [Dspace-tech] discovery facet by collection
Hi, did you reindex discovery after chaning the discovery.xml? After modifying sidebarFacets and searchFilters, don't forget to reindex existing items by running|[dspace]/bin/dspace index-discovery||-b|, otherwise the changes will not appear. Am 02.06.2015 um 10:24 schrieb Pablo Buenaposada: Hi, I want to make a discovery sidebar facet by collection, what's the value to put in discovery.xml to retrieve the collection of the items? I see in solr that the value is location.coll but i have tested with valuelocation.coll/value with no luck. -- View this message in context: http://dspace.2283337.n4.nabble.com/discovery-facet-by-collection-tp4678162.html Sent from the DSpace - Tech mailing list archive at Nabble.com. -- ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette -- Christian Scheible Softwareentwickler / Abt. Content-basierte Dienste Kommunikations-, Informations- und Medienzentrum (KIM) Universität Konstanz 78457 Konstanz +49 (0)7531 / 88-2857 Raum B 703 -- ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
Re: [Dspace-tech] Translation of Item Submission forms.
Thanks Andrea! Yes, as you correctly mentioned, input forms_ar.xml might give me the input submission form in arabic. But what if I want to switch from English to Arabic and back? How can I customize my dspace so that I can go back and forth from English to Arabic and have my Input forms in both languages. Right now I am working on JSPUI so if a solution is available in JSPUI, that is best but I am also open to working on XMLUI if that is what takes me to my desired goal. Regards, Rajat Gupta On Tue, Jun 2, 2015 at 7:11 AM, Andrea Schweer schw...@waikato.ac.nz wrote: Hi, if you want everything in your submission form to be in Arabic only, it should work to just translate all displayed text in input-forms.xml to Arabic. Hopefully this will work even with rtl languages. If you want an English submission form to be shown to some users and an Arabic input form to other users, it's more complicated. I believe this depends on whether you're using XMLUI or JSPUI. In JSPUI, you can create a translated input-forms_ar.xml file and it will be used for people who have set their DSpace language to Arabic. Apparently this doesn't work in XMLUI, but I'm not 100% sure. cheers, Andrea On 28/05/15 21:10, Rajat Gupta wrote: Hello Friends, We are currently translating a dspace instance of Dspace 5.x and have translated most of the content in the message.properties file. We converted English to Arabic using Google and then converted the Arabic to Unicode text using a unicode converter. Although we converted the whole message.properties file the Item submission form does not seem to show any changes. We found that we have to translate the input forms.xml file. My questions are 1. whether by translating input forms.xml site our problem will be solved (the input submission forms will come in arabic?) 2. Can I use the Item submissions forms in both English and Arabic language? Thanks in advance. Regards, Rajat Gupta -- ___ DSpace-tech mailing listDSpace-tech@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/dspace-tech List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette -- Dr Andrea Schweer IRR Technical Specialist, ITS Information Systems The University of Waikato, Hamilton, New Zealand -- ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
Re: [Dspace-tech] Translation of Item Submission forms.
Hello Rajat, there is an option webui.supported.locales to indicate which locales you use and depending on the version this will put a language switch to your UI. Note that there are more than the message catalogues and input forms, there are the email templates, the help pages etc. to be tranlated too. Hope this helps Claudia Jürgen Am 02.06.2015 um 20:33 schrieb Rajat Gupta: Thanks Andrea! Yes, as you correctly mentioned, input forms_ar.xml might give me the input submission form in arabic. But what if I want to switch from English to Arabic and back? How can I customize my dspace so that I can go back and forth from English to Arabic and have my Input forms in both languages. Right now I am working on JSPUI so if a solution is available in JSPUI, that is best but I am also open to working on XMLUI if that is what takes me to my desired goal. Regards, Rajat Gupta On Tue, Jun 2, 2015 at 7:11 AM, Andrea Schweer schw...@waikato.ac.nz mailto:schw...@waikato.ac.nz wrote: Hi, if you want everything in your submission form to be in Arabic only, it should work to just translate all displayed text in input-forms.xml to Arabic. Hopefully this will work even with rtl languages. If you want an English submission form to be shown to some users and an Arabic input form to other users, it's more complicated. I believe this depends on whether you're using XMLUI or JSPUI. In JSPUI, you can create a translated input-forms_ar.xml file and it will be used for people who have set their DSpace language to Arabic. Apparently this doesn't work in XMLUI, but I'm not 100% sure. cheers, Andrea On 28/05/15 21:10, Rajat Gupta wrote: Hello Friends, We are currently translating a dspace instance of Dspace 5.x and have translated most of the content in the message.properties file. We converted English to Arabic using Google and then converted the Arabic to Unicode text using a unicode converter. Although we converted the whole message.properties file the Item submission form does not seem to show any changes. We found that we have to translate the input forms.xml file. My questions are 1. whether by translating input forms.xml site our problem will be solved (the input submission forms will come in arabic?) 2. Can I use the Item submissions forms in both English and Arabic language? Thanks in advance. Regards, Rajat Gupta -- ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net mailto:DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech List Etiquette:https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette -- Dr Andrea Schweer IRR Technical Specialist, ITS Information Systems The University of Waikato, Hamilton, New Zealand -- ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette -- ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
Re: [Dspace-tech] XOAI and filters based on access permissions
Kia ora Kim, Thanks very much for your help! Cleaning the cache resolves much of our confusion at least (and not having to restart the server will save us a great deal of time!) so now I can see clearly what’s going on and what we want to do. So now we’re at the point where bitstreamaccessFilter is filtering out both the collections based on their restrictive bundle policies. What we’d like is a filter that acts on *item* policies. So where the item is anon read it would be included in the OAI feed for the appropriate context, but where the item is restricted it wouldn’t. Is there an existing filter that would do this, or does this require editing the Java source code (not in our skillset but we could look at contracting out)? Deborah From: Kim Shepherd [mailto:kim.sheph...@gmail.com] Sent: Monday, 1 June 2015 11:28 p.m. To: Fitchett, Deborah Cc: dspace-tech (dspace-tech@lists.sourceforge.net) Subject: Re: [Dspace-tech] XOAI and filters based on access permissions Kia ora Deborah, I've done a bit of testing in 5.2, and will do the same test in 3.4 tomorrow -- though I think it'll be the same, looking at the DSpaceAuthorizationFilter in 3.x vs 5.x, and my findings/notes are that this does work nicely, in that people won't be able to do a GetRecord for your restricted items in *any* context (including default) that uses the bitstreamaccessFilter filter (now called bitstreamAccessCondition in DSpace 5.x for any others reading this), BUT the trick is that the authorization filter doesn't actually look at bitstream policies! It looks at bundle policies. I'm not really sure why.* Here's an example you can try in my test repository: Record page: (i'm keeping item public so we can check it) http://dspace.shepherd.nz/handle/or2015/256 OAI GetRecord request for that handle: http://dspace.shepherd.nz/oai/request?verb=GetRecordmetadataPrefix=oai_dcidentifier=oai:dspace.shepherd.nz:or2015/256 You should see an error response with The given id does not exist So here is my suggestion: 1. Make sure that your default context references the bitstreamaccessFilter, and any other contexts in which you don't wish these items to appear (there is the potential that you could have contexts in which you generally don't want this filter, but do want to exclude Symplectic items - in these cases, you may need to rethink - in DSpace 5 there are some clever things that can be done with ANDing and ORing various filters together, but prior to that you might have to think about filtering based on metadata instead. It sounds like as long as you keep your Restricted Theses as they are and keep the bundle policies in place, this will work OK for you) 2. Find a few items and makes sure there is no Anonymous:READ policy for the ORIGINAL bundle, and then rebuild your OAI catalog with ${dspace}/bin/dspace oai import -c -v ${dspace}/bin/dspace oai import clean-cache Some good news: you don't need to restart Tomcat to check your changes! The DSpace kernel reads configuration whenever you run that dspace oai command, and is independent of Tomcat. For the future, and for others wondering about issues like this, there are also ways to use logical filter definitions to NOT a MetadataValueExists filter, so you could check for the existence of a metadata value like pubs.elements-id (Symplectic Elements adds this to every repository item) and *exclude* the item from the context. (and for these specific items, which you've mentioned are also non-public at the ITEM level, I believe the fix https://jira.duraspace.org/browse/DS-1856 in DSpace 5 would fix this without any other intervention). Anyway, I am hoping my suggestions above work for 3.x - I'll try to find time to test them - and sorry to keep harping on about DSpace 5, I have it on the brain a bit at the moment ;) I realise upgrade! is not a very good answer to specific problems like this! Cheers Kim * If you look at https://github.com/DSpace/DSpace/blob/master/dspace-oai/src/main/java/org/dspace/xoai/filter/DSpaceAuthorizationFilter.java, you will see the check: Item dspaceItem = (Item) HandleManager.resolveToObject(context, handle); AuthorizeManager.authorizeAction(context, dspaceItem, Constants.READ); for (Bundle b : dspaceItem.getBundles()) AuthorizeManager.authorizeAction(context, b, Constants.READ); return true; It's the same in 3.x classes. This might be intentional or it might just be an oversight while iterating item bundles, I'll check doc and might log a JIRA issue M: k...@shepherd.nzmailto:k...@shepherd.nz T: @kimshepherd P: +6421883635 0CCB D957 0C35 F5C1 497E CDCF FC4B ABA3 2A1A FAEC https://keybase.io/kshepherd On 29 May 2015 at 16:26, Fitchett, Deborah deborah.fitch...@lincoln.ac.nzmailto:deborah.fitch...@lincoln.ac.nz wrote: Hi there, We’re on DSpace 3.1 and have just switched over to XMLUI. All we know about DSpace we learned from a 2-day workshop and from working through this XLMUI switch, so please bear
[Dspace-tech] Null Pointer Exception
Hi, I am working with dspace 5.2. I got following exceptions at server console. when i started my dspace jspui instance.. i got value null for solrService. in SolrServiceImpl.java protected HttpSolrServer getSolr() { if ( solr == null) { String solrService = new DSpace().getConfigurationService().getProperty(discovery.search.server); .. SEVERE: Servlet.service() for servlet [jsp] in context with path [/rsdebateNew] threw exception [org.apache.jasper.JasperException: javax.servlet.ServletException: org.dspace.plugin.PluginException: org.dspace.app.webui.components.RecentSubmissionsException: org.dspace.browse.BrowseException: org.dspace.discovery.SearchServiceException] with root cause java.lang.NullPointerException at org.apache.solr.client.solrj.impl.HttpSolrServer.init(HttpSolrServer.java:150) at org.apache.solr.client.solrj.impl.HttpSolrServer.init(HttpSolrServer.java:141) at org.dspace.discovery.SolrServiceImpl.getSolr(SolrServiceImpl.java:148) at org.dspace.discovery.SolrServiceImpl.search(SolrServiceImpl.java:1598) at org.dspace.browse.SolrBrowseDAO.getSolrResponse(SolrBrowseDAO.java:192) at org.dspace.browse.SolrBrowseDAO.doQuery(SolrBrowseDAO.java:291) at org.dspace.browse.BrowseEngine.browseMini(BrowseEngine.java:164) at org.dspace.app.webui.components.RecentSubmissionsManager.getRecentSubmissions(RecentSubmissionsManager.java:89) at org.dspace.app.webui.components.RecentSiteSubmissions.process(RecentSiteSubmissions.java:47) at org.apache.jsp.index_jsp._jspService(index_jsp.java:120) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) at javax.servlet.http.HttpServlet.service(HttpServlet.java:727) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334) at javax.servlet.http.HttpServlet.service(HttpServlet.java:727) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at org.dspace.utils.servlet.DSpaceWebappServletFilter.doFilter(DSpaceWebappServletFilter.java:78) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408) at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1040) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:607) at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:314) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) -- Thanks Awanish Singh 9910287114 -- ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
[Dspace-tech] Dspace-cris invalid db.name
Hi, I've setup dspace-cris v 5.2.0 and this starts up and I can login ok. I've added in the default CRIS objects and can browse to these ok. This suggests that the db.name is valid. When I try and create a researcher page and save this an Internal exception is thrown which states that there is an invalid db.name: java.lang.IllegalStateException: The configuration for db.name is either invalid, or contains an unrecognised database at org.dspace.content.authority.AuthorityDAOFactory.getInstance(AuthorityDAOFactory.java:42) at org.dspace.app.webui.cris.controller.ResearcherPageDetailsController.handleDetails(ResearcherPageDetailsController.java:134) at it.cilea.osd.jdyna.web.controller.SimpleDynaController.handleRequestInternal(SimpleDynaController.java:116) I don't get this problem with v 4.3.0 Any ideas? There are a few other problems when the system starts but these do not seem to be a problem yet as I've not done any searching: Failed to startup the DSpace Service Manager: failure starting up spring service manager: Error creating bean with name 'org.dspace.servicemanager.spring.DSpaceBeanPostProcessor#0' defined in class path resource [spring/spring-dspace-applicationContext.xml]: Unsatisfied dependency expressed through constructor argument with index 0 of type [org.dspace.servicemanager.config.DSpaceConfigurationService]: : Cannot find class [org.dspace.app.cris.discovery.CrisSearchService] nested exception is java.lang.ClassNotFoundException: org.dspace.app.cris.discovery.CrisSearchService at org.dspace.servicemanager.servlet.DSpaceKernelServletContextListener.contextInitialized(DSpaceKernelServletContextListener.java:92) This is the final problem which eventually results in a null pointer in the DspaceContextListener. Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dspace.eventService' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: Factory method [public org.dspace.services.EventService org.dspace.utils.DSpace.getEventService()] threw exception; nested exception is java.lang.IllegalStateException: DSpace kernel cannot be null Any help is appreciated. Alastair -- ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
Re: [Dspace-tech] Strange duplication in PostgreSQL
George we found double arks at one point - also on DSPACE 1.8 see JIRA issue: https://jira.duraspace.org/browse/DS-2106 Monika — Monika Mevenkamp Digital Repository Infrastructure Developer Phone: 609-258-4161 333C 701 Carnegie, Princeton University, Princeton, NJ 08544 On Jun 2, 2015, at 9:48 AM, George Stanley Kozak g...@cornell.edumailto:g...@cornell.edu wrote: Hi… We had a strange thing happen yesterday in our production DSpace install, and I wonder if anyone else has had this problem. First off, we are at DSpace 1.8.2 (in production) moving to DSpace 5.2 next week. Someone submitted an item into our DSpace 1.8.2 production system, and when you looked in the “Recent Submissions” for the collection that it was submitted to, the item was displayed 4 times. I restarted PostGreSQL and tomcat, but that didn’t help, so I went into the SQL tables. I found a duplicate entry in the handles table, the communities2items table and the bi-item table. After deleting the duplicates, everything was OK. I am wondering if anyone has ever seen this or has any ideas about what caused this, and whether something like this might happen in 5.2? George Kozak Digital Library Specialist Cornell University Library Information Technologies (CUL-IT) 218 Olin Library Cornell University Ithaca, NY 14853 607-255-8924 -- ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.netmailto:DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette -- ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
[Dspace-tech] ant udate fail
Hi, I am trying to update ant but I keep having the error, please help C:\dspace\DSpace-mastercd C:\dspace\DSpace-master\dspace\target\dspace-installe r C:\dspace\DSpace-master\dspace\target\dspace-installerant update Buildfile: C:\dspace\DSpace-master\dspace\target\dspace-installer\build.xml prepare_configs: [mkdir] Created dir: C:\dspace\DSpace-master\dspace\target\dspace-installer\ config-temp [copy] Copying 1 file to C:\dspace\DSpace-master\dspace\target\dspace-insta ller\config-temp [copy] Copying 142 files to C:\dspace\DSpace-master\dspace\target\dspace-in staller\config-temp copy_configs_keep: overwrite_configs: [copy] Copying 3 files to C:\Program Files\dspace\config Attempt to copy C:\Program Files\dspace\config\input-forms.dtd to C:\Program Fil es\dspace\config\input-forms.dtd-20150602-133352.old using NIO Channels failed d ue to 'C:\Program Files\dspace\config\input-forms.dtd-20150602-133352.old (Acces s is denied)'. Falling back to streams. BUILD FAILED C:\dspace\DSpace-master\dspace\target\dspace-installer\build.xml:215: Failed to copy C:\Program Files\dspace\config\input-forms.dtd to C:\Program Files\dspace\c onfig\input-forms.dtd-20150602-133352.old due to java.io.FileNotFoundException C :\Program Files\dspace\config\input-forms.dtd-20150602-133352.old (Access is den ied) Total time: 1 second Regards Binta From: Kleiner Eike (klie) [mailto:k...@zhaw.ch] Sent: 02 June 2015 13:32 To: Graham Faulkner Cc: dspace-tech@lists.sourceforge.net Subject: Re: [Dspace-tech] two form fields with same schema element and qualifier Hi Graham, We ran into the same problem with JSPUI on DSpace 5.1. We tried to fill dc.type from two different value-pair-lists and ended up with the duplicate entries you described. We came to two possible solutions: 1) Merge the lists into one and make the field repeatable / multi selection. 2) Distribute the fields over multiple pages of the ingest form. At least with JSPUI this avoids the duplicates. Both approaches are not fully satisfactory but I wasn't able to find a better solution on the fly. Hope this helps Eike -- ZHAW Zürcher Hochschule für Angewandte Wissenschaften Information Communication Technology Eike Kleiner Gertrudstrasse 15 Postfach CH-8401 Winterthur Tel: +41 58 934 4959 Fax: +41 58 935 4959 E-Mail:eike.klei...@zhaw.ch Von: Graham Faulkner [mailto:graham.faulk...@uwaterloo.ca] Gesendet: Montag, 1. Juni 2015 19:19 An: dspace-tech@lists.sourceforge.netmailto:dspace-tech@lists.sourceforge.net Betreff: Re: [Dspace-tech] two form fields with same schema element and qualifier Hello again. I failed to mention that this was for XMLUI (Mirage 2 to be specific) on DS 5.1. Cheers, Graham From: Graham Faulkner [mailto:graham.faulk...@uwaterloo.ca] Sent: Friday, May 29, 2015 2:13 PM To: dspace-tech@lists.sourceforge.netmailto:dspace-tech@lists.sourceforge.net Subject: [Dspace-tech] two form fields with same schema element and qualifier Hi there, This question relates to DS5.1 on Ubuntu using PostgreSQL. In our /dspace/config/input-forms.xml we have two drop-down fields for Faculty and Department, respectively. We want both fields to have the same element (contributor) and qualifier (affiliation), which are part of a custom schema (uws). However, when we submit the item in the submission workflow, the fields are each inserted twice in the database. i.e. rather than having one entry for the Faculty and one for Department, there are two entries each. Here are the respective fields in input-forms.xml: !-- New field: Faculty -- field dc-schemauws/dc-schema dc-elementcontributor/dc-element dc-qualifieraffiliation/dc-qualifier repeatablefalse/repeatable labelFaculty or affiliated and federated institution/label input-type value-pairs-name=FacultySubmissionForm_facultydropdown/input-type hintSelect your faculty or affiliated and federated institution from the drop down list./hint requiredYou must choose from the list of Faculties and affiliated and federated institutions./required /field !-- New field: Department -- field dc-schemauws/dc-schema dc-elementcontributor/dc-element dc-qualifieraffiliation/dc-qualifier repeatablefalse/repeatable labelDepartment/label input-type value-pairs-name=FacultySubmissionForm_departmentdropdown/input-type hintSelect your department from the drop down list./hint requiredYou must choose from the list of departments./required /field Any suggestions on solutions, or pointers to where the duplicate entry is occurring in the source code? Cheers, Graham - Graham Faulkner Web Developer / Programmer Digital Initiatives, Library University of Waterloo Waterloo, Ontario N2L 3G1 CANADA 519-888-4567
[Dspace-tech] tomcat http: 404 errror
Hi, Tomcat keep giving me the error and when I check the log this is what it says. WARN [org.dspace.services.email.EmailServiceImpl] Couldn't get an email session from environment: Name [mail/Session] is not bound in this Context. Unable to find [mail]. INFO [org.dspace.services.email.EmailServiceImpl] Initializing an email session from configuration. INFO [org.springframework.beans.factory.support.DefaultListableBeanFactory] Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@cfbc6e7: defining beans [org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,org.dspace.servicemanager.spring.DSpaceBeanPostProcessor#0,org.dspace.example.Example,org.dspace.discovery.SearchService,org.dspace.app.requestitem.RequestItemAuthorExtractor,org.dspace.app.sherpa.submit.SHERPASubmitConfigurationService,org.dspace.app.sherpa.SHERPAService,org.dspace.app.sherpa.submit.SHERPASubmitService,org.dspace.identifier.IdentifierService,org.dspace.identifier.VersionedHandleIdentifierProvider,org.dspace.services.CachingService,org.dspace.caching.ehcache.CacheManager,org.dspace.services.SessionService,org.dspace.services.EventService,org.dspace.services.email.EmailServiceImpl,org.springframework.context.annotation.ConfigurationClassPostProcessor$ImportAwareBeanPostProcessor#0]; root of factory hierarchy INFO [org.dspace.servicemanager.spring.SpringServiceManager] Spring Service Manager started up in 798 ms with 19 services... INFO [org.dspace.servicemanager.DSpaceKernelImpl] DSpace kernel startup completed in 822 ms and registered as MBean: org.dspace:name=4beb889b-2bbb-4805-92ff-955fb294e522,type=DSpaceKernel INFO [org.dspace.core.ConfigurationManager] Loading provided config file: ${dspace.dir}/config/dspace.cfg FATAL [org.dspace.core.ConfigurationManager] Can't load configuration: file:/C:/tomcat/$%7Bdspace.dir%7D/config/dspace.cfg java.io.FileNotFoundException: C:\tomcat\${dspace.dir}\config\dspace.cfg (The system cannot find the path specified) at java.io.FileInputStream.open(Native Method) at java.io.FileInputStream.init(FileInputStream.java:146) at java.io.FileInputStream.init(FileInputStream.java:101) at sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:90) at sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:188) at java.net.URL.openStream(URL.java:1037) at org.dspace.core.ConfigurationManager.loadConfig(ConfigurationManager.java:660) at org.dspace.app.util.DSpaceContextListener.contextInitialized(DSpaceContextListener.java:102) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4992) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5490) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:649) at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1247) at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1898) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask.run(FutureTask.java:262) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:745) Please help Regards Binta From: Kleiner Eike (klie) [mailto:k...@zhaw.ch] Sent: 02 June 2015 13:32 To: Graham Faulkner Cc: dspace-tech@lists.sourceforge.net Subject: Re: [Dspace-tech] two form fields with same schema element and qualifier Hi Graham, We ran into the same problem with JSPUI on DSpace 5.1. We tried to fill dc.type from two different value-pair-lists and ended up with the duplicate entries you described. We came to two possible solutions: 1) Merge the lists into one and make the field repeatable / multi selection. 2) Distribute the fields over multiple pages of the ingest form. At least with JSPUI this avoids the duplicates. Both approaches are not fully satisfactory but I wasn't able to find a better solution on the fly. Hope this helps Eike -- ZHAW Zürcher Hochschule für Angewandte
Re: [Dspace-tech] discovery facet by collection
The field should be fine (At least thats the field I can see in Solr search core). Maybe the problem is that you didn't define it in every place where it is needed. I think it has to be a search filter in addition to a facet in order to work. And maybe it has to be part of the hompageConfiguration and the defaultConfiguration. But I am not sure about that. Am 02.06.2015 um 14:51 schrieb Pablo Buenaposada: yes, I have reindex after the change in discovery.xml. The tag location.coll is the correct one to obtain the collection? -- View this message in context: http://dspace.2283337.n4.nabble.com/discovery-facet-by-collection-tp4678162p4678167.html Sent from the DSpace - Tech mailing list archive at Nabble.com. -- ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette -- Christian Scheible Softwareentwickler / Abt. Content-basierte Dienste Kommunikations-, Informations- und Medienzentrum (KIM) Universität Konstanz 78457 Konstanz +49 (0)7531 / 88-2857 Raum B 703 -- ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
Re: [Dspace-tech] ant udate fail
this looks like a permission problem - the user running the ant update command should be the same as the user owning C:\Program Files\dspace\config If you did the standard install - run ant update as the dspace user Monika — Monika Mevenkamp Digital Repository Infrastructure Developer Phone: 609-258-4161 333C 701 Carnegie, Princeton University, Princeton, NJ 08544 On Jun 2, 2015, at 9:52 AM, Saidy Binta bisa...@mrc.gmmailto:bisa...@mrc.gm wrote: Hi, I am trying to update ant but I keep having the error, please help C:\dspace\DSpace-mastercd C:\dspace\DSpace-master\dspace\target\dspace-installe r C:\dspace\DSpace-master\dspace\target\dspace-installerant update Buildfile: C:\dspace\DSpace-master\dspace\target\dspace-installer\build.xml prepare_configs: [mkdir] Created dir: C:\dspace\DSpace-master\dspace\target\dspace-installer\ config-temp [copy] Copying 1 file to C:\dspace\DSpace-master\dspace\target\dspace-insta ller\config-temp [copy] Copying 142 files to C:\dspace\DSpace-master\dspace\target\dspace-in staller\config-temp copy_configs_keep: overwrite_configs: [copy] Copying 3 files to C:\Program Files\dspace\config Attempt to copy C:\Program Files\dspace\config\input-forms.dtd to C:\Program Fil es\dspace\config\input-forms.dtd-20150602-133352.old using NIO Channels failed d ue to 'C:\Program Files\dspace\config\input-forms.dtd-20150602-133352.old (Acces s is denied)'. Falling back to streams. BUILD FAILED C:\dspace\DSpace-master\dspace\target\dspace-installer\build.xml:215: Failed to copy C:\Program Files\dspace\config\input-forms.dtd to C:\Program Files\dspace\c onfig\input-forms.dtd-20150602-133352.old due to java.io.FileNotFoundException C :\Program Files\dspace\config\input-forms.dtd-20150602-133352.old (Access is den ied) Total time: 1 second Regards Binta From: Kleiner Eike (klie) [mailto:k...@zhaw.ch] Sent: 02 June 2015 13:32 To: Graham Faulkner Cc: dspace-tech@lists.sourceforge.netmailto:dspace-tech@lists.sourceforge.net Subject: Re: [Dspace-tech] two form fields with same schema element and qualifier Hi Graham, We ran into the same problem with JSPUI on DSpace 5.1. We tried to fill dc.type from two different value-pair-lists and ended up with the duplicate entries you described. We came to two possible solutions: 1) Merge the lists into one and make the field repeatable / multi selection. 2) Distribute the fields over multiple pages of the ingest form. At least with JSPUI this avoids the duplicates. Both approaches are not fully satisfactory but I wasn’t able to find a better solution on the fly. Hope this helps Eike -- ZHAW Zürcher Hochschule für Angewandte Wissenschaften Information Communication Technology Eike Kleiner Gertrudstrasse 15 Postfach CH-8401 Winterthur Tel: +41 58 934 4959 Fax: +41 58 935 4959 E-Mail:eike.klei...@zhaw.chmailto:eike.klei...@zhaw.ch Von: Graham Faulkner [mailto:graham.faulk...@uwaterloo.ca] Gesendet: Montag, 1. Juni 2015 19:19 An: dspace-tech@lists.sourceforge.netmailto:dspace-tech@lists.sourceforge.net Betreff: Re: [Dspace-tech] two form fields with same schema element and qualifier Hello again. I failed to mention that this was for XMLUI (Mirage 2 to be specific) on DS 5.1. Cheers, Graham From: Graham Faulkner [mailto:graham.faulk...@uwaterloo.ca] Sent: Friday, May 29, 2015 2:13 PM To: dspace-tech@lists.sourceforge.netmailto:dspace-tech@lists.sourceforge.net Subject: [Dspace-tech] two form fields with same schema element and qualifier Hi there, This question relates to DS5.1 on Ubuntu using PostgreSQL. In our /dspace/config/input-forms.xml we have two drop-down fields for Faculty and Department, respectively. We want both fields to have the same element (“contributor”) and qualifier (“affiliation”), which are part of a custom schema (“uws”). However, when we submit the item in the submission workflow, the fields are each inserted twice in the database. i.e. rather than having one entry for the Faculty and one for Department, there are two entries each. Here are the respective fields in input-forms.xml: !-- New field: Faculty -- field dc-schemauws/dc-schema dc-elementcontributor/dc-element dc-qualifieraffiliation/dc-qualifier repeatablefalse/repeatable labelFaculty or affiliated and federated institution/label input-type value-pairs-name=FacultySubmissionForm_facultydropdown/input-type hintSelect your faculty or affiliated and federated institution from the drop down list./hint requiredYou must choose from the list of Faculties and affiliated and federated institutions./required /field !-- New field: Department -- field dc-schemauws/dc-schema dc-elementcontributor/dc-element dc-qualifieraffiliation/dc-qualifier repeatablefalse/repeatable labelDepartment/label input-type value
Re: [Dspace-tech] discovery facet by collection
yes, I have reindex after the change in discovery.xml. The tag location.coll is the correct one to obtain the collection? -- View this message in context: http://dspace.2283337.n4.nabble.com/discovery-facet-by-collection-tp4678162p4678167.html Sent from the DSpace - Tech mailing list archive at Nabble.com. -- ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
Re: [Dspace-tech] dspace-cris ordering in custom jsp
Hi Andrea, I also tried that config, I have this in dspace.cfg: webui.itemlist.sort-option.4 = rpname:crisrp.fullName:title and changed the SortOption constructor to this: new SortOption(4); but has no effect on the results. -- View this message in context: http://dspace.2283337.n4.nabble.com/dspace-cris-ordering-in-custom-jsp-tp4678159p4678169.html Sent from the DSpace - Tech mailing list archive at Nabble.com. -- ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
[Dspace-tech] Strange duplication in PostgreSQL
Hi... We had a strange thing happen yesterday in our production DSpace install, and I wonder if anyone else has had this problem. First off, we are at DSpace 1.8.2 (in production) moving to DSpace 5.2 next week. Someone submitted an item into our DSpace 1.8.2 production system, and when you looked in the Recent Submissions for the collection that it was submitted to, the item was displayed 4 times. I restarted PostGreSQL and tomcat, but that didn't help, so I went into the SQL tables. I found a duplicate entry in the handles table, the communities2items table and the bi-item table. After deleting the duplicates, everything was OK. I am wondering if anyone has ever seen this or has any ideas about what caused this, and whether something like this might happen in 5.2? George Kozak Digital Library Specialist Cornell University Library Information Technologies (CUL-IT) 218 Olin Library Cornell University Ithaca, NY 14853 607-255-8924 -- ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
Re: [Dspace-tech] Possible issue with SOLR following an upgrade from 3.2 to 5.2
Hi, Kim, Thanks for the suggestions. Fortunately we’ve solved the mystery, but I’ll hang onto these for later reference. As it turns out the issue was as simple as just needing to re-index SOLR. I’m not sure why the discrepancy between the dev setup and the production server, but for whatever reason the indexing didn’t happen by default during the upgrades. Casey From: Kim Shepherd [mailto:kim.sheph...@gmail.com] Sent: Monday, June 01, 2015 11:36 PM To: Hume, Casey Cc: dspace-tech@lists.sourceforge.net Subject: Re: [Dspace-tech] Possible issue with SOLR following an upgrade from 3.2 to 5.2 Hi Casey, It looks to me like these problems (at least, the errors pasted) could be related to some XMLUI aspect or pipeline issues rather than Solr itself. However, taking a look at your Solr index(es) and making sure the data is all there sounds like a good first step, and will at least eliminate it as a problem. By default, the Solr webapp is configured with a LocalhostRestrictionFilter enabled, to ensure that only your local DSpace [web]apps have access. You'll want to give yourself some direct access to Solr to help with testing and diagnosis - here are some instructions that will help you open your Solr webapp up to some specific IPs without letting the rest of the Internet in. (assuming Tomcat7) https://wiki.duraspace.org/display/DSPACE/Solr#Solr-InstructionsspecifictoTomcat7andnewer Once you've configured that, you can visit http://your.hostname/solr to get to the main admin page, or try a few queries like http://your.hostname/solr/search/select?q=*:* I'm keen to hear how you get on with all of that - keep us posted! If it doesn't help get to the bottom of the actual problem, you could maybe compare your XMLUI config and sitemaps between dev and prod instances... I'm wondering if some parts didn't get fully upgraded and are referring to invalid paths or getting stuck somewhere? Cheers Kim M: k...@shepherd.nzmailto:k...@shepherd.nz T: @kimshepherd P: +6421883635 0CCB D957 0C35 F5C1 497E CDCF FC4B ABA3 2A1A FAEC https://keybase.io/kshepherd On 30 May 2015 at 08:24, Hume, Casey casey.h...@nist.govmailto:casey.h...@nist.gov wrote: Hello, We’re upgrading our existing 3.2 DSpace install to 5.2. We copied our production system into a dev environment and I was able to complete the upgrade without any issues, but upon replicating the process in production, everything has worked except that the Recent Submissions, Discovery, and Search do not work in the production server. I suspect this may have something to do with the solr application, but I’m fairly new to DSpace. At present, the only remaining issues appearing in the logs are below. If someone could confirm my suspicion, suggest a good method to test the solr setup or point me in a different direction it would be much appreciated. In cocoon.log: 2015-05-29 16:02:11,763 ERROR cocoon.handled - Failed to process pipeline at map:serialize type=xml - jndi:/localhost/dspace/xmlui/aspects/aspects.xmap:96:31 at map:generate type=file - jndi:/localhost/dspace/xmlui/aspects/aspects.xmap:95:55 at map:serialize type=xml - resource://aspects/Versioning/sitemap.xmap:135:40 … [and also messages such as] org.apache.cocoon.caching.impl.CacheImpl - Caching new response for PK_G-aspect-cocoon://DRI/2/discover?pipelinehash= in dspace.log: 2015-05-29 16:21:45,585 INFO org.dspace.app.xmlui.aspect.discovery.SidebarFacetsTransformer @ facets for scope, null: 3 2015-05-29 16:21:45,989 INFO org.dspace.app.xmlui.aspect.discovery.SidebarFacetsTransformer @ facets for scope, null: 3 2015-05-29 16:21:46,006 INFO org.dspace.app.xmlui.aspect.discovery.AbstractSearch @ anonymous:session_id=X:ip_addr=XXX.XXX.XXX.XXX:search:query=null,results=(0,0,0) Casey R. Hume, Ph.D. Computer Scientist, Office of Data Informatics (ODI) National Institute of Standards and Technology 100 Bureau Drive; (a)Building 222/Room A125 (x 2451) (b)Building 223/Room A3-- (x ) Gaithersburg, MD 20899-2300 -- ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.netmailto:DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette -- ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
Re: [Dspace-tech] dspace-cris ordering in custom jsp
Hi Pablo, you need to configure your sort order in the dspace.cfg and put in the jsp tag just the number associated with your new sort option. Create a SortOption object doesn't work if it is not configured in the dspace.cfg and the system properly reindexed. Andrea Il 02/06/2015 09.22, Pablo Buenaposada ha scritto: Hi, I want to order the researcher results that a custom jsp returns in a specific tab. I see that the jstl line which prints the results is this : dspace:browselist items=quot;lt;%= (BrowseItem[])info.getItems() % config=crisrp / this works nice but the order is not alphabetical, I saw in another default jsp (persons.jsp) that you can add the options sortBy=%= new Integer(info.getSo().getNumber()).toString() % and order=%= info.getOrder() % so I add a new SortOption object to the info instance: SortOption sortOption = new SortOption(4,rpname:crisrp.fullName:title); info.setSo(sortOption); and also the order string to the info instance: info.setOrder(DESC); and the jslt line: dspace:browselist items=quot;lt;%= (BrowseItem[])info.getItems() % config=crisrp sortBy=%= new Integer(info.getSo().getNumber()).toString() % order=%= info.getOrder() %/ but doesn't order the researcher results, it prints the researchers but without the alpabetical order... any hint? -- View this message in context: http://dspace.2283337.n4.nabble.com/dspace-cris-ordering-in-custom-jsp-tp4678159.html Sent from the DSpace - Tech mailing list archive at Nabble.com. -- ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette -- Andrea Bollini Soluzioni per la Ricerca Istituzionale Cineca Via dei Tizii, 6 00185 Roma, Italy tel. +39 06 44 486 087 - mob. +39 348 82 77 525 http://www.cineca.it -- ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
Re: [Dspace-tech] two form fields with same schema element and qualifier
Hi Graham, We ran into the same problem with JSPUI on DSpace 5.1. We tried to fill dc.type from two different value-pair-lists and ended up with the duplicate entries you described. We came to two possible solutions: 1) Merge the lists into one and make the field repeatable / multi selection. 2) Distribute the fields over multiple pages of the ingest form. At least with JSPUI this avoids the duplicates. Both approaches are not fully satisfactory but I wasn't able to find a better solution on the fly. Hope this helps Eike -- ZHAW Zürcher Hochschule für Angewandte Wissenschaften Information Communication Technology Eike Kleiner Gertrudstrasse 15 Postfach CH-8401 Winterthur Tel: +41 58 934 4959 Fax: +41 58 935 4959 E-Mail:eike.klei...@zhaw.ch Von: Graham Faulkner [mailto:graham.faulk...@uwaterloo.ca] Gesendet: Montag, 1. Juni 2015 19:19 An: dspace-tech@lists.sourceforge.net Betreff: Re: [Dspace-tech] two form fields with same schema element and qualifier Hello again. I failed to mention that this was for XMLUI (Mirage 2 to be specific) on DS 5.1. Cheers, Graham From: Graham Faulkner [mailto:graham.faulk...@uwaterloo.ca] Sent: Friday, May 29, 2015 2:13 PM To: dspace-tech@lists.sourceforge.netmailto:dspace-tech@lists.sourceforge.net Subject: [Dspace-tech] two form fields with same schema element and qualifier Hi there, This question relates to DS5.1 on Ubuntu using PostgreSQL. In our /dspace/config/input-forms.xml we have two drop-down fields for Faculty and Department, respectively. We want both fields to have the same element (contributor) and qualifier (affiliation), which are part of a custom schema (uws). However, when we submit the item in the submission workflow, the fields are each inserted twice in the database. i.e. rather than having one entry for the Faculty and one for Department, there are two entries each. Here are the respective fields in input-forms.xml: !-- New field: Faculty -- field dc-schemauws/dc-schema dc-elementcontributor/dc-element dc-qualifieraffiliation/dc-qualifier repeatablefalse/repeatable labelFaculty or affiliated and federated institution/label input-type value-pairs-name=FacultySubmissionForm_facultydropdown/input-type hintSelect your faculty or affiliated and federated institution from the drop down list./hint requiredYou must choose from the list of Faculties and affiliated and federated institutions./required /field !-- New field: Department -- field dc-schemauws/dc-schema dc-elementcontributor/dc-element dc-qualifieraffiliation/dc-qualifier repeatablefalse/repeatable labelDepartment/label input-type value-pairs-name=FacultySubmissionForm_departmentdropdown/input-type hintSelect your department from the drop down list./hint requiredYou must choose from the list of departments./required /field Any suggestions on solutions, or pointers to where the duplicate entry is occurring in the source code? Cheers, Graham - Graham Faulkner Web Developer / Programmer Digital Initiatives, Library University of Waterloo Waterloo, Ontario N2L 3G1 CANADA 519-888-4567 x32461 graham.faulk...@uwaterloo.camailto:graham.faulk...@uwaterloo.ca -- ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette