[Dspace-tech] handles Pointing to the Same Resource
We noticed that seven handles pointed to the same item. I looked at the handle table and found this: dspace= SELECT * FROM handle WHERE resource_id = 938; handle_id | handle | resource_type_id | resource_id ---+---+--+- 673 | 10321/673 |2 | 938 674 | 10321/674 |2 | 938 675 | 10321/675 |2 | 938 676 | 10321/676 |2 | 938 677 | 10321/677 |2 | 938 678 | 10321/678 |2 | 938 679 | 10321/679 |2 | 938 (7 rows) Is it safe to delete the extra entries? In the item's dc.description.provenance I see that there is one submission followed by seven approvals before the item is made available (usually I see one submission, two approvals, and one made available), so that probably accounts for the extra handles. Should I be worried? What would I do if I were worried? Sean -- -- Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more! Discover the easy way to master current and previous Microsoft technologies and advance your career. Get an incredible 1,500+ hours of step-by-step tutorial videos with LearnDevNow. Subscribe today and save! http://pubads.g.doubleclick.net/gampad/clk?id=58040911iu=/4140/ostg.clktrk___ 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] Simple Archive Format
Hi all , we are running dsapce 3.1 using linux/xmlui version,tomcat 6 I tried to use command line tools for importing items in batches. But I faced this error java.lang.RuntimeException: Error while attempting to create identifier for Item id: 30115 Can any body has hint on this Thanks -- Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more! Discover the easy way to master current and previous Microsoft technologies and advance your career. Get an incredible 1,500+ hours of step-by-step tutorial videos with LearnDevNow. Subscribe today and save! http://pubads.g.doubleclick.net/gampad/clk?id=58040911iu=/4140/ostg.clktrk___ 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] Simple Archive Format
Hi Sisay, yes, other people have encountered this or similar errors, but we need the full stack trace (including the Caused by: lines) from your log files to determine the source of the problem. Regards, ~~helix84 Compulsory reading: DSpace Mailing List Etiquette https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette -- Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more! Discover the easy way to master current and previous Microsoft technologies and advance your career. Get an incredible 1,500+ hours of step-by-step tutorial videos with LearnDevNow. Subscribe today and save! http://pubads.g.doubleclick.net/gampad/clk?id=58040911iu=/4140/ostg.clktrk ___ 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] handles Pointing to the Same Resource
Hi Sean, the fact that this was possible indicates an error in our workflow and needs to be fixed. Please, create a Jira issue with steps to reproduce the problem. There should be no problem if you delete all but one of the rows from the handle table. The only implication will be that the other handles do not point to the item, of course. It should have no effects outside the affected item. Regards, ~~helix84 Compulsory reading: DSpace Mailing List Etiquette https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette -- Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more! Discover the easy way to master current and previous Microsoft technologies and advance your career. Get an incredible 1,500+ hours of step-by-step tutorial videos with LearnDevNow. Subscribe today and save! http://pubads.g.doubleclick.net/gampad/clk?id=58040911iu=/4140/ostg.clktrk ___ 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] default.license : Manakin : XMLUI : style
Hi Owen, I did some preliminary investigation. The license text gets added to DRI here: https://github.com/DSpace/DSpace/blob/dspace-3.2/dspace-xmlui/src/main/java/org/dspace/app/xmlui/aspect/submission/submit/LicenseStep.java#L105 And here's JavaDoc for that method: http://demo.dspace.org/javadocs/3/apidocs/org/dspace/app/xmlui/wing/element/Division.html#addSimpleHTMLFragment(boolean, java.lang.String) Depending on what you want to do, you may try to use blankLines = true or replace the method call altogether with whatever you need. Regards, ~~helix84 Compulsory reading: DSpace Mailing List Etiquette https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette -- Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more! Discover the easy way to master current and previous Microsoft technologies and advance your career. Get an incredible 1,500+ hours of step-by-step tutorial videos with LearnDevNow. Subscribe today and save! http://pubads.g.doubleclick.net/gampad/clk?id=58040911iu=/4140/ostg.clktrk ___ 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] Simple Archive Format
Hi Helix, Here is the information from the log file Thanks 2013-09-03 15:03:17,517 INFO org.dspace.content.Item @ s.webs...@cgiar.org::update_item:item_id=30118 2013-09-03 15:03:17,537 INFO org.dspace.content.Item @ s.webs...@cgiar.org::create_item:item_id=30118 2013-09-03 15:03:17,590 INFO org.dspace.content.Item @ s.webs...@cgiar.org::update_item:item_id=30118 2013-09-03 15:03:17,608 INFO org.dspace.content.WorkspaceItem @ s.webs...@cgiar.org::create_workspace_item:workspace_item_id=-1item_id=30118collection_id=671 2013-09-03 15:03:17,890 INFO org.dspace.content.Bundle @ s.webs...@cgiar.org::create_bundle:bundle_id=17759 2013-09-03 15:03:17,894 INFO org.dspace.content.Bundle @ s.webs...@cgiar.org::update_bundle:bundle_id=17759 2013-09-03 15:03:17,895 INFO org.dspace.content.Item @ s.webs...@cgiar.org::add_bundle:item_id=30118,bundle_id=17759 2013-09-03 15:03:18,147 INFO org.dspace.content.Bitstream @ s.webs...@cgiar.org::create_bitstream:bitstream_id=20104 2013-09-03 15:03:18,159 INFO org.dspace.content.Bundle @ s.webs...@cgiar.org::add_bitstream:bundle_id=17759,bitstream_id=20104 2013-09-03 15:03:18,174 INFO org.dspace.content.Bitstream @ s.webs...@cgiar.org::update_bitstream:bitstream_id=20104 2013-09-03 15:03:18,175 INFO org.dspace.content.Bundle @ s.webs...@cgiar.org::create_bundle:bundle_id=17760 2013-09-03 15:03:18,176 INFO org.dspace.content.Bundle @ s.webs...@cgiar.org::update_bundle:bundle_id=17760 2013-09-03 15:03:18,177 INFO org.dspace.content.Item @ s.webs...@cgiar.org::add_bundle:item_id=30118,bundle_id=17760 2013-09-03 15:03:18,191 INFO org.dspace.content.Bitstream @ s.webs...@cgiar.org::create_bitstream:bitstream_id=20105 2013-09-03 15:03:18,194 INFO org.dspace.content.Bundle @ s.webs...@cgiar.org::add_bitstream:bundle_id=17760,bitstream_id=20105 2013-09-03 15:03:18,200 INFO org.dspace.content.Bitstream @ s.webs...@cgiar.org::update_bitstream:bitstream_id=20105 2013-09-03 15:03:18,203 ERROR org.dspace.identifier.VersionedHandleIdentifierProvider @ s.webs...@cgiar.org::Error while attempting to create handle:Item id\colon; 30118 java.lang.ClassCastException: org.dspace.content.Collection cannot be cast to org.dspace.content.Item at org.dspace.identifier.VersionedHandleIdentifierProvider.getHistory(VersionedHandleIdentifierProvider.java:181) at org.dspace.identifier.VersionedHandleIdentifierProvider.register(VersionedHandleIdentifierProvider.java:132) at org.dspace.identifier.IdentifierServiceImpl.register(IdentifierServiceImpl.java:93) at org.dspace.content.InstallItem.installItem(InstallItem.java:69) at org.dspace.app.itemimport.ItemImport.addItem(ItemImport.java:900) at org.dspace.app.itemimport.ItemImport.addItems(ItemImport.java:727) at org.dspace.app.itemimport.ItemImport.main(ItemImport.java:563) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:183) -Original Message- From: ivan.ma...@gmail.com [mailto:ivan.ma...@gmail.com] On Behalf Of helix84 Sent: Tuesday, September 03, 2013 3:00 PM To: Webshet, Sisay (ILRI) Cc: dspace-tech@lists.sourceforge.net Subject: Re: [Dspace-tech] Simple Archive Format Hi Sisay, yes, other people have encountered this or similar errors, but we need the full stack trace (including the Caused by: lines) from your log files to determine the source of the problem. Regards, ~~helix84 Compulsory reading: DSpace Mailing List Etiquette https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette -- Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more! Discover the easy way to master current and previous Microsoft technologies and advance your career. Get an incredible 1,500+ hours of step-by-step tutorial videos with LearnDevNow. Subscribe today and save! http://pubads.g.doubleclick.net/gampad/clk?id=58040911iu=/4140/ostg.clktrk ___ 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] Simple Archive Format
This is also from the screenshot after running the command INFO [main] (DSpaceKernelInit.java:52) - Created new kernel: DSpaceKernel:org.dspace:name=00307bc2-5b04-42c9-8cce-613874cef7a1,type=DSpaceKernel:lastLoad=null:loadTime=0:running=false:kernel=null INFO [main] (ConfigurationManager.java:1224) - Loading from classloader: file:/home/dspace/config/dspace.cfg INFO [main] (ConfigurationManager.java:1224) - Using dspace provided log configuration (log.init.config) INFO [main] (ConfigurationManager.java:1224) - Loading: /home/dspace/config/log4j.properties Destination collections: Owning Collection: Import Test Adding items from directory: /home/dspace/cgimport Generating mapfile: sisay Adding item from directory 1 Loading dublin core from /home/dspace/cgimport/1/dublin_core.xml Schema: dc Element: contributor Qualifier: author Value: CCAFS Schema: dc Element: date Qualifier: accessioned Value: 2013-03-01T17:40:03Z Schema: dc Element: date Qualifier: available Value: 2013-03-01T17:40:03Z Schema: dc Element: date Qualifier: issued Value: 2012-11 Schema: dc Element: identifier Qualifier: citation Value: Tackling the gender gap in agriculture. Copenhagen, Denmark: The CGIAR Research Program on Climate Change, Agriculture and Food Security (CCAFS) Schema: dc Element: language Qualifier: iso Value: en Schema: dc Element: publisher Qualifier: none Value: The CGIAR Research Program on Climate Change, Agriculture and Food Security (CCAFS) Schema: dc Element: subject Qualifier: none Value: GENDER Schema: dc Element: subject Qualifier: none Value: AGRICULTURE Schema: dc Element: subject Qualifier: none Value: CLIMATE Schema: dc Element: subject Qualifier: none Value: FOOD SECURITY Schema: dc Element: title Qualifier: none Value: Tackling the gender gap in agriculture Schema: dc Element: type Qualifier: output Value: Brochure Schema: dc Element: identifier Qualifier: status Value: Open Access Schema: dc Element: cpsubject Qualifier: cpwfsubject Value: WOMEN Schema: dc Element: crsubject Qualifier: crpsubject Value: CLIMATE CHANGE, AGRICULTURE AND FOOD SECURITY Schema: dc Element: ccsubject Qualifier: ccafsubject Value: LINKING KNOWLEDGE TO ACTION Schema: dc Element: targetaudience Qualifier: none Value: ACADEMICS Processing contents file: /home/dspace/cgimport/1/contents Bitstream: CCAFS_Gender.pdf Bundle: ORIGINAL Bitstream: gender-brochure.png Bundle: THUMBNAIL Processing handle file: handle read handle: '10568/29000' java.lang.RuntimeException: Error while attempting to create identifier for Item id: 30118 at org.dspace.identifier.VersionedHandleIdentifierProvider.register(VersionedHandleIdentifierProvider.java:173) at org.dspace.identifier.IdentifierServiceImpl.register(IdentifierServiceImpl.java:93) at org.dspace.content.InstallItem.installItem(InstallItem.java:69) at org.dspace.app.itemimport.ItemImport.addItem(ItemImport.java:900) at org.dspace.app.itemimport.ItemImport.addItems(ItemImport.java:727) at org.dspace.app.itemimport.ItemImport.main(ItemImport.java:563) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:183) Caused by: java.lang.ClassCastException: org.dspace.content.Collection cannot be cast to org.dspace.content.Item at org.dspace.identifier.VersionedHandleIdentifierProvider.getHistory(VersionedHandleIdentifierProvider.java:181) at org.dspace.identifier.VersionedHandleIdentifierProvider.register(VersionedHandleIdentifierProvider.java:132) ... 10 more java.lang.RuntimeException: Error while attempting to create identifier for Item id: 30118 Started: 1378209797283 Ended: 1378209798204 Elapsed time: 0 secs (921 msecs) swebshet@DSpace:~$ -Original Message- From: ivan.ma...@gmail.com [mailto:ivan.ma...@gmail.com] On Behalf Of helix84 Sent: Tuesday, September 03, 2013 3:00 PM To: Webshet, Sisay (ILRI) Cc: dspace-tech@lists.sourceforge.net Subject: Re: [Dspace-tech] Simple Archive Format Hi Sisay, yes, other people have encountered this or similar errors, but we need the full stack trace (including the Caused by: lines) from your log files to determine the source of the problem. Regards, ~~helix84 Compulsory reading: DSpace Mailing List Etiquette https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette -- Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more! Discover the easy way
Re: [Dspace-tech] handles Pointing to the Same Resource
On 3 September 2013 14:02, helix84 heli...@centrum.sk wrote: the fact that this was possible indicates an error in our workflow and needs to be fixed. Please, create a Jira issue with steps to reproduce the problem. I haven't seen this problem before, and the handle table doesn't seem to have any other incidences of this. Also, this was submitted over a year ago, so that would have been a different version of DSpace, Tomcat, etc. I'm hoping the problem cannot be reproduced! There should be no problem if you delete all but one of the rows from the handle table. The only implication will be that the other handles do not point to the item, of course. It should have no effects outside the affected item. Thanks, Ivan; I'll go ahead and delete the extra rows. Sean -- -- Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more! Discover the easy way to master current and previous Microsoft technologies and advance your career. Get an incredible 1,500+ hours of step-by-step tutorial videos with LearnDevNow. Subscribe today and save! http://pubads.g.doubleclick.net/gampad/clk?id=58040911iu=/4140/ostg.clktrk___ 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] Error while Browsing XMLUI?
I'm not exactly sure what the problem is, but check whether the context definition in your servlet container contains a valid path. You can send your context definition here. Regards, ~~helix84 Compulsory reading: DSpace Mailing List Etiquette https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette -- Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more! Discover the easy way to master current and previous Microsoft technologies and advance your career. Get an incredible 1,500+ hours of step-by-step tutorial videos with LearnDevNow. Subscribe today and save! http://pubads.g.doubleclick.net/gampad/clk?id=58040911iu=/4140/ostg.clktrk ___ 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] Modify the emails automatically sent from Dspace (1.8.2)
Hi Kevin, yes it is possible, but you have to modify both the email templates and the relevant source code - add an addArgument() call for each parameter you wish to add. They will appear in that order as numbered parameters in the template. Here's an example of an email template being used (getEmail()) and a single parameter being added (addArgument()): https://github.com/DSpace/DSpace/blob/dspace-3.1/dspace-api/src/main/java/org/dspace/eperson/Subscribe.java#L474 Regards, ~~helix84 Compulsory reading: DSpace Mailing List Etiquette https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette -- Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more! Discover the easy way to master current and previous Microsoft technologies and advance your career. Get an incredible 1,500+ hours of step-by-step tutorial videos with LearnDevNow. Subscribe today and save! http://pubads.g.doubleclick.net/gampad/clk?id=58040911iu=/4140/ostg.clktrk ___ 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] Simple Archive Format
During handle creation for an item, you're passing a collection where an item is expected. It seems to me that during item creation it's checked whether that handle already exists and it's found to exist (this shouldn't happen!) and it is a collection. Run [dspace]/etc/postgres/update-sequences.sql to reset handle_seq to the value of the highest handle postfix you have. That should ensure that DSpace doesn't try to assign a handle that was already assigned once. Regards, ~~helix84 Compulsory reading: DSpace Mailing List Etiquette https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette -- Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more! Discover the easy way to master current and previous Microsoft technologies and advance your career. Get an incredible 1,500+ hours of step-by-step tutorial videos with LearnDevNow. Subscribe today and save! http://pubads.g.doubleclick.net/gampad/clk?id=58040911iu=/4140/ostg.clktrk ___ 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] default.license : Manakin : XMLUI : style
helix84, On Tue, 2013-09-03 at 14:13 +0200, helix84 wrote: I did some preliminary investigation. The license text gets added to DRI here: https://github.com/DSpace/DSpace/blob/dspace-3.2/dspace-xmlui/src/main/java/org/dspace/app/xmlui/aspect/submission/submit/LicenseStep.java#L105 And here's JavaDoc for that method: http://demo.dspace.org/javadocs/3/apidocs/org/dspace/app/xmlui/wing/element/Division.html#addSimpleHTMLFragment(boolean, java.lang.String) Depending on what you want to do, you may try to use blankLines = true or replace the method call altogether with whatever you need. I did the same investigation. While we're competent enough to change the Java we try to stick to customising XSLT, Javascript etc leaving the actual code base alone. We've managed so far. I nearly did change the Java because I had been pulling my hair out trying to get the text file to behave differently at all. Thanks. Owen. -- Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more! Discover the easy way to master current and previous Microsoft technologies and advance your career. Get an incredible 1,500+ hours of step-by-step tutorial videos with LearnDevNow. Subscribe today and save! http://pubads.g.doubleclick.net/gampad/clk?id=58040911iu=/4140/ostg.clktrk ___ 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] default.license : Manakin : XMLUI : style
I understand your motivation to refrain from modifying any Java code. Without digging much deeper, I recommend you to ignore (in XSL) the license text as Java inserts it into DRI. Instead, use the XSL document() call to include a license file with DRI tags (same as in news-xmlui.xml). Please notice that those are DRI tags, not HTML tags. There's DRI element reference here: https://wiki.duraspace.org/display/DSDOC3x/DRI+Schema+Reference Regards, ~~helix84 Compulsory reading: DSpace Mailing List Etiquette https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette -- Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more! Discover the easy way to master current and previous Microsoft technologies and advance your career. Get an incredible 1,500+ hours of step-by-step tutorial videos with LearnDevNow. Subscribe today and save! http://pubads.g.doubleclick.net/gampad/clk?id=58040911iu=/4140/ostg.clktrk ___ 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] Encoding problem in discovery search results, xmlui
Hi Alcides, We edit the Tomcat file server.xml to force UTF-8: Connector port=8080 protocol=HTTP/1.1 connectionTimeout=2 *URIEncoding=UTF-8* redirectPort=8443 / Att, Tiago R. M. Murakami Comunicação Científica e Acadêmica Departamento Técnico - Sistema Integrado de Bibliotecas Universidade de São Paulo Brasil Rua da Biblioteca S/N - Complexo Brasiliana Tel: (11) 3091-4195 2013/9/2 Alcides Carlos de Moraes Neto alcides.n...@gmail.com Hello all, We have this problem with our current dspace 3.1 installation. Discovery search results show some invalid characters due to encoding issues. Only the full text search/highlight portion of the results has this problem. Example: http://www2.senado.leg.br/bdsf/discover?filtertype_0=typefilter_relational_operator_0=notequalsfilter_0=notícia+de+jornalsubmit_apply_filter=Aplicarquery=andré+luiz+lopes+de+alcantarahttp://www2.senado.leg.br/bdsf/discover?filtertype_0=typefilter_relational_operator_0=notequalsfilter_0=not%C3%ADcia+de+jornalsubmit_apply_filter=Aplicarquery=andr%C3%A9+luiz+lopes+de+alcantara I have checked the .txt media-filter generates, they are all UTF-8. Example: http://www2.senado.leg.br/bdsf/bitstream/handle/id/496326/Artigo_Andre_Alcantara_BDSF_SNDIJ_2013.pdf.txt Any help will be appreciated =) thanks Ats, Alcides Carlos de Moraes Neto -- Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more! Discover the easy way to master current and previous Microsoft technologies and advance your career. Get an incredible 1,500+ hours of step-by-step tutorial videos with LearnDevNow. Subscribe today and save! http://pubads.g.doubleclick.net/gampad/clk?id=58040911iu=/4140/ostg.clktrk ___ 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 -- Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more! Discover the easy way to master current and previous Microsoft technologies and advance your career. Get an incredible 1,500+ hours of step-by-step tutorial videos with LearnDevNow. Subscribe today and save! http://pubads.g.doubleclick.net/gampad/clk?id=58040911iu=/4140/ostg.clktrk___ 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] XMLUI Question - Identifying embargo/restricted thumbnails in XSLT (DSpace 3.1)
In XMLUI, is there a way to detect that a thumbnail is restricted when generating an item reference? Currently, when a user views a list of items, the thumbnail references are returned. If a thumbnail is restricted, the image is not returned because the request is redirected to the login screen. I have written some jQuery code to hide these thumbnails on page load. jQuery(a.image-link img,div.artifact-preview img).error(function(){jQuery(this).hide();}); I would prefer to not create the img tag at the time that the page is created. When I look at the METS XML, I do not see any markup related to access. My jQuery solution works well until a user logs in. Once a user logs into the system, they are automatically redirected to the last restricted thumbnail that they tried to access. If you have any advice on this issue, I would appreciate it! Thanks, Terry -- Terry Brady Applications Programmer Analyst Lauinger Information Technology 202-687-7053 -- Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more! Discover the easy way to master current and previous Microsoft technologies and advance your career. Get an incredible 1,500+ hours of step-by-step tutorial videos with LearnDevNow. Subscribe today and save! http://pubads.g.doubleclick.net/gampad/clk?id=58040911iu=/4140/ostg.clktrk___ 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] metadata extract for withdrawn items
Hi We got nearly 700 items in withdrawn state. Is there any easy way to export metadata for these 700 records. I found few sql queries in dspace.log after enabling debug but finding it difficult to co-relate them. Thanks Kirti -- Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more! Discover the easy way to master current and previous Microsoft technologies and advance your career. Get an incredible 1,500+ hours of step-by-step tutorial videos with LearnDevNow. Subscribe today and save! http://pubads.g.doubleclick.net/gampad/clk?id=58040911iu=/4140/ostg.clktrk___ 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] default.license : Manakin : XMLUI : style
Helix84, On Tue, 2013-09-03 at 15:42 +0200, helix84 wrote: I understand your motivation to refrain from modifying any Java code. Without digging much deeper, I recommend you to ignore (in XSL) the license text as Java inserts it into DRI. Instead, use the XSL document() call to include a license file with DRI tags (same as in news-xmlui.xml). Please notice that those are DRI tags, not HTML tags. There's DRI element reference here: https://wiki.duraspace.org/display/DSDOC3x/DRI+Schema+Reference Regards, ~~helix84 That's a good suggestion. Thanks. Owen. -- Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more! Discover the easy way to master current and previous Microsoft technologies and advance your career. Get an incredible 1,500+ hours of step-by-step tutorial videos with LearnDevNow. Subscribe today and save! http://pubads.g.doubleclick.net/gampad/clk?id=58040911iu=/4140/ostg.clktrk ___ 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] Custom Metadata-entry Pages for Submission
I need to add custom metadata-entry pages for submission (using a modified/input-forms.xml/ file) and modify at least one field, /Language/, to change /en_US/ to /en/ and either replace /Chinese/ and /Japanese/ with /Greek/ and/Latin/ or add them as additional languages. I do not wish to change anything in /item-submission.xml/ unless I have to (I kind of don't think I need to, though; I'm happy with the way it is). For example, I have created a list of the fields I need to add, one of them is: field local-schemalocal/local-schema local-elementboxnumber/local-element repeatablefalse/repeatable labelBox Number/label input-typeonebox/input-type hintEnter the Box Number./hint requiredYou must enter a box number for this item./required /field This particular field would be added above the default author field on submission page one, just after form name=traditional page number=1 Plus it looks like it needs to be added later at form name=one page number=1 Does that look right? Am I on the right track here? Am I missing something critical? -- Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more! Discover the easy way to master current and previous Microsoft technologies and advance your career. Get an incredible 1,500+ hours of step-by-step tutorial videos with LearnDevNow. Subscribe today and save! http://pubads.g.doubleclick.net/gampad/clk?id=58040911iu=/4140/ostg.clktrk ___ 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] Encoding problem in discovery search results, xmlui
Hello helix, thank you for your input. Indeed, it is a problem with the filter-media generated txt. A filter-media -f resolved the issue for this specific item. I scheduled a full filter-media -f of the repository tonight. Ats, Alcides Carlos de Moraes Neto 2013/9/3 helix84 heli...@centrum.sk On Tue, Sep 3, 2013 at 1:24 AM, Alcides Carlos de Moraes Neto alcides.n...@gmail.com wrote: I have checked the .txt media-filter generates, they are all UTF-8. What I see (see attachment) looks like double-encoded UTF-8 (it happens when a charset converter is told that a file is to be encoded from one character set to UTF-8, but it actually already was UTF-8) - which would seem like valid UTF-8 to a machine, but has nonsensical characters. What do you see? I don't have a solution yet, though. On Tue, Sep 3, 2013 at 2:28 AM, Keir Vaughan-Taylor k...@usyd.edu.au wrote: Is it a problem that the extension is pdf.txt ? No, that's normal. Regards, ~~helix84 Compulsory reading: DSpace Mailing List Etiquette https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette -- Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more! Discover the easy way to master current and previous Microsoft technologies and advance your career. Get an incredible 1,500+ hours of step-by-step tutorial videos with LearnDevNow. Subscribe today and save! http://pubads.g.doubleclick.net/gampad/clk?id=58040911iu=/4140/ostg.clktrk___ 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] Getting DSpace to use Amazon S3 for content storage
I have been looking at making DSpace use an Amazon S3 Bucket when it stores a database entry so the Metadata goes into the oracle database on an Amazon RDS Instance and the content goes directly to the S3. With s3cmd, using the http access to the S3 has much better performance than using the operating system call. When DSpace writes the content external to the database, the command would be something like: s3cmd put filename.pdf s3://bucket_name/subdir1/subdir2/filename.pdf For DSpace to then get the same object from the S3 would be: s3cmd get s3://bucket_name/subdir1/subdir2/filename.pdf filename.pdf Note that I made it look like the S3 is a file system which it is not. It is Flat Object Storage. Doing it this way makes the S3 look like a file system to the end user. Slash is just another Object name character in S3 storage. When you see objects in that S3 bucket when done this way, it is very comfortable looking: S3cmd ls s3://bucket_name/subdir1/subdir2 Date Time Sizes3://bucket_name/subdir1/subdir2/filename.pdf Using the Operating System File access, s3fs, is really slow and not that reliable. The mount tends to fail and has to be remounted from time to time. I think the DSpace ItemImport.java class can be modified to write the external data to S3 this way while storing the S3 label to the object in the database. Has this been looked at in the past? Is there a clean way to do it? What about DSpace using the get, put, and ls options to s3cmd? Has having DSpace store content in the Amazon S3 been looked at in the past? If so, how was it resolved? Thank you. Charles Keagle Sr. Cloud Engineer | 2nd Watch 603 Stewart St, Suite 707 | Seattle, WA | 98101 Mobile 425-417-3434 | Office 888.747.8254 http://www.2ndwatch.com -- Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more! Discover the easy way to master current and previous Microsoft technologies and advance your career. Get an incredible 1,500+ hours of step-by-step tutorial videos with LearnDevNow. Subscribe today and save! http://pubads.g.doubleclick.net/gampad/clk?id=58040911iu=/4140/ostg.clktrk___ 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] Messages.properties - Editing for metadata value
Mr, Sugumaran You can place modified messages.properties to*dspace/webapps/jspui/WEB-INF/classes * direcotry also. It should work -- Thanks Hardik Mishra -- Forwarded message -- From: c_sugumaran csuguma...@gmail.com To: dspace-tech@lists.sourceforge.net Cc: Date: Sun, 1 Sep 2013 10:53:00 -0700 (PDT) Subject: [Dspace-tech] Messages.properties - Editiong for metadata value display Sorry for duplicate message I am using Dspace 3.1 version – windows 2003 server os- with tomcat servlet I would like to edit some metadata - data value to be displayed with new “display string” with the data. For that I have extracted the file 'Message properties' from dspace/webapps/jspui/WEB-INF/ lib/dspace-api-3.1.jar - as given in TechnicalFAQ of Duraspace wiki. Afterwards I copied that modified 'Messages.properties' file in WEB-INF / classes But it is not working Can any one give the procedure for the above. Which file to be copied – modified – How to go about it. Thanks in advance Regards C. Sugumaran Scientist / Engr SF Documentation Officer LPSC - ISRO Trivandrum 695 547 c_suguma...@yahoo.co.in c_suguma...@lpsc.gov.in -- Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more! Discover the easy way to master current and previous Microsoft technologies and advance your career. Get an incredible 1,500+ hours of step-by-step tutorial videos with LearnDevNow. Subscribe today and save! http://pubads.g.doubleclick.net/gampad/clk?id=58040911iu=/4140/ostg.clktrk___ 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] Encoding problem in discovery search results, xmlui
Thank you all, Tomcat is set to URIEncoding=UTF-8, so that's not the issue. I'm suspecting that filter-media is generating invalid .txt but haven't found anything yet. Ats, Alcides Carlos de Moraes Neto 2013/9/3 Tiago Rodrigo Marçal Murakami tiago.murak...@dt.sibi.usp.br Hi Alcides, We edit the Tomcat file server.xml to force UTF-8: Connector port=8080 protocol=HTTP/1.1 connectionTimeout=2 *URIEncoding=UTF-8* redirectPort=8443 / Att, Tiago R. M. Murakami Comunicação Científica e Acadêmica Departamento Técnico - Sistema Integrado de Bibliotecas Universidade de São Paulo Brasil Rua da Biblioteca S/N - Complexo Brasiliana Tel: (11) 3091-4195 2013/9/2 Alcides Carlos de Moraes Neto alcides.n...@gmail.com Hello all, We have this problem with our current dspace 3.1 installation. Discovery search results show some invalid characters due to encoding issues. Only the full text search/highlight portion of the results has this problem. Example: http://www2.senado.leg.br/bdsf/discover?filtertype_0=typefilter_relational_operator_0=notequalsfilter_0=notícia+de+jornalsubmit_apply_filter=Aplicarquery=andré+luiz+lopes+de+alcantarahttp://www2.senado.leg.br/bdsf/discover?filtertype_0=typefilter_relational_operator_0=notequalsfilter_0=not%C3%ADcia+de+jornalsubmit_apply_filter=Aplicarquery=andr%C3%A9+luiz+lopes+de+alcantara I have checked the .txt media-filter generates, they are all UTF-8. Example: http://www2.senado.leg.br/bdsf/bitstream/handle/id/496326/Artigo_Andre_Alcantara_BDSF_SNDIJ_2013.pdf.txt Any help will be appreciated =) thanks Ats, Alcides Carlos de Moraes Neto -- Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more! Discover the easy way to master current and previous Microsoft technologies and advance your career. Get an incredible 1,500+ hours of step-by-step tutorial videos with LearnDevNow. Subscribe today and save! http://pubads.g.doubleclick.net/gampad/clk?id=58040911iu=/4140/ostg.clktrk ___ 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 -- Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more! Discover the easy way to master current and previous Microsoft technologies and advance your career. Get an incredible 1,500+ hours of step-by-step tutorial videos with LearnDevNow. Subscribe today and save! http://pubads.g.doubleclick.net/gampad/clk?id=58040911iu=/4140/ostg.clktrk___ 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] XMLUI Question - Identifying embargo/restricted thumbnails in XSLT (DSpace 3.1)
Hi Terry, thumbnails in XMLUI are not put in by Java code. There's XSL which processes the METS file's (METS example [1], called here [2], actual template here [3]) fileSec section and links to the thumbnail bitstream. As you can see, there's not access rights information in that section, though. You can find it in the amdSec section above (rightsMD elements), so you need to find the thumbnail's ID (e.g. ID=file_24) and look up the access rights in the corresponding mets:rightsMD ID=rightsMD_file_25_METSRIGHTS. I've done something similar on the item page, so maybe it will help - code [4], explanation [5]. This work would most likely be suitable for inclusion into DSpace, so please submit a pull request if you manage to do it. [1] http://demo.dspace.org/xmlui/metadata/handle/10673/4/mets.xml?rightsMDTypes=METSRIGHTS [2] https://github.com/DSpace/DSpace/blob/dspace-3.1/dspace-xmlui/src/main/webapp/themes/dri2xhtml-alt/aspect/artifactbrowser/discovery.xsl#L178 [3] https://github.com/DSpace/DSpace/blob/dspace-3.1/dspace-xmlui/src/main/webapp/themes/dri2xhtml-alt/aspect/artifactbrowser/item-list.xsl#L150 [4] https://github.com/DSpace/DSpace/pull/74/files [5] https://jira.duraspace.org/browse/DS-1193 Regards, ~~helix84 Compulsory reading: DSpace Mailing List Etiquette https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette -- Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more! Discover the easy way to master current and previous Microsoft technologies and advance your career. Get an incredible 1,500+ hours of step-by-step tutorial videos with LearnDevNow. Subscribe today and save! http://pubads.g.doubleclick.net/gampad/clk?id=58040911iu=/4140/ostg.clktrk___ 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] Encoding problem in discovery search results, xmlui
On Tue, Sep 3, 2013 at 1:24 AM, Alcides Carlos de Moraes Neto alcides.n...@gmail.com wrote: I have checked the .txt media-filter generates, they are all UTF-8. What I see (see attachment) looks like double-encoded UTF-8 (it happens when a charset converter is told that a file is to be encoded from one character set to UTF-8, but it actually already was UTF-8) - which would seem like valid UTF-8 to a machine, but has nonsensical characters. What do you see? I don't have a solution yet, though. On Tue, Sep 3, 2013 at 2:28 AM, Keir Vaughan-Taylor k...@usyd.edu.au wrote: Is it a problem that the extension is pdf.txt ? No, that's normal. Regards, ~~helix84 Compulsory reading: DSpace Mailing List Etiquette https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette attachment: leg.br.png-- Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more! Discover the easy way to master current and previous Microsoft technologies and advance your career. Get an incredible 1,500+ hours of step-by-step tutorial videos with LearnDevNow. Subscribe today and save! http://pubads.g.doubleclick.net/gampad/clk?id=58040911iu=/4140/ostg.clktrk___ 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] Messages.properties - Procedure to edit the display format
I am using Dspace 3.1 version – windows 2003 server os- with tomcat servlet I would like to edit some metadata - data value to be displayed with new “display string” with the data. For that I have extracted the file ‘Messages.properties’ from dspace/webapps/jspui/WEB-INF/lib/dspace-api-3.1.jar - as given in TechnicalFAQ of Duraspace wiki. I have made the corresponding changes in 'Message.properties' Afterwards I copied that file in WEB-INF / classes Then I copied the WEB-INF / jspui into Tomcat-Web-inf But it is not working Can you please send me the procedure for making changes in metadata-display string and editing of Messages.properties file and its procedures Thanks in advance Regards C. Sugumaran, Scientist / Engr 'SF' Documentation Officer, LPSC / ISRO / Valiamala - 695 547 Trivandrum email : c_suguma...@yahoo.co.in ; c_suguma...@lpsc.gov.in -- View this message in context: http://dspace.2283337.n4.nabble.com/Messages-properties-Procedure-to-edit-the-display-format-tp4667017.html Sent from the DSpace - Tech mailing list archive at Nabble.com. -- Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more! Discover the easy way to master current and previous Microsoft technologies and advance your career. Get an incredible 1,500+ hours of step-by-step tutorial videos with LearnDevNow. Subscribe today and save! http://pubads.g.doubleclick.net/gampad/clk?id=58040911iu=/4140/ostg.clktrk ___ 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