Re: [Dspace-tech] trying to find pdf file from upload.
Hello Peter. have you thought to use an old version of itext? 4.1.6 / 4.2.0 Were released under the LGPL and MPL. regards Adán Román Ruiz ARVO Consultores 2014-10-29 20:12 GMT+01:00 Peter Dietz pe...@longsight.com: Yep. BTW, Thanks for your interest in this feature, I've decided to rewrite the PDF Citation Coverpage from iText (incompatible license with DSpace), to PDFBOX (compatible license with DSpace), and this will be a new feature of DSpace 5. Feel free to test that version. See the Pull Request: https://github.com/DSpace/DSpace/pull/678 There is a known caveat with the PDFBOX version, that non ASCII characters will not display properly. It looks like this is something that the Apache PDFBOX developers have slated for PDFBOX 2, (current is PDFBOX 1.8.7). So, if anyone out there would be able to take a peak at PDFBOX + unicode font embedding, that would be much appreciated. (There's still time before DSpace 5 final release). Peter Dietz Longsight www.longsight.com pe...@longsight.com p: 740-599-5005 x809 On Wed, Oct 29, 2014 at 1:03 PM, Jose Blanco blan...@umich.edu wrote: I see my problem. I was accessing as Admin, so citation page was not showing as the code says to do. Thanks! Jose On Wed, Oct 29, 2014 at 11:48 AM, Jose Blanco blan...@umich.edu wrote: Peter, I had to work on something else, but I'm back on this. It seems like every time I upload an item, the citation cover page does not show unless I clear the browser cache. I tried this in firefox and chrome. Any idea? Thanks! Jose On Thu, Sep 25, 2014 at 4:07 PM, Jose Blanco blan...@umich.edu wrote: It was a caching problem. Let me test it some more. Thank you! Jose On Thu, Sep 25, 2014 at 4:03 PM, Jose Blanco blan...@umich.edu wrote: Peter, never mind about the PDS 2. It was a sample pdf that was there. So that was OK, but why does my new deposit not show the citation page. I deposited it in the same collection as the other items that are showing the citation page. Cache? I'm going to clear it, and see, but it should not be because I just went to it after the deposit. On Thu, Sep 25, 2014 at 3:47 PM, Jose Blanco blan...@umich.edu wrote: Peter, It built but when I download a pdf file I get the citation page, but the actual pdf file, has just has: PDF 2 I then deposited a new item and I don't see that citation page, but do see the pdf file just fine. Any idea? On Thu, Sep 25, 2014 at 2:09 PM, Peter Dietz pdiet...@gmail.com wrote: Maven https://github.com/osulibraries/DSpace/blob/osukb/dspace-api/pom.xml#L262 dependency groupIdcom.itextpdf/groupId artifactIditextpdf/artifactId version5.1.2/version typejar/type /dependency dependency groupIdcom.itextpdf.tool/groupId artifactIdxmlworker/artifactId version1.1.0/version typejar/type /dependency NB: iTextPDF is licensed under the AGPL Peter Dietz On Thu, Sep 25, 2014 at 1:37 PM, Jose Blanco blan...@umich.edu wrote: Peter, where does com.itextpdf come from in the file CitationDocument.java come from? I must have to add this to the pom.xml file. On Fri, Sep 19, 2014 at 7:20 PM, Peter Dietz pe...@longsight.com wrote: Jose, That feature hasn't been contributed, and is currently only in OSU's codebase (1.8.x currently): That config file: https://github.com/osulibraries/DSpace/blob/osukb/dspace/config/modules/disseminate-citation.cfg The main class that generates the PDF is: https://github.com/osulibraries/DSpace/blob/osukb/dspace-api/src/main/java/org/dspace/disseminate/CitationDocument.java And it's wired in to xmlui bitstream downloads at: https://github.com/osulibraries/DSpace/blob/osukb/dspace-xmlui/dspace-xmlui-api/src/main/java/org/dspace/app/xmlui/cocoon/BitstreamReader.java Andrea Schweer had another citation PDF solution, using curation task. On Sep 19, 2014 1:32 PM, Jose Blanco blan...@umich.edu wrote: Sorry about that. I hit send before finishing the email. What I wanted to say is that I can't find: dspace/config/modules/disseminate-citation.cfg in dspace 4.2 On Fri, Sep 19, 2014 at 1:31 PM, Jose Blanco blan...@umich.edu wrote: Peter, Thank you for helping me out with this. I can't find: On Fri, Sep 19, 2014 at 11:54 AM, Peter Dietz pe...@longsight.com wrote: Hi Jose, Perhaps a similar idea is the citation cover-page project I had worked on at OSU. We don't modify the original PDF at all, upon download/dissemination, it generates a pdf that adds that extra page and serves it. Due to licensing, we'll need to look at java libraries to help accomplish this. The implementation used iTextPDF, which is AGPL (incompatible
Re: [Dspace-tech] Not affect the Code that was changes from [dspace-source] jsptag
Dear mr.bhavesh, from internet i came through your post. Infact i have same requirement as you mentioned. i want to open a popup window on view/open click in item display page. i have not explored much except itemtag.java. if you have got successfully open popup window on view/open please tell me how can i do that. it would be very helpful. thanking you. waiting for your comment. -Lindse Yohan -- View this message in context: http://dspace.2283337.n4.nabble.com/Not-affect-the-Code-that-was-changes-from-dspace-source-jsptag-tp4668396p4675359.html Sent from the DSpace - Tech mailing list archive at Nabble.com. -- ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
Re: [Dspace-tech] Not affect the Code that was changes from [dspace-source] jsptag
Dear Lindse Yohan, I was not able to open the popup (may be some syntax error I was face) but I have customize some code on that view/open link..that will open the link on new window for specific file type (using if..else condition). Regards, Bhavesh Thanks Regards, *Bhavesh R. Patel * - www.bhaveshpatel.info - www.onlinequizportal.com - www.hindisuvichar.com Never leave till tomorrow which you can do today *Please consider the environment before printing this e-mail.* On Thu, Oct 30, 2014 at 1:38 PM, Lindse Yohan lindseyo...@gmail.com wrote: Dear mr.bhavesh, from internet i came through your post. Infact i have same requirement as you mentioned. i want to open a popup window on view/open click in item display page. i have not explored much except itemtag.java. if you have got successfully open popup window on view/open please tell me how can i do that. it would be very helpful. thanking you. waiting for your comment. -Lindse Yohan -- View this message in context: http://dspace.2283337.n4.nabble.com/Not-affect-the-Code-that-was-changes-from-dspace-source-jsptag-tp4668396p4675359.html Sent from the DSpace - Tech mailing list archive at Nabble.com. -- ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette -- ___ DSpace-tech 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] Not affect the Code that was changes from [dspace-source] jsptag
Dear mr.bhavesh can you share snap of the code, so i can understand in better way. -- View this message in context: http://dspace.2283337.n4.nabble.com/Not-affect-the-Code-that-was-changes-from-dspace-source-jsptag-tp4668396p4675361.html Sent from the DSpace - Tech mailing list archive at Nabble.com. -- ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
Re: [Dspace-tech] DSpace error ClientAbortException
Stuart has suggested why this may be happening on a regular basis. Apart from that, it is common for this to occur occasionally when clients abort a page load or download. If you only want to address the consequence - a long log message for a mostly harmless event, use this patch [1] for your DSpace 3 or upgrade to DSpace 4. [1] https://jira.duraspace.org/browse/DS-1448 Regards, ~~helix84 Compulsory reading: DSpace Mailing List Etiquette https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette -- ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
Re: [Dspace-tech] trying to find pdf file from upload.
Hi Adán, we've already been using PDFbox in DSpace before this feature for PDF text extraction and thumbnail generation in filter-media and as a PDF packager, so this is a good choice. That said, we'll need to address the encoding issue mentioned and described in [1] - probably by upgrading when PDFbox 2 is released and uploaded to Maven Central, but if you can find another way, a patch for 5.x will be highly appreciated. [1] https://jira.duraspace.org/browse/DS-2224 Regards, ~~helix84 Compulsory reading: DSpace Mailing List Etiquette https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette -- ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
Re: [Dspace-tech] DSpace error ClientAbortException
Thx Helix. We will be upgrading to 4.X in Jan 2015, after 5.X is released. So this will be fixed then. Cheers hg *Hilton Gibson* Ubuntu Linux Systems Administrator JS Gericke Library Room 1025C Stellenbosch University Private Bag X5036 Stellenbosch 7599 South Africa Tel: +27 21 808 4100 | Cell: +27 84 646 4758 On 30 October 2014 13:36, helix84 heli...@centrum.sk wrote: Stuart has suggested why this may be happening on a regular basis. Apart from that, it is common for this to occur occasionally when clients abort a page load or download. If you only want to address the consequence - a long log message for a mostly harmless event, use this patch [1] for your DSpace 3 or upgrade to DSpace 4. [1] https://jira.duraspace.org/browse/DS-1448 Regards, ~~helix84 Compulsory reading: DSpace Mailing List Etiquette https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette -- ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
Re: [Dspace-tech] DSpace error ClientAbortException
On Thu, Oct 30, 2014 at 1:30 PM, Hilton Gibson hilton.gib...@gmail.com wrote: We will be upgrading to 4.X in Jan 2015, after 5.X is released. So this will be fixed then. Not really fixed, please note that the message is only reduced from a full stacktrace to a single line. But of course, you can tweak the log level if you want to hide it completely. Regards, ~~helix84 Compulsory reading: DSpace Mailing List Etiquette https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette -- ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
[Dspace-tech] Question about metedata localizaton
Greetings! I'm new in DSpace but trying to get deeper into it. My name is Alex and I'm from Ukraine - I managed to localize almost all parts of interface and forms of our Dspace installation. But I have one critical question about data organization and translation. In the input form of publication submission I've tried to extend the vocabolary of dc:type metadata field (file input-forms_uk.xml) to add different types op papers: Thesis of article, Full article, Report etc with their UA translations. Then I've added in discovery.xml filters and facets configuration to that type field. It's works great - in input form of submission I see Ukrainian type names and facets are working really great. BUT in facets and in search condition type VALUES are NOT translated - the are original - english (( What is the best solution to make facet values localized depending on chosen interface language? I suppose I can hard-code UA-translated values into forms - but this will remove Dublin Core compatibility (I guess?..). In general it seems that I need to create some additional metadata field (dc:type should I guess describe type in sense of media: video,text, audio, presentation etc.) At the end I need some kind of dc:publication_type which will describe different types of text publications and they must be localized depending on user language and be available in facets. Thank you in advance! -- ___ 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] PDF Citation Coverpage (Retention of PDF/A compliance and bookmarks)
Hello Peter, I would like to ask regarding PDF citation coverpage since this is already merged in the master branch. These past few days, I am trying to modify CitationDocument.java to retain PDF/A compliance of my pdfs (almost all our pdfs are at least PDF/A1-b compliant) since pdfbox supports PDF/A validation[1] and creation[2]. Please advice on which part of the code should I put the codes mentioned in [2]? I tried to insert the codes just before the PDFont fontHelvetica = PDType1Font.HELVETICA; portion and then created directories under dspace-api/src/main/resources/org/dspace/ttf where I saved the fonts and dspace-api/src/main/resources/org/dspace/pdfa for the color profile. I encountered this error in DSpace logs when trying to view a pdf: ERROR org.dspace.app.xmlui.cocoon.BitstreamReader @ Caught an error with intercepting the citation document:null I also noticed that the pdf served if I'm not logged in as an administrator does not retain the bookmarks of the pdf. Thanks in advance and regards, Elvi S. Nemiz [1]http://pdfbox.apache.org/cookbook/pdfavalidation.html [2]http://pdfbox.apache.org/cookbook/pdfacreation.html -- ___ 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] PDF Citation Coverpage (Retention of PDF/A compliance and bookmarks)
Hi Elvi, I'm glad there's interest in the PDF citation page. This would be wise to enhance this to not cause issues with PDF/A source content. The makeCitedDocument(bitstream) is the relevant piece of code. https://github.com/DSpace/DSpace/blob/master/dspace-api/src/main/java/org/dspace/disseminate/CitationDocument.java#L302 Yeah, the pdf creation guide from apache looks like the better one to follow. It looks like we need to embed the font (I still never found a font that supports Unicode, that we can embed, some limitation of current PDFBOX, but worth an attempt to load other fonts). Best of luck. If you can fix this before 5.0 final, we can still accept the fix. Peter Dietz Longsight www.longsight.com pe...@longsight.com p: 740-599-5005 x809 On Thu, Oct 30, 2014 at 11:19 AM, Nemiz, Elvi esne...@seafdec.org.ph wrote: Hello Peter, I would like to ask regarding PDF citation coverpage since this is already merged in the master branch. These past few days, I am trying to modify CitationDocument.java to retain PDF/A compliance of my pdfs (almost all our pdfs are at least PDF/A1-b compliant) since pdfbox supports PDF/A validation[1] and creation[2]. Please advice on which part of the code should I put the codes mentioned in [2]? I tried to insert the codes just before the PDFont fontHelvetica = PDType1Font.HELVETICA; portion and then created directories under dspace-api/src/main/resources/org/dspace/ttf where I saved the fonts and dspace-api/src/main/resources/org/dspace/pdfa for the color profile. I encountered this error in DSpace logs when trying to view a pdf: ERROR org.dspace.app.xmlui.cocoon.BitstreamReader @ Caught an error with intercepting the citation document:null I also noticed that the pdf served if I'm not logged in as an administrator does not retain the bookmarks of the pdf. Thanks in advance and regards, Elvi S. Nemiz [1]http://pdfbox.apache.org/cookbook/pdfavalidation.html [2]http://pdfbox.apache.org/cookbook/pdfacreation.html -- ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette -- ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
[Dspace-tech] Link Checker in Dspace
Hello community, We are working on Dspace 3.1 JSPUI/ UNIX. We have configured the Link Checker to check bad links in the dc.identifier.uri field. As a test we put 2 bad links in the metadata record and this was not reported as bad links. A test with the curl command indicates it recognises / resolves the host one of the links but not the other even though they are both bad links hence one of them is not returned as a bad link. The links we used were · http://lfdajglkae.KLFDJGBLGFHLSN.ca/test · http://gueswer4V5424s.not.here.ca curl http://gueswer4V5424s.not.here.ca returns html head titleSearch the web: gueswer4V5424s.not.here.ca/title /head frameset rows=* frameborder=no border=0 framespacing=0 disabled-frame marginwidth=0 marginheight=0 scrolling=no src=http://parking.reg.ca/top.shtml; frame marginwidth=0 marginheight=0 src=http://searchportal.information.com/?o_id=65353a_id=36165domainname=gueswer4V5424s.not.here.ca; /frameset noframes body bgcolor=#ff text=#00 a href=http://searchportal.information.com/?o_id=65353a_id=36165domainname=gueswer4V5424s.not.here.ca;Click here to enter/a. /body /noframes html curl http://lfdajglkae.KLFDJGBLGFHLSN.ca/test returns curl: (6) Couldn't resolve host 'lfdajglkae.KLFDJGBLGFHLSN.ca' Is this a known bug and is there any plans for a fix? Thank you very much for your help. Edna Hagan Information Management Analyst | Analyste de gestion de l'information International Development Research Centre | Centre de recherches pour le développement international 613-696-2297 | eha...@idrc.camailto:eha...@idrc.ca | www.idrc.cahttp://www.idrc.ca/ | www.crdi.cahttp://www.crdi.ca/ -- ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
Re: [Dspace-tech] Link Checker in Dspace
That looks like your DNS host is redirecting unknown domains to a commercial sales site. If you change your DNS settings you may get a sane answer. cheers stuart -- I have a new phone number: 04 463 5692 From: Edna Hagan eha...@idrc.ca Sent: Friday, 31 October 2014 6:48 a.m. To: 'DSpace-tech@lists.sourceforge.net' Subject: [Dspace-tech] Link Checker in Dspace Hello community, We are working on Dspace 3.1 JSPUI/ UNIX. We have configured the Link Checker to check bad links in the dc.identifier.uri field. As a test we put 2 bad links in the metadata record and this was not reported as bad links. A test with the curl command indicates it recognises / resolves the host one of the links but not the other even though they are both bad links hence one of them is not returned as a bad link. The links we used were · http://lfdajglkae.KLFDJGBLGFHLSN.ca/test · http://gueswer4V5424s.not.here.ca curl http://gueswer4V5424s.not.here.ca returns html head titleSearch the web: gueswer4V5424s.not.here.ca/title /head frameset rows=* frameborder=no border=0 framespacing=0 disabled-frame marginwidth=0 marginheight=0 scrolling=no src=http://parking.reg.ca/top.shtml; frame marginwidth=0 marginheight=0 src=http://searchportal.information.com/?o_id=65353a_id=36165domainname=gueswer4V5424s.not.here.ca; /frameset noframes body bgcolor=#ff text=#00 a href=http://searchportal.information.com/?o_id=65353a_id=36165domainname=gueswer4V5424s.not.here.ca;Click here to enter/a. /body /noframes html curl http://lfdajglkae.KLFDJGBLGFHLSN.ca/test returns curl: (6) Couldn't resolve host 'lfdajglkae.KLFDJGBLGFHLSN.ca' Is this a known bug and is there any plans for a fix? Thank you very much for your help. Edna Hagan Information Management Analyst | Analyste de gestion de l'information International Development Research Centre | Centre de recherches pour le développement international 613-696-2297 | eha...@idrc.camailto:eha...@idrc.ca | www.idrc.cahttp://www.idrc.ca/ | www.crdi.cahttp://www.crdi.ca/ -- ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
Re: [Dspace-tech] DS-2220: Always load Google Analytics over SSL
Fair point. As a technologist working in the developing world, this should matter more to me, but alas, my heart always cries deploy hard crypto!. There is a compromise between the two somewhere... In related news, today Google announced that Chrome 39 will disable SSLv3 fallback, and Chrome 40 will disable it entirely: https://groups.google.com/a/chromium.org/forum/#!topic/security-dev/Vnhy9aKM_l4 And TLS1.0, which came after SSLv3 (despite the decrement), is 15 years old now! And even Windows XP supports TLS 1.0. Regards, On Tue, Oct 28, 2014 at 9:54 PM, Stuart Yeates stuart.yea...@vuw.ac.nz wrote: I was shooting for always loading over HTTPS, as surely loading ANYTHING we can over HTTPS should increase our users' security, ie jQuery, images, CSS, etc... Yes, but only if you're assuming that only humans connect and all of them use modern browsers with good https support. Many users in the developing world access on an array of kinds of hardware and software that we would consider obsolete. Requiring the latest and greatest web technologies to access our research isn't going to decrease that development gap. Many tools, from plain server monitoring systems to reference checking systems to fancy website thumbnail services just work better and more reliably over http than https. cheers stuart -- Alan Orth alan.o...@gmail.com https://alaninkenya.org https://mjanja.ch In heaven all the interesting people are missing. -Friedrich Nietzsche GPG public key ID: 0x8cb0d0acb5cd81ec209c6cdfbd1a0e09c2f836c0 -- ___ 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