Re: [Dspace-tech] [KE1019161] Get record from OAI with a individual identifier
Hi Joao, thank you for answering! Ok REST would be nice but i see there is not documentation of such a implementation. I found these instructions https://jspace.atlassian.net/wiki/display/DSPACEAPI/DSpace+REST+API+Home https://jspace.atlassian.net/wiki/display/DSPACEAPI/API+Documentation https://wiki.duraspace.org/display/DSPACE/REST+API It seems to be in beta status, or? Other idea, is it possible to use the solr search server to get what i want? Regards Marco Am 22.01.2013 03:44, schrieb João Melo: Hi Marco, sorry for the delay. Unfortunately i've misunderstood, as helix said, it requires code changes. But, i would strongly disencourage you, OAI-PMH protocol is not meant to be used for custom query purposes, you could use some rest-api instead (we are using and it works fine). If you have any further questions (about OAI/rest-api), please, feel free to question. On 18 January 2013 15:12, marco.we...@kesslernetworks.de wrote: Hi Helix, thank you for that link. I now new which direction Joao and you are thinking of but i can't find a documentation what i have to do. Just with the configuration file and the note OAI 2.0 allows you to configure following advanced options ... filters i can't understand what to do. Maybe i'm to stupid to get my gyrus around that, and googling the half day doesn't solve it ;) Maybe Joao can you explain it to me or give me a hint? Regards, Marco Am 17.01.2013 13:35, schrieb helix84: On Thu, Jan 17, 2013 at 1:18 PM, marco.we...@kesslernetworks.de wrote: yes we are using DSpace 3.0. Can you provide me a hint where i can find a documentation of these filters? The filters Joao meant are defined and used here: https://github.com/DSpace/DSpace/blob/dspace-3.0/dspace/config/crosswalks/oai/xoai.xml [1] I don't know how they allow you to change what identifiers are _accepted_ by oai without writing Java code, but of course Joao knows better, he wrote the code. Regards, ~~helix84 Compulsory reading: DSpace Mailing List Etiquette https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette [2] -- Thanks, João Melo (My Portfolio [3]) DSpace Department LYNCODE: Official website [4] [5] [6] Links: -- [1] https://github.com/DSpace/DSpace/blob/dspace-3.0/dspace/config/crosswalks/oai/xoai.xml [2] https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette [3] http://www.lyncode.com/m/jmelo/ [4] http://www.google.com/url?q=http%3A%2F%2Fwww.lyncode.com%2Famp;sa=Damp;sntz=1amp;usg=AFrqEzdV8iS6rMxflxnn138XReuRfUG3OQ [5] http://www.google.com/url?q=http%3A%2F%2Ftwitter.com%2Flyncodeamp;sa=Damp;sntz=1amp;usg=AFrqEzeDuT3ZqMW5uVIA8AoxtTtAeiCX3Q [6] http://www.google.com/url?q=http%3A%2F%2Fwww.facebook.com%2Flyncodeamp;sa=Damp;sntz=1amp;usg=AFrqEzcWXjHa3gKBGLsNVxktapxkiWDnww -- Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft MVPs and experts. ON SALE this month only -- learn more at: http://p.sf.net/sfu/learnnow-d2d___ 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] [KE1019161] Get record from OAI with a individual identifier
On Tue, Jan 22, 2013 at 9:01 AM, marco.we...@kesslernetworks.de wrote: Other idea, is it possible to use the solr search server to get what i want? Yes! Please, read my first email. Regards, ~~helix84 Compulsory reading: DSpace Mailing List Etiquette https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette -- Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft MVPs and experts. ON SALE this month only -- learn more at: http://p.sf.net/sfu/learnnow-d2d ___ 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] Atmire DSpace news
Early 2012 we started sending out a monthly digest of DSpace related articles that were posted on the @mire website to our clients and contacts. Because several people replied that this content could be useful for the recipients of the DSpace-general and dspace-tech mailing lists, I am copying our latest digest below as an example. So far, we have no intention to cross post the digest every month, because of the already existing overlap in subscribers to the digest and the mailing lists. If you like the content below and want to subscribe, send me an email. with kindest regards, Bram Luyten -- [image: logo] *Bram Luyten* *@mire* *2888 Loker Avenue East, Suite 315, Carlsbad, CA. 92010* *Esperantolaan 4, Heverlee 3001, Belgium* http://www.atmire.com/www.atmire.comhttp://atmire.com/website/?q=servicesutm_source=emailfooterutm_medium=emailutm_campaign=braml Atmire DSpace news With this newsletter, we aim to provide you with both unique and relevant DSpace content. We welcome and appreciate your comments, suggestions and questionshttp://atmire.com/website/?q=contactutm_source=newsletterutm_medium=emailutm_campaign=monthly . In this newsletter: - Which academic institutions are visiting your repository? https://atmire.com/website/?q=content/which-academic-institutions-are-visiting-your-repositoryutm_source=newsletterutm_medium=emailutm_campaign=monthly - DSpace 3.0 Released!https://atmire.com/website/?q=content/dspace-30-releasedutm_source=newsletterutm_medium=emailutm_campaign=monthly - 2013 support holidayshttps://atmire.com/website/?q=content/2013-support-holidaysutm_source=newsletterutm_medium=emailutm_campaign=monthly - DSpace 3.0, item level versioninghttps://atmire.com/website/?q=content/dspace-30-item-level-versioningutm_source=newsletterutm_medium=emailutm_campaign=monthly - DSpace Blows out 10 candleshttps://atmire.com/website/?q=content/dspace-blows-out-10-candlesutm_source=newsletterutm_medium=emailutm_campaign=monthly Which academic institutions are visiting your repository? Step by step guide to report academic usage of your DSpace repository. Read More...https://atmire.com/website/?q=content/which-academic-institutions-are-visiting-your-repositoryutm_source=newsletterutm_medium=emailutm_campaign=monthly DSpace 3.0 Released! The long awaited release is finally here. Discover all new functionality. Read More...https://atmire.com/website/?q=content/dspace-30-releasedutm_source=newsletterutm_medium=emailutm_campaign=monthly 2013 support holidays Extended response times apply on all @mire services during official support holidays. Read More...https://atmire.com/website/?q=content/2013-support-holidaysutm_source=newsletterutm_medium=emailutm_campaign=monthly DSpace 3.0, item level versioning DSpace 3.0 lets you create versions of items. Read More...https://atmire.com/website/?q=content/dspace-30-item-level-versioningutm_source=newsletterutm_medium=emailutm_campaign=monthly DSpace Blows out 10 candles A decade has passed since the release of DSpace 1.0. Read More...https://atmire.com/website/?q=content/dspace-blows-out-10-candlesutm_source=newsletterutm_medium=emailutm_campaign=monthly *You were subscribed to this newsletter because of your past interest in DSpace and @mire.* *In case you wish to change your subscription level (developer news, manager news or both) or unsubscribe, just reply to this email and we will follow up.* [image: visit @mire.com] http://atmire.com/website/?utm_source=newsletter_footerutm_medium=newsletterutm_campaign=newsletter -- Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft MVPs and experts. ON SALE this month only -- learn more at: http://p.sf.net/sfu/learnnow-d2d___ 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] How customize v 3.0 Discovery search filter drop-down labels
Hi Charles, sorry for the late response, I had to test it. As you correctly found out, the string comes from xmlui.ArtifactBrowser.SimpleSearch.filter.dateIssued The reason why it didn't show up immediately after you changed it in messages.xml and restarted Tomcat is that you have previously viewed that page and Cocoon (the framework XMLUI is built on) caches pages for you. So the old string from before you made the change was still there. At a later time (when you did a change to the underlying DRI by adding a filter) the cached version was updated and you started to see the new string. To prevent this in the future, don't forget to clear your Cocoon cache: https://wiki.duraspace.org/display/DSPACE/TechnicalFaq#TechnicalFaq-ClearingCocoon(XMLUI)cache Regards, ~~helix84 Compulsory reading: DSpace Mailing List Etiquette https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette -- Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft MVPs and experts. ON SALE this month only -- learn more at: http://p.sf.net/sfu/learnnow-d2d ___ 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] SOLR log files
Hi Hilton, Andrea already answered this question: http://www.mail-archive.com/dspace-tech@lists.sourceforge.net/msg19164.html I tried it and it works. I created /dspace/webapps/solr/WEB-INF/classes/logging.properties with the following contents (you asked about SEVERE but I'm not pushing it): org.apache.commons.digester.Digester.level = FINEST org.apache.solr.level = WARNING Regards, ~~helix84 Compulsory reading: DSpace Mailing List Etiquette https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette -- Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft MVPs and experts. ON SALE this month only -- learn more at: http://p.sf.net/sfu/learnnow-d2d___ 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] SOLR log files
Hi Helix Will this hold thru a rebuild? See: http://wiki.lib.sun.ac.za/index.php/SUNScholar/Rebuild_Dspace Cheers hg On 22 January 2013 11:34, helix84 heli...@centrum.sk wrote: Hi Hilton, Andrea already answered this question: http://www.mail-archive.com/dspace-tech@lists.sourceforge.net/msg19164.html I tried it and it works. I created /dspace/webapps/solr/WEB-INF/classes/logging.properties with the following contents (you asked about SEVERE but I'm not pushing it): org.apache.commons.digester.Digester.level = FINEST org.apache.solr.level = WARNING Regards, ~~helix84 Compulsory reading: DSpace Mailing List Etiquette https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette -- *Hilton Gibson* Systems Administrator JS Gericke Library Room 1025D Stellenbosch University Private Bag X5036 Stellenbosch 7599 South Africa Tel: +27 21 808 4100 | Cell: +27 84 646 4758 http://library.sun.ac.za http://scholar.sun.ac.za http://ar1.sun.ac.za http://aj1.sun.ac.za -- Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft MVPs and experts. ON SALE this month only -- learn more at: http://p.sf.net/sfu/learnnow-d2d___ 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] SOLR log files
On Tue, Jan 22, 2013 at 10:37 AM, Hilton Gibson hilton.gib...@gmail.com wrote: Will this hold thru a rebuild? No, I don't think so. I'm not 100% sure, but I think you can't change that without rebuilding the dspace-solr dependency. I haven't tried that though, feel free to try. As an easier alternative, try putting org.apache.commons.digester.Digester.level = FINEST org.apache.solr.level = WARNING into /etc/tomcat6/logging.properties I haven't tried that, either. Let us know. Regards, ~~helix84 Compulsory reading: DSpace Mailing List Etiquette https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette -- Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft MVPs and experts. ON SALE this month only -- learn more at: http://p.sf.net/sfu/learnnow-d2d ___ 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] SOLR log files
On 22 January 2013 11:42, helix84 heli...@centrum.sk wrote: I haven't tried that, either. Let us know. This seems to work: http://wiki.lib.sun.ac.za/index.php/SUNScholar/Optimisations#SOLR after a rebuild. Can this file be added to the source code? -- *Hilton Gibson* Systems Administrator JS Gericke Library Room 1025D Stellenbosch University Private Bag X5036 Stellenbosch 7599 South Africa Tel: +27 21 808 4100 | Cell: +27 84 646 4758 http://library.sun.ac.za http://scholar.sun.ac.za http://ar1.sun.ac.za http://aj1.sun.ac.za -- Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft MVPs and experts. ON SALE this month only -- learn more at: http://p.sf.net/sfu/learnnow-d2d___ 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] SOLR log files
On Tue, Jan 22, 2013 at 11:48 AM, Hilton Gibson hilton.gib...@gmail.com wrote: This seems to work: http://wiki.lib.sun.ac.za/index.php/SUNScholar/Optimisations#SOLR after a rebuild. Can this file be added to the source code? I'm for adding it, but I don't decide on that alone. Please, file a Jira issue. I'm not convinced that the modules tree is the best place for it, we should probably put it directly into dspace-solr instead: https://github.com/DSpace/dspace-solr/tree/master/webapp/src/main/webapp/WEB-INF Having the file in modules should still override the one in dspace-solr. I also think that WARNING would be a reasonable level to include into DSpace. Regards, ~~helix84 Compulsory reading: DSpace Mailing List Etiquette https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette -- Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft MVPs and experts. ON SALE this month only -- learn more at: http://p.sf.net/sfu/learnnow-d2d ___ 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] SOLR log files
On 22 January 2013 13:04, helix84 heli...@centrum.sk wrote: I'm for adding it, but I don't decide on that alone. Please, file a Jira issue. I'm not convinced that the modules tree is the best place for it, we should probably put it directly into dspace-solr instead: https://github.com/DSpace/dspace-solr/tree/master/webapp/src/main/webapp/WEB-INF Having the file in modules should still override the one in dspace-solr. I also think that WARNING would be a reasonable level to include into DSpace. Done: https://jira.duraspace.org/browse/DS-1460 -- *Hilton Gibson* Systems Administrator JS Gericke Library Room 1025D Stellenbosch University Private Bag X5036 Stellenbosch 7599 South Africa Tel: +27 21 808 4100 | Cell: +27 84 646 4758 http://library.sun.ac.za http://scholar.sun.ac.za http://ar1.sun.ac.za http://aj1.sun.ac.za -- Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft MVPs and experts. ON SALE this month only -- learn more at: http://p.sf.net/sfu/learnnow-d2d___ 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] Prefix search issue.
Hi all! I'm running DSpace 1.8.2 instance with XMLUI interface. I have an issue with search: for nearly any request containing '*' (as for example man*) I receive nothing in search result. In any other case full-text search works perfect (boolean operators, different word forms, etc.). I have already performed full text indexing (as my repository contains 2-layer pdf) and use DSAnalyzer property (as default). What should I perform to make prefix search to work? -- Thank you! Vladimir -- Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft MVPs and experts. ON SALE this month only -- learn more at: http://p.sf.net/sfu/learnnow-d2d___ 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] Accessing Metadata via OAI
Hi all, I need to access the metadata of my DSpace items from an external script and figured I would do so using the OAI webapp and the GetRecord verb (I run DSpace 3.0). For some reason, however, OAI only displays a very small subset of my items, all uploaded before a certain date. When running [dspace]/bin/dspace oai import OAI tells me it is searching for documents modified after that date (incremental import) but fails with a: org.apache.solr.common.SolrException: Bad Request Here's the stacktrace: request: http://localhost:8080/solr/oai/update?wt=javabinversion=2 at org.apache.solr.client.solrj.impl.CommonsHttpSolrServer.request(CommonsHttpSolrServer.java:435) at org.apache.solr.client.solrj.impl.CommonsHttpSolrServer.request(CommonsHttpSolrServer.java:244) at org.apache.solr.client.solrj.request.AbstractUpdateRequest.process(AbstractUpdateRequest.java:105) at org.apache.solr.client.solrj.SolrServer.add(SolrServer.java:64) at org.dspace.xoai.app.XOAI.index(XOAI.java:217) at org.dspace.xoai.app.XOAI.index(XOAI.java:183) at org.dspace.xoai.app.XOAI.index(XOAI.java:141) at org.dspace.xoai.app.XOAI.main(XOAI.java:427) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:183) I also tried this on my dev instance of DSpace 3.0-rc3, with the same result except that the avaliable options for [dspace]/bin/dspace oai change to clean-cache, compile-items and erase-compiled-items. compile-items fails with a java.lang.NullPointerException at org.dspace.xoai.util.XOAICacheManager.getMetadataCache(XOAICacheManager.java:81) at org.dspace.xoai.util.XOAICacheManager.compileItem(XOAICacheManager.java:87) at org.dspace.xoai.app.XOAI.compile(XOAI.java:490) at org.dspace.xoai.app.XOAI.main(XOAI.java:438) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) at org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:183) Is the oai import the right command at all? Or do I need to adjust some other things for OAI to access all my items? Collections and communities are displayed fine, btw. Thanks for your help, Joachim -- Joachim Bingel Institut für Deutsche Sprache, Zentrale Forschung R5, 6-13, 68161 Mannheim +49 - (0)621-1581-456 | http://www.ids-mannheim.de -- Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft MVPs and experts. ON SALE this month only -- learn more at: http://p.sf.net/sfu/learnnow-d2d ___ 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] Accessing Metadata via OAI
Hi Joachim, are you aware that there's a limit on the number results returned at once? [1] The next batch can be requested using the resumptionToken provided in the current batch. The batch size can be configured [2]. Try [dspace]/bin/dspace oai import -c to rebuild the index completely. oai import indexed only items changed since its last run (i.e. incremental import). [3] Does that clear it up / solve the problem? [1] http://www.openarchives.org/OAI/openarchivesprotocol.html#FlowControl [2] https://wiki.duraspace.org/display/DSDOC3x/OAI+2.0+Server#OAI2.0Server-Generaloptions [3] https://wiki.duraspace.org/display/DSDOC3x/OAI+2.0+Server#OAI2.0Server-OAIManager(SolrDataSource) Regards, ~~helix84 Compulsory reading: DSpace Mailing List Etiquette https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette -- Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft MVPs and experts. ON SALE this month only -- learn more at: http://p.sf.net/sfu/learnnow-d2d ___ 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] Accessing Metadata via OAI
On 22 January 2013 13:19, Joachim Bingel bin...@ids-mannheim.de wrote: org.apache.solr.common.SolrException: Bad Request Hi Joachim, your log information is too short. Please, look at the Solr log for the full stack trace. -- Thanks, João Melo (My Portfolio http://www.lyncode.com/m/jmelo/) DSpace Department *Lyncode*: Official websitehttp://www.google.com/url?q=http%3A%2F%2Fwww.lyncode.com%2Fsa=Dsntz=1usg=AFrqEzdV8iS6rMxflxnn138XReuRfUG3OQ [image: Follow us on Facebook]http://www.google.com/url?q=http%3A%2F%2Ftwitter.com%2Flyncodesa=Dsntz=1usg=AFrqEzeDuT3ZqMW5uVIA8AoxtTtAeiCX3Q http://www.google.com/url?q=http%3A%2F%2Fwww.facebook.com%2Flyncodesa=Dsntz=1usg=AFrqEzcWXjHa3gKBGLsNVxktapxkiWDnww -- Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft MVPs and experts. ON SALE this month only -- learn more at: http://p.sf.net/sfu/learnnow-d2d___ 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] Accessing Metadata via OAI
Hi helix, thanks for your answer! However the batch size does not seem to be the problem. Only certain records can be returned at all, for some (existing) items the request by their (existing) ID returns no matches for the query. This is what the Catalina log says: Jan 22, 2013 3:04:10 PM org.apache.solr.core.SolrCore execute INFO: [oai] webapp=/solr path=/select params={sort=item.id+ascq=item.handle:10932/00-0166-14DE-96C0-2701-9wt=javabinversion=2} hits=0 status=0 QTime=0 Rebuilding the index with import -c still does not work -- it gives me the same org.apache.solr.common.SolrException (Bad Request) as before. -- Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft MVPs and experts. ON SALE this month only -- learn more at: http://p.sf.net/sfu/learnnow-d2d ___ 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] [KE1019161] Using dspace script with JNDI ?
On Tue, Jan 22, 2013 at 4:03 PM, marco.we...@kesslernetworks.de wrote: url=jdbc:postgresql://127.0.0.1:5432/dspace What can i do if i have to go through a SPI Firewall that allows me only to connect if it is a tomcat connection configured as JNDI? You have to go via firewall to get to localhost? Oh, well. As you probably know, the problem is that you don't have db.username (and others) set in dspace.cfg. Can't you just enable this? (see the comment above it) db.jndi = jdbc/dspace If not, try looking here and see if any of it helps: http://stackoverflow.com/questions/1615417/out-of-container-jndi-data-source Regards, ~~helix84 Compulsory reading: DSpace Mailing List Etiquette https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette -- Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft MVPs and experts. ON SALE this month only -- learn more at: http://p.sf.net/sfu/learnnow-d2d ___ 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] [KE1019161] Using dspace script with JNDI ?
What about this? (jndi.properties) http://www.informit.com/articles/article.aspx?p=174364seqNum=3 Regards, ~~helix84 Compulsory reading: DSpace Mailing List Etiquette https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette -- Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft MVPs and experts. ON SALE this month only -- learn more at: http://p.sf.net/sfu/learnnow-d2d ___ 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] DSpace3 POC help
Dear, I want develop of a POC for DSpace 3. Requirements: 1 - Archive document with the TimeStamp from a external TSA(TimeStamp autority)server instead of system TimeStamp . 2- Validate the electronic signature of electronically signed documents before archiving. 3- Create three dynamic metadata: Timestamp, VerifySignatureToken, VerifySignaturemessage. The Cryptographic API implementation of these tasks are already developed. How these features built in DSpace 3? 1 - Where TimeStamp is set in Dspace archiving? 2 - How to upload the certificate along with the signed file in DSpace 3 workflow? 3 - How to add dynamic metadatas in DSpace 3 workflow? Can you help me answer his questions? Thank you to reply me. regards, Ghislain MAMAT -- Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft MVPs and experts. ON SALE this month only -- learn more at: http://p.sf.net/sfu/learnnow-d2d___ 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] Accessing Metadata via OAI
Thanks João, the Solr query returns: response lstname=responseHeader intname=status0/int intname=QTime1/int lstname=params strname=sortitem.id asc/str strname=qitem.handle:10932/00-0166-14DE-96C0-2701-9/str /lst /lst resultname=responsenumFound=0start=0/ /response which means Solr still has not found the item. I've set the logging level to FINEST and [dspace]/bin/dspace oai import gives me: Jan 22, 2013 5:16:42 PM org.apache.solr.core.SolrCore execute INFO: [oai] webapp=/solr path=/select params={fl=item.lastmodifiedsort=item.lastmodified+desc,item.id+ascq=*:*wt=javabinrows=1version=2} hits=1 status=0 QTime=0 Jan 22, 2013 5:16:43 PM org.apache.solr.update.processor.LogUpdateProcessor processAdd FINE: add (null) Jan 22, 2013 5:16:43 PM org.apache.solr.update.processor.LogUpdateProcessor finish INFO: {add=[(null)]} 0 14 Jan 22, 2013 5:16:43 PM org.apache.solr.common.SolrException log SEVERE: org.apache.solr.common.SolrException: [doc=null] missing required field: item.handle at org.apache.solr.update.DocumentBuilder.toDocument(DocumentBuilder.java:346) at org.apache.solr.update.processor.RunUpdateProcessor.processAdd(RunUpdateProcessorFactory.java:60) at org.apache.solr.update.processor.LogUpdateProcessor.processAdd(LogUpdateProcessorFactory.java:115) at org.apache.solr.handler.XMLLoader.processUpdate(XMLLoader.java:158) at org.apache.solr.handler.XMLLoader.load(XMLLoader.java:79) at org.apache.solr.handler.ContentStreamHandlerBase.handleRequestBody(ContentStreamHandlerBase.java:58) ... Does this tell you anything? Note that there is exactly 1 retrieved hit which is in accordance with the OAI webapp display, yet there are 31 documents in the databse. On 01/22/2013 05:05 PM, João Melo wrote: Hi Joachim, you'll need to low your log level to see the full stack trace (you're correct the solr log is dumped to catalina.out). if you are using the solr server from dspace access to the admin log panel (http://localhost:8080/solr/admin/logging - only supports local access). But you could also try to query the solr server directly and see the output. In your case, try the following query: http://localhost:8080/solr/oai/select?sort=item.id+ascq=item.handle:10932/00-0166-14DE-96C0-2701-9 Any error? On 22 January 2013 14:18, Joachim Bingel bin...@ids-mannheim.de mailto:bin...@ids-mannheim.de wrote: Hi João, I feel stupid asking this, but where is the solr log? There's no log/ directory or .log files under [dspace]/solr nor under [dspace]/webapps/[oai|solr]. All I've got is what's in the Catalina log: Jan 22, 2013 3:04:10 PM org.apache.solr.core.SolrCore execute INFO: [oai] webapp=/solr path=/select params={sort=item.id http://item.id+ascq=item.handle:10932/00-0166-14DE-96C0-2701-9wt=javabin version=2} hits=0 status=0 QTime=0 This demonstrates how a request for an item with an existing identifier (can be reached in the XMLUI) fails (hits=0). Thanks for your help! Joachim On 01/22/2013 03:05 PM, João Melo wrote: On 22 January 2013 13:19, Joachim Bingel bin...@ids-mannheim.de mailto:bin...@ids-mannheim.de wrote: org.apache.solr.common.SolrException: Bad Request Hi Joachim, your log information is too short. Please, look at the Solr log for the full stack trace. -- Thanks, João Melo (My Portfolio http://www.lyncode.com/m/jmelo/) DSpace Department *Lyncode*: Official website http://www.google.com/url?q=http%3A%2F%2Fwww.lyncode.com%2Fsa=Dsntz=1usg=AFrqEzdV8iS6rMxflxnn138XReuRfUG3OQ Follow us on Facebook http://www.google.com/url?q=http%3A%2F%2Ftwitter.com%2Flyncodesa=Dsntz=1usg=AFrqEzeDuT3ZqMW5uVIA8AoxtTtAeiCX3Q http://www.google.com/url?q=http%3A%2F%2Fwww.facebook.com%2Flyncodesa=Dsntz=1usg=AFrqEzcWXjHa3gKBGLsNVxktapxkiWDnww -- Joachim Bingel Institut für Deutsche Sprache, Zentrale Forschung R5, 6-13, 68161 Mannheim +49 - (0)621-1581-456 tel:%2B49%20-%20%280%29621-1581-456 |http://www.ids-mannheim.de -- Thanks, João Melo (My Portfolio http://www.lyncode.com/m/jmelo/) DSpace Department *Lyncode*: Official website http://www.google.com/url?q=http%3A%2F%2Fwww.lyncode.com%2Fsa=Dsntz=1usg=AFrqEzdV8iS6rMxflxnn138XReuRfUG3OQ Follow us on Facebook http://www.google.com/url?q=http%3A%2F%2Ftwitter.com%2Flyncodesa=Dsntz=1usg=AFrqEzeDuT3ZqMW5uVIA8AoxtTtAeiCX3Q http://www.google.com/url?q=http%3A%2F%2Fwww.facebook.com%2Flyncodesa=Dsntz=1usg=AFrqEzcWXjHa3gKBGLsNVxktapxkiWDnww -- Joachim Bingel Institut für Deutsche Sprache, Zentrale Forschung R5, 6-13, 68161 Mannheim +49 - (0)621-1581-456 | http://www.ids-mannheim.de -- Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current with
Re: [Dspace-tech] DSpace3 POC help
On Tue, Jan 22, 2013 at 4:40 PM, Ghislain Bienvenu MAMAT gbma...@gmail.com wrote: I want develop of a POC for DSpace 3. Hi Ghislain, what is POC? How these features built in DSpace 3? 1 - Where TimeStamp is set in Dspace archiving? This depends on which UI you are using. Are you using XMLUI or JSPUI? But timestamp is stored as one of the dc.date metadata: dc.date.accessioned (autogenerated), dc.date.issued, dc.date.available. Here are the locations related to the submission workflow: Common classes: https://github.com/DSpace/DSpace/tree/dspace-3_x/dspace-api/src/main/java/org/dspace/submit/step/ XMLUI classes: https://github.com/DSpace/DSpace/tree/dspace-3_x/dspace-xmlui/src/main/java/org/dspace/app/xmlui/aspect/workflow Alternative XMLUI workflow (not enabled by default): https://github.com/DSpace/DSpace/tree/dspace-3_x/dspace-xmlui/src/main/java/org/dspace/app/xmlui/aspect/xmlworkflow JSPUI: https://github.com/DSpace/DSpace/tree/dspace-3_x/dspace-jspui/src/main/java/org/dspace/app/webui/submit https://github.com/DSpace/DSpace/tree/dspace-3_x/dspace-jspui/src/main/webapp/submit 2 - How to upload the certificate along with the signed file in DSpace 3 workflow? You can simply upload a bitstream. Only bitstreams in the ORIGINAL bundle are visible from the web UIs. 3 - How to add dynamic metadatas in DSpace 3 workflow? What do you mean by dynamic metadata? Regards, ~~helix84 Compulsory reading: DSpace Mailing List Etiquette https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette -- Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft MVPs and experts. ON SALE this month only -- learn more at: http://p.sf.net/sfu/learnnow-d2d ___ 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] Database Pool Error: Cannot get a connection, pool error. Timeout waiting for idle object
Hi Andrea, Nice approach to add logging to Context.java to detect any garbage collected connections. Did that turn up any unclosed connections created by non-customized DSpace code? This made me wonder if there are any cases where db connections are created outside of a Context and if there would be a chance those aren't closed properly. Both shibboleth authentication and the checksum checker seem to be calling the Databasemanager directly without going through Context. Shibboleth Authentication https://github.com/DSpace/DSpace/blob/master/dspace-api/src/main/java/org/dspace/authenticate/ShibAuthentication.java#L961 Checksum Checker https://github.com/DSpace/DSpace/blob/master/dspace-api/src/main/java/org/dspace/checker/BitstreamInfoDAO.java https://github.com/DSpace/DSpace/blob/master/dspace-api/src/main/java/org/dspace/checker/ChecksumHistoryDAO.java https://github.com/DSpace/DSpace/blob/master/dspace-api/src/main/java/org/dspace/checker/ChecksumResultDAO.java https://github.com/DSpace/DSpace/blob/master/dspace-api/src/main/java/org/dspace/checker/ReporterDAO.java best regards Bram -- [image: logo] *Bram Luyten* *@mire* *2888 Loker Avenue East, Suite 315, Carlsbad, CA. 92010* *Esperantolaan 4, Heverlee 3001, Belgium* http://www.atmire.com/www.atmire.comhttp://atmire.com/website/?q=servicesutm_source=emailfooterutm_medium=emailutm_campaign=braml On Sun, Jan 20, 2013 at 9:56 PM, Andrea Schweer schw...@waikato.ac.nzwrote: Hi all, I'm a bit late to the party^Wthread, but just wanted to comment that my four repositories are all happy with a connection pool size of 50. When I ran into pool exhausted errors, I triple-checked all usage of the Context class in my custom code and found that there were a couple of cases where I created a new Context instance but never committed or aborted it. Such a Context object will hold on to its DB connection until the object is garbage collected and the connection is released in the finalize method. I also added logging output to the finalize method of the Context class so that I get alerted when a Context object with an open DB connection is garbage collected. cheers, Andrea -- Dr Andrea Schweer IRR Technical Specialist, ITS Information Systems The University of Waikato, Hamilton, New Zealand -- Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft MVPs and experts. ON SALE this month only -- learn more at: http://p.sf.net/sfu/learnmore_123012 ___ 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 -- Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft MVPs and experts. ON SALE this month only -- learn more at: http://p.sf.net/sfu/learnnow-d2d___ 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] running dspace 3.x xmlui in Eclipse
The Netbeans thread prompts me to ask how to do this in Eclipse. I can do the Maven and ANT builds and get all the correct files, but am having trouble with the tomcat run configuration (at least I think that is where my problem is, I'm rather new at this…but can run other servlets) Any advice on how to run the xmlui in Eclipse would be greatly appreciated. The directions I've found on the web for Eclipse and DSpace are rather sparse, though if I get this working I'd be willing to update them, given the caveat that they might be from a naive perspective. On Jan 18, 2013, at 10:50 PM, Benjamin Ryan wrote: Coelho, Change the line in startup.bat (around line 57) to call %EXECUTABLE% jpda start %CMD_LINE_ARGS% this will start Tomcat in debug mode. Then when Tomcat is running from the Debug menu “Attach Debugger...” and fill in the values. Use Java Debugger (JPDA), transport dt_socket and port 8000. You should then be able to set breakpoints and step through the code. Regards, Ben -- Dr Ben Ryan Jorum Technical Manager 5.12 Roscoe Building The University of Manchester Oxford Road Manchester M13 9PL Tel: 0160 275 6039 E-mail: benjamin.r...@manchester.ac.uk -- From: Coelho Eliana [mailto:eliana.coe...@umontreal.ca] Sent: 18 January 2013 17:11 To: heli...@centrum.sk Cc: dspace-tech@lists.sourceforge.net Subject: Re: [Dspace-tech] running dspace xmlui in netbeans Hello, No, after building the application there is nothing inside the [dspace]/webapps/xmlui/WEB-INF/classes/ as you can see in the below screen capture: image001.png Attached the xmlui.xconf file. What is surpring is the fact that when I run the application NOT in netbeans, everything works, as you can see in the following image: image002.jpg However, when I run the application inside netbeans (I would like to see the code and follow the execution with the debugger), there is the problem of discovery aspect “not found”. I follow this instructions in order to run the xmlui web application in netbeans: ·Select the project for the Web Application you wish to run through Tomcat (e.g. DSpace XML-UI (Manakin) :: Web Application Resources for the XMLUI). This project must be a war based project, as Tomcat only runs WAR files. ·Right click on your selected project and click Properties ·From the Properties window, select the Run category. ·From these Run settings, you'll want to specify the Server which this application should run on. Select your newly configured Tomcat server. ·Also, specify a Context Path. This should be the ending path on the URL. For example, specifying /xmlui will mean your web application will be available from http://localhost:8080/xmlui; ·Now, click over to the Actions category on the left. ·You'll see a list of Actions on the right. Click on the Run Project action (as this is the one used to run your web application). ·In that Action's Set Properties section, add a property to point it to your DSpace installation. The following is an example on Windows, assuming that you've installed DSpace to C:/dspace/: ·For DSpace 1.8.x or lower, set the property: dspace.config=C:/dspace/config/dspace.cfg (make sure to include this entire line – also, do NOT include quotes around the file path) ·Finally, click OK at the bottom to save all your new project settings. I understand that when netbeans runs this application it generates a war file in the xmlui application webapps directory. This war is executed by tomcat inside netbeans and it is the application that produces the error: image003.png Thank you for trying to help me ! Eliana -Message d'origine- De : ivan.ma...@gmail.com [mailto:ivan.ma...@gmail.com] De la part de helix84 Envoyé : 18 janvier 2013 10:50 À : Coelho Eliana Cc : dspace-tech@lists.sourceforge.net Objet : Re: [Dspace-tech] running dspace xmlui in netbeans Is the [dspace]/webapps/xmlui/WEB-INF/classes/aspects/Discovery/sitemap.xmap file present? Did you try to customize it in any way? Regards, ~~helix84 Compulsory reading: DSpace Mailing List Etiquette https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette -- Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft MVPs and experts. SALE $99.99 this month only -- learn more at:
[Dspace-tech] Greetings and Two Questions
First of all hello from Roanoke, VA. I'm Matt Ames a student at Virginia Tech. I'm planning on building a digital repository to preserve documents related to the history of audio-visual technology. My questions: 1.) Is DSpace the right tool for preserving around 600 files? Or would DSpace be over kill? 2.) Is it possible to create a relational database in DSpace that relates data in the documents (Author, topic, date, location, etc.)? Just trying to figure out if DSpace is the right tool, I'd like for the repository to conform to OAIS. Thanks a lot, Matt -- Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft MVPs and experts. ON SALE this month only -- learn more at: http://p.sf.net/sfu/learnnow-d2d ___ 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] [KE1019161] Get record from OAI with a individual identifier
Hi Marco, about the rest-api (we use https://github.com/wijiti/dspace-rest-api), it lacks of documentation, if you are willing to use it, i've uploaded a short manual, look at: http://lyncode.github.com/dspace-rest-api/ Any doubt, please, feel free to question, it may help improving it. On 22 January 2013 08:05, helix84 heli...@centrum.sk wrote: On Tue, Jan 22, 2013 at 9:01 AM, marco.we...@kesslernetworks.de wrote: Other idea, is it possible to use the solr search server to get what i want? Yes! Please, read my first email. Regards, ~~helix84 Compulsory reading: DSpace Mailing List Etiquette https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette -- Thanks, João Melo (My Portfolio http://www.lyncode.com/m/jmelo/) DSpace Department *Lyncode*: Official websitehttp://www.google.com/url?q=http%3A%2F%2Fwww.lyncode.com%2Fsa=Dsntz=1usg=AFrqEzdV8iS6rMxflxnn138XReuRfUG3OQ [image: Follow us on Facebook]http://www.google.com/url?q=http%3A%2F%2Ftwitter.com%2Flyncodesa=Dsntz=1usg=AFrqEzeDuT3ZqMW5uVIA8AoxtTtAeiCX3Q http://www.google.com/url?q=http%3A%2F%2Fwww.facebook.com%2Flyncodesa=Dsntz=1usg=AFrqEzcWXjHa3gKBGLsNVxktapxkiWDnww -- Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft MVPs and experts. ON SALE this month only -- learn more at: http://p.sf.net/sfu/learnnow-d2d___ 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] Accessing Metadata via OAI
Hi Joachim, looks like there are items without handle, resulting in the above exception. Is that possible? On 22 January 2013 16:21, Joachim Bingel bin...@ids-mannheim.de wrote: Thanks João, the Solr query returns: response lst name=responseHeader int name=status0/int int name=QTime1/int lst name=params str name=sortitem.id asc/str str name=qitem.handle:10932/00-0166-14DE-96C0-2701-9/str /lst /lst result name=response numFound=0 start=0/ /response which means Solr still has not found the item. I've set the logging level to FINEST and [dspace]/bin/dspace oai import gives me: Jan 22, 2013 5:16:42 PM org.apache.solr.core.SolrCore execute INFO: [oai] webapp=/solr path=/select params={fl=item.lastmodifiedsort=item.lastmodified+desc,item.id+ascq=*:*wt=javabinrows=1version=2} hits=1 status=0 QTime=0 Jan 22, 2013 5:16:43 PM org.apache.solr.update.processor.LogUpdateProcessor processAdd FINE: add (null) Jan 22, 2013 5:16:43 PM org.apache.solr.update.processor.LogUpdateProcessor finish INFO: {add=[(null)]} 0 14 Jan 22, 2013 5:16:43 PM org.apache.solr.common.SolrException log SEVERE: org.apache.solr.common.SolrException: [doc=null] missing required field: item.handle at org.apache.solr.update.DocumentBuilder.toDocument(DocumentBuilder.java:346) at org.apache.solr.update.processor.RunUpdateProcessor.processAdd(RunUpdateProcessorFactory.java:60) at org.apache.solr.update.processor.LogUpdateProcessor.processAdd(LogUpdateProcessorFactory.java:115) at org.apache.solr.handler.XMLLoader.processUpdate(XMLLoader.java:158) at org.apache.solr.handler.XMLLoader.load(XMLLoader.java:79) at org.apache.solr.handler.ContentStreamHandlerBase.handleRequestBody(ContentStreamHandlerBase.java:58) ... Does this tell you anything? Note that there is exactly 1 retrieved hit which is in accordance with the OAI webapp display, yet there are 31 documents in the databse. On 01/22/2013 05:05 PM, João Melo wrote: Hi Joachim, you'll need to low your log level to see the full stack trace (you're correct the solr log is dumped to catalina.out). if you are using the solr server from dspace access to the admin log panel (http://localhost:8080/solr/admin/logging - only supports local access). But you could also try to query the solr server directly and see the output. In your case, try the following query: http://localhost:8080/solr/oai/select?sort=item.id+ascq=item.handle:10932/00-0166-14DE-96C0-2701-9 Any error? On 22 January 2013 14:18, Joachim Bingel bin...@ids-mannheim.de wrote: Hi João, I feel stupid asking this, but where is the solr log? There's no log/ directory or .log files under [dspace]/solr nor under [dspace]/webapps/[oai|solr]. All I've got is what's in the Catalina log: Jan 22, 2013 3:04:10 PM org.apache.solr.core.SolrCore execute INFO: [oai] webapp=/solr path=/select params={sort=item.id+ascq=item.handle:10932/00-0166-14DE-96C0-2701-9wt=javabin version=2} hits=0 status=0 QTime=0 This demonstrates how a request for an item with an existing identifier (can be reached in the XMLUI) fails (hits=0). Thanks for your help! Joachim On 01/22/2013 03:05 PM, João Melo wrote: On 22 January 2013 13:19, Joachim Bingel bin...@ids-mannheim.de wrote: org.apache.solr.common.SolrException: Bad Request Hi Joachim, your log information is too short. Please, look at the Solr log for the full stack trace. -- Thanks, João Melo (My Portfolio http://www.lyncode.com/m/jmelo/) DSpace Department *Lyncode*: Official websitehttp://www.google.com/url?q=http%3A%2F%2Fwww.lyncode.com%2Fsa=Dsntz=1usg=AFrqEzdV8iS6rMxflxnn138XReuRfUG3OQ [image: Follow us on Facebook]http://www.google.com/url?q=http%3A%2F%2Ftwitter.com%2Flyncodesa=Dsntz=1usg=AFrqEzeDuT3ZqMW5uVIA8AoxtTtAeiCX3Q http://www.google.com/url?q=http%3A%2F%2Fwww.facebook.com%2Flyncodesa=Dsntz=1usg=AFrqEzcWXjHa3gKBGLsNVxktapxkiWDnww -- Joachim Bingel Institut für Deutsche Sprache, Zentrale Forschung R5, 6-13, 68161 Mannheim+49 - (0)621-1581-456 | http://www.ids-mannheim.de -- Thanks, João Melo (My Portfolio http://www.lyncode.com/m/jmelo/) DSpace Department *Lyncode*: Official websitehttp://www.google.com/url?q=http%3A%2F%2Fwww.lyncode.com%2Fsa=Dsntz=1usg=AFrqEzdV8iS6rMxflxnn138XReuRfUG3OQ [image: Follow us on Facebook]http://www.google.com/url?q=http%3A%2F%2Ftwitter.com%2Flyncodesa=Dsntz=1usg=AFrqEzeDuT3ZqMW5uVIA8AoxtTtAeiCX3Q http://www.google.com/url?q=http%3A%2F%2Fwww.facebook.com%2Flyncodesa=Dsntz=1usg=AFrqEzcWXjHa3gKBGLsNVxktapxkiWDnww -- Joachim Bingel Institut für Deutsche Sprache, Zentrale Forschung R5, 6-13, 68161 Mannheim+49 - (0)621-1581-456 | http://www.ids-mannheim.de -- Thanks, João Melo (My Portfolio http://www.lyncode.com/m/jmelo/) DSpace Department *Lyncode*: Official
Re: [Dspace-tech] running dspace 3.x xmlui in Eclipse
What exactly is your problem? Does the deploy works or does it fail? If it fails what is the error message and what’s in the log files? The problem I had with Netbeans was that the deployment failed because DSpace was unable to find its configuration. Without configuration DSpace did not have the credentials to connect to the database... In Netbeans it is possible to set properties, so that XMLUI will find the dspace installation directory and the configuration in it. Regards, Pascal From: Sara Amato [mailto:sam...@willamette.edu] Sent: Tuesday, January 22, 2013 5:56 PM To: dspace-tech Subject: Re: [Dspace-tech] running dspace 3.x xmlui in Eclipse The Netbeans thread prompts me to ask how to do this in Eclipse. I can do the Maven and ANT builds and get all the correct files, but am having trouble with the tomcat run configuration (at least I think that is where my problem is, I'm rather new at this…but can run other servlets) Any advice on how to run the xmlui in Eclipse would be greatly appreciated. The directions I've found on the web for Eclipse and DSpace are rather sparse, though if I get this working I'd be willing to update them, given the caveat that they might be from a naive perspective. On Jan 18, 2013, at 10:50 PM, Benjamin Ryan wrote: Coelho, Change the line in startup.bat (around line 57) to call %EXECUTABLE% jpda start %CMD_LINE_ARGS% this will start Tomcat in debug mode. Then when Tomcat is running from the Debug menu “Attach Debugger...” and fill in the values. Use Java Debugger (JPDA), transport dt_socket and port 8000. You should then be able to set breakpoints and step through the code. Regards, Ben -- Dr Ben Ryan Jorum Technical Manager 5.12 Roscoe Building The University of Manchester Oxford Road Manchester M13 9PL Tel: 0160 275 6039 E-mail: benjamin.r...@manchester.ac.ukhttps://outlook.manchester.ac.uk/owa/redir.aspx?C=b28b5bdd1a91425abf8e32748c93f487URL=mailto%3abenjamin.ryan%40manchester.ac.uk -- From: Coelho Eliana [mailto:eliana.coe...@umontreal.ca] Sent: 18 January 2013 17:11 To: heli...@centrum.skmailto:heli...@centrum.sk Cc: dspace-tech@lists.sourceforge.netmailto:dspace-tech@lists.sourceforge.net Subject: Re: [Dspace-tech] running dspace xmlui in netbeans Hello, No, after building the application there is nothing inside the [dspace]/webapps/xmlui/WEB-INF/classes/ as you can see in the below screen capture: image001.png Attached the xmlui.xconf file. What is surpring is the fact that when I run the application NOT in netbeans, everything works, as you can see in the following image: image002.jpg However, when I run the application inside netbeans (I would like to see the code and follow the execution with the debugger), there is the problem of discovery aspect “not found”. I follow this instructions in order to run the xmlui web application in netbeans: •Select the project for the Web Application you wish to run through Tomcat (e.g. DSpace XML-UI (Manakin) :: Web Application Resources for the XMLUI). This project must be a war based project, as Tomcat only runs WAR files. •Right click on your selected project and click Properties •From the Properties window, select the Run category. •From these Run settings, you'll want to specify the Server which this application should run on. Select your newly configured Tomcat server. •Also, specify a Context Path. This should be the ending path on the URL. For example, specifying /xmlui will mean your web application will be available from http://localhost:8080/xmlui; •Now, click over to the Actions category on the left. •You'll see a list of Actions on the right. Click on the Run Project action (as this is the one used to run your web application). •In that Action's Set Properties section, add a property to point it to your DSpace installation. The following is an example on Windows, assuming that you've installed DSpace to C:/dspace/: •For DSpace 1.8.x or lower, set the property: dspace.config=C:/dspace/config/dspace.cfg (make sure to include this entire line – also, do NOT include quotes around the file path) •Finally, click OK at the bottom to save all your new project settings. I understand that when netbeans runs this application it generates a war file in the xmlui application webapps directory. This war is executed by tomcat inside netbeans and it is the application that produces the error: image003.png Thank you for trying to help me ! Eliana -Message d'origine- De : ivan.ma...@gmail.commailto:ivan.ma...@gmail.com [mailto:ivan.ma...@gmail.com] De la part de helix84 Envoyé : 18 janvier 2013 10:50 À : Coelho Eliana Cc :
[Dspace-tech] discovery in 3.0 vs 1..8.2
I noticed that 1.8.2 has a directory called: dspace-discovery which is not in 3.0 have that discory directory layout changed? Any other that I should be aware of? -Jose -- Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft MVPs and experts. ON SALE this month only -- learn more at: http://p.sf.net/sfu/learnnow-d2d___ 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 in 3.0 vs 1..8.2
https://wiki.duraspace.org/display/DSPACE/Maven+Project+Consolidation https://github.com/DSpace/DSpace/pull/90/commits -- Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft MVPs and experts. ON SALE this month only -- learn more at: http://p.sf.net/sfu/learnnow-d2d___ 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] [KE1019161] Using dspace script with JNDI ?
On Tue, Jan 22, 2013 at 04:03:08PM +0100, marco.we...@kesslernetworks.de wrote: today i configured my Tomcat to serve a JNDI Resource To do that i read the very ugly tomcat documentation and found that link http://dspace.2283337.n4.nabble.com/I-note-that-db-jndi-is-still-undocumented-in-3-x-td4658214.html I activated the db.jndi = jdbc/dspace configuration in dspace.cfg I added the following lines in my context.xml and the applications solr, oai and xmlui are working well. Resource name=jdbc/dspace auth=Container type=javax.sql.DataSource driverClassName=org.postgresql.Driver url=jdbc:postgresql://127.0.0.1:5432/dspace username=dspace password=mypassword maxActive=30 maxIdle=10 maxWait=24 timeBetweenEvictionRunsMillis=90 numTestsPerEvictionRun=30 minEvictableIdleTimeMillis=30 testWhileIdle=true validationQuery=select 1 removeAbandoned=true removeAbandonedTimeout=600 logAbandoned=true / Now executing /opt/dspace/bin/dspace oai import -c -v That won't work ... see error below What can i do if i have to go through a SPI Firewall that allows me only to connect if it is a tomcat connection configured as JNDI? I don't understand what the firewall has to do with this. But, if you *must* use JNDI to locate your DSpace database connection, then you'll need to provide a JNDI server to bin/dspace, as Tomcat is to your DSpace webapp.s. There are a number of providers included with the JRE which can connect to various directory services; or... [modest cough] http://java.net/projects/ephemeral-context is a small in-process JNDI server that can be wrapped into any Java application, for instance bin/dspace. You define a system property naming its ContextFactory as providing the initial context: -Djava.naming.factory.initial=net.wood.jndi.EphemeralContext.ContextFactory and another telling the provider where to find its content: -Djava.naming.provider.url=/jndi-content.xml Place the provider JAR and its configuration somewhere in the classpath. You don't need to run any other processes. It's designed to be used the same way you use Tomcat's Resource plumbing, to substitute for a big separate directory service. To use it with bin/dspace, add those definitions to ${JAVA_OPTS} in the command's environment. It's a bit rough yet, and objects other than JDBC connections are not at all well tested (or in some cases even tried yet). But I'm using it in production to provide a database connection to bin/dspace in a script. -- Mark H. Wood, Lead System Programmer mw...@iupui.edu There's an app for that: your browser pgp0VDo5dOi5t.pgp Description: PGP signature -- Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft MVPs and experts. ON SALE this month only -- learn more at: http://p.sf.net/sfu/learnnow-d2d___ 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 in 3.0 vs 1..8.2
Doesn't make my merge of code easy at all. But now I know. On Tue, Jan 22, 2013 at 3:22 PM, helix84 heli...@centrum.sk wrote: https://wiki.duraspace.org/display/DSPACE/Maven+Project+Consolidation https://github.com/DSpace/DSpace/pull/90/commits -- Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft MVPs and experts. ON SALE this month only -- learn more at: http://p.sf.net/sfu/learnnow-d2d ___ 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 -- Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft MVPs and experts. ON SALE this month only -- learn more at: http://p.sf.net/sfu/learnnow-d2d___ 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] Getting password login form instead of LDAP login form
Can anyone help me to resolve this query --- On Mon, 1/21/13, mErRYo merryob...@yahoo.com wrote: From: mErRYo merryob...@yahoo.com Subject: [Dspace-tech] Getting password login form instead of LDAP login form To: dspace-tech@lists.sourceforge.net Date: Monday, January 21, 2013, 3:20 PM Hi I am working with Dspace 3.0 with jspui. I am using LDAP and password base authentication, both are working fine. But problem is whatever authentication method i choose from chooser.jsp page I always get user/email field label key value set on jsp.components.login-form.email from Message.properties. I tired and checked it through dry run but chooser.jsp renders password.jsp which inturn renders login-form.jsp in both cases whereas in reality it should have rendered ldap.jsp which inturns rendered ldap-form.jsp in case of ldap authentication. Can some one help me in this. Secondly do i have to rebuild my dspace customization again to work fine or not (I think i don't need to rebuild my dspace again) -- Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft MVPs and experts. SALE $99.99 this month only -- learn more at: http://p.sf.net/sfu/learnmore_122412 ___ 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 -- Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft MVPs and experts. ON SALE this month only -- learn more at: http://p.sf.net/sfu/learnnow-d2d ___ 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] How customize v 3.0 Discovery search filter drop-down labels
Is there anyone who can tell how to do this thing in JSPUI also. I have Dspace3.0 jspui with discovery. I want to add filters only without sidebar facet. I acheived to add filter but it is not working. I added abstract (dc.description.abstract) filter but when i do filter on this field it returns nothing. I added this filter in dspace/config/spring/api/discovery.xml file. My abstract filter settings in discovery.xml file is as follows. !--The search filters which can be used on the discovery search page-- property name=searchFilters list ref bean=searchFilterTitle / ref bean=searchFilterAuthor / ref bean=searchFilterSubject / ref bean=searchFilterIssued / ref bean=searchFilterAbstract / /list /property and, !--Search filter configuration beans-- bean id=searchFilterAbstract class=org.dspace.discovery.configuration.DiscoverySearchFilterFacet property name=indexFieldName value=abstract/ property name=metadataFields list valuedc.description.abstract/value /list /property /bean I need urgent reply on it. I also want to know if it is mandatory to have sidebar facet of a field enable for respective filter option to work or one can create as many filter he wants without having sidebar facet. --- On Tue, 1/22/13, helix84 heli...@centrum.sk wrote: From: helix84 heli...@centrum.sk Subject: Re: [Dspace-tech] How customize v 3.0 Discovery search filter drop-down labels To: c...@umich.edu Cc: dspace-tech@lists.sourceforge.net Date: Tuesday, January 22, 2013, 2:22 PM Hi Charles, sorry for the late response, I had to test it. As you correctly found out, the string comes from xmlui.ArtifactBrowser.SimpleSearch.filter.dateIssued The reason why it didn't show up immediately after you changed it in messages.xml and restarted Tomcat is that you have previously viewed that page and Cocoon (the framework XMLUI is built on) caches pages for you. So the old string from before you made the change was still there. At a later time (when you did a change to the underlying DRI by adding a filter) the cached version was updated and you started to see the new string. To prevent this in the future, don't forget to clear your Cocoon cache: https://wiki.duraspace.org/display/DSPACE/TechnicalFaq#TechnicalFaq-ClearingCocoon(XMLUI)cache Regards, ~~helix84 Compulsory reading: DSpace Mailing List Etiquette https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette -- Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft MVPs and experts. ON SALE this month only -- learn more at: http://p.sf.net/sfu/learnnow-d2d ___ 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 -- Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft MVPs and experts. ON SALE this month only -- learn more at: http://p.sf.net/sfu/learnnow-d2d ___ 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] Getting password login form instead of LDAP login form
I don't have experience with the specific JSP pages you mentioned, but you should know that it doesn't matter which form you use, you can still login using both authentication methods in the stack. It may be easier for you to customize the labels to indicate that. Regards, ~~helix84 Compulsory reading: DSpace Mailing List Etiquette https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette -- Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft MVPs and experts. ON SALE this month only -- learn more at: http://p.sf.net/sfu/learnnow-d2d ___ 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] How customize v 3.0 Discovery search filter drop-down labels
Here is the official documentation of those configuration options: https://wiki.duraspace.org/display/DSDOC3x/Discovery#Discovery-SearchfilterssidebarfacetsCustomization The only difference I can see is that you used the DiscoverySearchFilterFacet class, while the documentation tells you to use the DiscoverySearchFilter class. Try changing that. Also try running update-discovery-index after changing the configuration, although I don't think that's necessary. I'm in fact using DiscoverySearchFilterFacet myself, but my search filters are also facets and I'm using XMLUI. Regards, ~~helix84 Compulsory reading: DSpace Mailing List Etiquette https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette -- Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft MVPs and experts. ON SALE this month only -- learn more at: http://p.sf.net/sfu/learnnow-d2d ___ 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] How customize v 3.0 Discovery search filter drop-down labels
On Wed, Jan 23, 2013 at 12:06 AM, Charles Kinney cbkinn...@gmail.comwrote: On Tue, Jan 22, 2013 at 2:22 AM, helix84 heli...@centrum.sk wrote: https://wiki.duraspace.org/display/DSPACE/TechnicalFaq#TechnicalFaq-ClearingCocoon(XMLUI)cache Thanks very much, especially for the tip on how to clear the Cocoon cache. It will be handy as I customize the interface. Some observations/questions that arose in my working with this small problem: 1. The two following messages.xml files appear to differ in their contents and use. The first is cited several times in the documentation. I didn't see references to the second, which holds text for the Discovery interface; I discovered it essentially via trial-and-error. I'm a newbie and may be doing builds incorrectly or inexpertly but my experience so far is that because the second messages files is not in an overlay directory, I must rebuild from the source directory to apply changes made it. [dspace]/modules/xmlui/src/main/webapp/i18n/messages.xml [dsource] /dspace-xmlui/src/main/resources/aspects/Discovery/i18n/messages.xml 2. The theme in [dsource] /dspace-xmlui/src/main/webapp/themes/dri2xhtml-alt appears to be used for elements of the Discovery interface, including the list of items in Advanced Search; therefore, although I am using Mirage, I should also copy this theme to my overlay directory if I am going to make changes. 3. For text in emails notifications, even in the XMLUI Mirage interface, some text is drawn from: [dsource]/dspace-api/src/main/resources/Messages.properties Therefore, for customizations one may work with messages.properties and multiple messages.xml files. Changes to messages.properties also appear to require a rebuild from the source directory. Is it reasonable that future DSpace versions would rely on only one file for text customization? Thanks. 1. You're right, the strings are both in the main messages file and several smaller ones for optional modules: [dspace-source]/dspace-xmlui/src/main/resources/aspects/Discovery/i18n/messages.xml [dspace-source]/dspace-xmlui/src/main/resources/aspects/SwordClient/i18n/messages.xml [dspace-source]/dspace-xmlui/src/main/resources/aspects/statisticsElasticSearch/i18n/messages.xml [dspace-source]/dspace-xmlui/src/main/resources/aspects/XMLWorkflow/i18n/messages.xml You can also modify them in the installed directory, which would require only a restart, not a rebuild: [dspace]/webapps/xmlui/i18n/messages.xml [dspace]/webapps/WEB-INF/classes/aspects/Discovery/i18n/messages.xml [dspace]/webapps/WEB-INF/classes/aspects/SwordClient/i18n/messages.xml [dspace]/webapps/WEB-INF/classes/aspects/statisticsElasticSearch/i18n/messages.xml [dspace]/webapps/WEB-INF/classes/aspects/XMLWorkflow/i18n/messages.xml If you decide to make changes there, don't forget to synchronize with the source versions because they will be replaced during the next rebuild. 2. That is correct, Mirage imports the dri2xhtml-alt theme and overlays its templates where needed, just as your theme should import the Mirage theme and overlay its templates (this is described in the Manakin theme tutorial). So you need both themes. 3. In fact the email templates are stored in [dspace-source]/dspace/config/emails/. You may be right about some text coming from Messages.properties, which is meant to be the file with both strings for DSpace in general and strings specific for JSPUI. I know, I know. The reason given why there are so many smaller files instead of one or two large files is that strings belong with their modules and should be maintained with them. Of course, this makes things easier for the developer who has strings in one place, but harder for the translator, who has to go around hunting for them, so I'm a strong proponent of unification, but any progress in this area has yet to be made. There are many things which should be improved in the i18n area, most of them should be captured here: https://wiki.duraspace.org/display/DSPACE/i18n+Improvements+Proposal There has been some early work at introducing a new format for translations, which could be used for everything, but this hasn't been even discussed yet. Regards, ~~helix84 Compulsory reading: DSpace Mailing List Etiquette https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette -- Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft MVPs and experts. ON SALE this month only -- learn more at: http://p.sf.net/sfu/learnnow-d2d___ 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] Accessing Metadata via OAI
On Tue, Jan 22, 2013 at 2:19 PM, Joachim Bingel bin...@ids-mannheim.dewrote: I also tried this on my dev instance of DSpace 3.0-rc3, with the same result except that the avaliable options for [dspace]/bin/dspace oai change to clean-cache, compile-items and erase-compiled-items. compile-items fails with a java.lang.NullPointerException These options indicate that you're using the database backend in OAI, not Solr. (storage=database in [dspace]/config/modules/oai.cfg). I'm not sure how you could get the same result (SolrException: Bad Request) when using the database backend - Solr shouldn't be used in that case at all! In any case, this also independently points to the fact that the handle of your item cannot be retrieved: https://github.com/DSpace/DSpace/blob/dspace-3_x/dspace-oai/src/main/java/org/dspace/xoai/util/XOAICacheManager.java#L81 How did you store such handle (the handle postfix is non-standard for DSpace)? Did you do any customizations to store such handles? Regards, ~~helix84 Compulsory reading: DSpace Mailing List Etiquette https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette -- Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft MVPs and experts. ON SALE this month only -- learn more at: http://p.sf.net/sfu/learnnow-d2d___ 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