Re: [Dspace-tech] trying to find pdf file from upload.
I have one more question/concern. I wonder if there is a way to clear the cache for the bitstream for these sorts of items. When I upload an item as an admin I wont see the citation page, as expected, but when I logout and now I'm an anonymous user, I still don't see the citation page until I clear the browser cache. -Jose On Fri, Oct 31, 2014 at 6:32 AM, Adan Roman aro...@arvo.es wrote: Hi all I had studied the advantages of both libraries for a project and I concluded that basically itext is best for creation and modification of pdfs, while PDFBox highlighted in the extraction of information from these pdfs. If DSpace is intended to add the ability to convert / download documents in different formats, I think it's worth checking out as it does Alfresco. It use openofice installed as a service, and other applications to convert documents between formats on demand. Regards Adán Román Ruiz ARVO Consultores It might be worth it to take a peak at the old iText. I noticed in a StackOverflow post that it exists. I guess we could make a content disseminator interface. Subclass that to PDF-Citation-CoverPage, then have a PDFBOX implementation, and an iText (LGPL) implementation, and have spring wire it up. So, unfortunately DSpace 5 will have a disclaimer in the instructions that PDFBOX coverpage will not handle unicode characters. So, then for DSpace 6, a year from now. Will PDFBOX update to support unicode characters/fonts, or will LGPL iText be the only route forward. I did contact iText (AGPL) to see if they would create an exception for DSpace, but they declined, basically we'd have to pay per server that will use DSpace, umm. 2000+. This is post-DSpace-5 work. But I'm thinking that if you think of the OAIS model, of SIP (Submission Package), AIP (Archival Package), DIP (Dissemination Package). That, with PDF Citation Cover page, we have the ability to generate a new DIP for content. (Similar to media filter I guess). So, if we wanted the ability to add Download As RTF, DOC, etc, that could be an extension to disseminator. Keeping the original PDF as Archive / AIP. Peter Dietz Longsight www.longsight.com pe...@longsight.com p: 740-599-5005 x809 On Thu, Oct 30, 2014 at 7:41 AM, helix84 heli...@centrum.sk wrote: 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 -- ´ -- http://www.avast.com/ Este mensaje no contiene virus ni malware porque la protección de avast! Antivirus http://www.avast.com/ está activa. -- ___ 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 all I had studied the advantages of both libraries for a project and I concluded that basically itext is best for creation and modification of pdfs, while PDFBox highlighted in the extraction of information from these pdfs. If DSpace is intended to add the ability to convert / download documents in different formats, I think it's worth checking out as it does Alfresco. It use openofice installed as a service, and other applications to convert documents between formatson demand. Regards Adán Román Ruiz ARVO Consultores It might be worth it to take a peak at the old iText. I noticed in a StackOverflow post that it exists. I guess we could make a content disseminator interface. Subclass that to PDF-Citation-CoverPage, then have a PDFBOX implementation, and an iText (LGPL) implementation, and have spring wire it up. So, unfortunately DSpace 5 will have a disclaimer in the instructions that PDFBOX coverpage will not handle unicode characters. So, then for DSpace 6, a year from now. Will PDFBOX update to support unicode characters/fonts, or will LGPL iText be the only route forward. I did contact iText (AGPL) to see if they would create an exception for DSpace, but they declined, basically we'd have to pay per server that will use DSpace, umm. 2000+. This is post-DSpace-5 work. But I'm thinking that if you think of the OAIS model, of SIP (Submission Package), AIP (Archival Package), DIP (Dissemination Package). That, with PDF Citation Cover page, we have the ability to generate a new DIP for content. (Similar to media filter I guess). So, if we wanted the ability to add Download As RTF, DOC, etc, that could be an extension to disseminator. Keeping the original PDF as Archive / AIP. Peter Dietz Longsight www.longsight.com http://www.longsight.com pe...@longsight.com mailto:pe...@longsight.com p: 740-599-5005 x809 On Thu, Oct 30, 2014 at 7:41 AM, helix84 heli...@centrum.sk mailto:heli...@centrum.sk wrote: 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 -- ´ --- Este mensaje no contiene virus ni malware porque la protección de avast! Antivirus está activa. http://www.avast.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] 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] 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] trying to find pdf file from upload.
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 with DSpace), so the search continues. I'm leaning towards Apache PDFBox. You probably don't NEED to store the CC license info into the PDF itself. i.e. What happens if someone edits the Item, and chooses another license in the future, split apart the pdf and change the last page? No thanks. Just display the PDF to the user with all the info you need. Plus, you already have all the info you need at that point (once its in archive). Peter Dietz Longsight www.longsight.com pe...@longsight.com p: 740-599-5005 x809 On Wed, Sep 17, 2014 at 3:32 PM, Jose Blanco blan...@umich.edu wrote: I would like to make a change to my DSpace instance. This is what I want to do. When a user uploads a creative commons license for an item with a pdf file via the user interface, I would like to append a page to the pdf file with some bib information and a cc logo indicating the license. I am looking for the code that actually puts the pdf file in the asset store. I see that UploadStep.java uploads the file, but I can't append the cc license yet because the user has not chosen it at this point, so I need the code that takes the file and stores it in the assetstore, so I can append then. Many thanks! Jose -- Want excitement?
Re: [Dspace-tech] trying to find pdf file from upload.
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 with DSpace), so the search continues. I'm leaning towards Apache PDFBox. You probably don't NEED to store the CC license info into the PDF itself. i.e. What happens if someone edits the Item, and chooses another license in the future, split apart the pdf and change the last page? No thanks. Just display the PDF to the user with all the info you need. Plus, you already have all the info you need at that point (once its in archive). Peter Dietz Longsight www.longsight.com pe...@longsight.com p: 740-599-5005 x809 On Wed, Sep 17, 2014 at 3:32 PM, Jose Blanco blan...@umich.edu wrote: I would like to make a change to my DSpace instance. This is what I want to do. When a user uploads a creative commons license for an item with a pdf file via the user interface, I would like to append a page to the pdf file with some bib information and a cc logo indicating the license. I am looking for the code that actually puts the pdf file in the asset store. I see that UploadStep.java uploads the file, but I can't append the cc license yet because the user has not chosen it at this point, so I need the code that takes the
Re: [Dspace-tech] trying to find pdf file from upload.
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 with DSpace), so the search continues. I'm leaning towards Apache PDFBox. You probably don't NEED to store the CC license info into the PDF itself. i.e. What happens if someone edits the Item, and chooses another
Re: [Dspace-tech] trying to find pdf file from upload.
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 with DSpace), so the search continues. I'm leaning towards Apache PDFBox. You probably don't NEED to store the CC license info into the PDF itself. i.e. What happens if someone edits the Item, and chooses another license in the future, split apart the pdf and change the last page? No thanks. Just display the PDF to the user with all the info you need. Plus, you already have all the info you need at that point (once its in archive). Peter Dietz Longsight www.longsight.com pe...@longsight.com p: 740-599-5005 x809 On Wed, Sep 17, 2014 at 3:32 PM, Jose Blanco blan...@umich.edu wrote: I would like to make a change to my DSpace instance. This is what I want to do. When a user uploads a creative commons license for an item with a pdf file via the user interface, I would like to append a page to the pdf file with some bib information and a cc logo indicating the license. I am looking for the code that actually puts the pdf file in the asset store. I see that UploadStep.java uploads the file, but I can't append the cc license yet because the user has not chosen it at this point, so I need the code that takes the file and stores it in the assetstore, so I can append then. Many thanks! Jose -- Want excitement? Manually upgrade your production database. When you want reliability, choose Perforce Perforce version control. Predictably reliable. http://pubads.g.doubleclick.net/gampad/clk?id=157508191iu=/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 -- Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer http://pubads.g.doubleclick.net/gampad/clk?id=154622311iu=/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] trying to find pdf file from upload.
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 with DSpace), so the search continues. I'm leaning towards Apache PDFBox. You probably don't NEED to store the CC license info into the PDF itself. i.e. What happens if someone edits the Item, and chooses another license in the future, split apart the pdf and change the last page? No thanks. Just display the PDF to the user with all the info you need. Plus, you already have all the info you need at that point (once its in archive). Peter Dietz Longsight www.longsight.com pe...@longsight.com p: 740-599-5005 x809 On Wed, Sep 17, 2014 at 3:32 PM, Jose Blanco blan...@umich.edu wrote: I would like to make a change to my DSpace instance. This is what I want to do. When a user uploads a creative commons license for an item with a pdf file via the user interface, I would like to append a page to the pdf file with some bib information and a cc logo indicating the license. I am looking for the code that actually puts the pdf file in the asset store. I see that UploadStep.java uploads the file, but I can't append the cc license yet because the user has not chosen it at this point, so I need the code that takes the file and stores it in the assetstore, so I can append then. Many thanks! Jose -- Want excitement? Manually upgrade your production database. When you want reliability, choose Perforce Perforce version control. Predictably reliable. http://pubads.g.doubleclick.net/gampad/clk?id=157508191iu=/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 -- Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer http://pubads.g.doubleclick.net/gampad/clk?id=154622311iu=/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] trying to find pdf file from upload.
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 with DSpace), so the search continues. I'm leaning towards Apache PDFBox. You probably don't NEED to store the CC license info into the PDF itself. i.e. What happens if someone edits the Item, and chooses another license in the future, split apart the pdf and change the last page? No thanks. Just display the PDF to the user with all the info you need. Plus, you already have all the info you need at that point (once its in archive). Peter Dietz Longsight www.longsight.com pe...@longsight.com p: 740-599-5005 x809 On Wed, Sep 17, 2014 at 3:32 PM, Jose Blanco blan...@umich.edu wrote: I would like to make a change to my DSpace instance. This is what I want to do. When a user uploads a creative commons license for an item with a pdf file via the user interface, I would like to append a page to the pdf file with some bib information and a cc logo indicating the license. I am looking for the code that actually puts the pdf file in the asset store. I see that UploadStep.java uploads the file, but I can't append the cc license yet because the user has not chosen it at this point, so I need the code that takes the file and stores it in the assetstore, so I can append then. Many thanks! Jose -- Want excitement? Manually upgrade your production database. When you want reliability, choose Perforce Perforce version control. Predictably reliable. http://pubads.g.doubleclick.net/gampad/clk?id=157508191iu=/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 -- Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
Re: [Dspace-tech] trying to find pdf file from upload.
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 with DSpace), so the search continues. I'm leaning towards Apache PDFBox. You probably don't NEED to store the CC license info into the PDF itself. i.e. What happens if someone edits the Item, and chooses another license in the future, split apart the pdf and change the last page? No thanks. Just display the PDF to the user with all the info you need. Plus, you already have all the info you need at that point (once its in archive). Peter Dietz Longsight www.longsight.com pe...@longsight.com p: 740-599-5005 x809 On Wed, Sep 17, 2014 at 3:32 PM, Jose Blanco blan...@umich.edu wrote: I would like to make a change to my DSpace instance. This is what I want to do. When a user uploads a creative commons license for an item with a pdf file via the user interface, I would like to append a page to the pdf file with some bib information and a cc logo indicating the license. I am looking for the code that actually puts the pdf file in the asset store. I see that UploadStep.java uploads the file, but I can't append the cc license yet because the user has not chosen it at this point, so I need the code that takes the file and stores it in the assetstore, so I can append then. Many thanks! Jose -- Want excitement? Manually upgrade your production database. When you want reliability, choose Perforce Perforce version control. Predictably reliable. http://pubads.g.doubleclick.net/gampad/clk?id=157508191iu=/4140/ostg.clktrk ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech List Etiquette:
Re: [Dspace-tech] trying to find pdf file from upload.
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 with DSpace), so the search continues. I'm leaning towards Apache PDFBox. You probably don't NEED to store the CC license info into the PDF itself. i.e. What happens if someone edits the Item, and chooses another license in the future, split apart the pdf and change the last page? No thanks. Just display the PDF to the user with all the info you need. Plus, you already have all the info you need at that point (once its in archive). Peter Dietz Longsight www.longsight.com pe...@longsight.com p: 740-599-5005 x809 On Wed, Sep 17, 2014 at 3:32 PM, Jose Blanco blan...@umich.edu wrote: I would like to make a change to my DSpace instance. This is what I want to do. When a user uploads a creative commons license for an item with a pdf file via the user interface, I would like to append a page to the pdf file with some bib information and a cc logo indicating the license. I am looking for the code that actually puts the pdf file in the asset store. I see that UploadStep.java uploads the file, but I can't append the cc license yet because the user has not chosen it at this point, so I need the code that takes the file and stores it in the assetstore, so I can append then. Many thanks! Jose -- Want excitement? Manually upgrade your production database. When you want reliability, choose Perforce Perforce version control. Predictably reliable. http://pubads.g.doubleclick.net/gampad/clk?id=157508191iu=/4140/ostg.clktrk ___ DSpace-tech mailing list
Re: [Dspace-tech] trying to find pdf file from upload.
Hi Jose, Perhaps a similar idea is the citation cover-page project I had worked on at OSU https://github.com/osulibraries/DSpace/wiki/Citation-Cover-Page. 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 with DSpace), so the search continues. I'm leaning towards Apache PDFBox. You probably don't NEED to store the CC license info into the PDF itself. i.e. What happens if someone edits the Item, and chooses another license in the future, split apart the pdf and change the last page? No thanks. Just display the PDF to the user with all the info you need. Plus, you already have all the info you need at that point (once its in archive). Peter Dietz Longsight www.longsight.com pe...@longsight.com p: 740-599-5005 x809 On Wed, Sep 17, 2014 at 3:32 PM, Jose Blanco blan...@umich.edu wrote: I would like to make a change to my DSpace instance. This is what I want to do. When a user uploads a creative commons license for an item with a pdf file via the user interface, I would like to append a page to the pdf file with some bib information and a cc logo indicating the license. I am looking for the code that actually puts the pdf file in the asset store. I see that UploadStep.java uploads the file, but I can't append the cc license yet because the user has not chosen it at this point, so I need the code that takes the file and stores it in the assetstore, so I can append then. Many thanks! Jose -- Want excitement? Manually upgrade your production database. When you want reliability, choose Perforce Perforce version control. Predictably reliable. http://pubads.g.doubleclick.net/gampad/clk?id=157508191iu=/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 -- Slashdot TV. Video for Nerds. Stuff that Matters. http://pubads.g.doubleclick.net/gampad/clk?id=160591471iu=/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] trying to find pdf file from upload.
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 with DSpace), so the search continues. I'm leaning towards Apache PDFBox. You probably don't NEED to store the CC license info into the PDF itself. i.e. What happens if someone edits the Item, and chooses another license in the future, split apart the pdf and change the last page? No thanks. Just display the PDF to the user with all the info you need. Plus, you already have all the info you need at that point (once its in archive). Peter Dietz Longsight www.longsight.com pe...@longsight.com p: 740-599-5005 x809 On Wed, Sep 17, 2014 at 3:32 PM, Jose Blanco blan...@umich.edu wrote: I would like to make a change to my DSpace instance. This is what I want to do. When a user uploads a creative commons license for an item with a pdf file via the user interface, I would like to append a page to the pdf file with some bib information and a cc logo indicating the license. I am looking for the code that actually puts the pdf file in the asset store. I see that UploadStep.java uploads the file, but I can't append the cc license yet because the user has not chosen it at this point, so I need the code that takes the file and stores it in the assetstore, so I can append then. Many thanks! Jose -- Want excitement? Manually upgrade your production database. When you want reliability, choose Perforce Perforce version control. Predictably reliable. http://pubads.g.doubleclick.net/gampad/clk?id=157508191iu=/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 -- Slashdot TV. Video for Nerds. Stuff that Matters. http://pubads.g.doubleclick.net/gampad/clk?id=160591471iu=/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] trying to find pdf file from upload.
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 with DSpace), so the search continues. I'm leaning towards Apache PDFBox. You probably don't NEED to store the CC license info into the PDF itself. i.e. What happens if someone edits the Item, and chooses another license in the future, split apart the pdf and change the last page? No thanks. Just display the PDF to the user with all the info you need. Plus, you already have all the info you need at that point (once its in archive). Peter Dietz Longsight www.longsight.com pe...@longsight.com p: 740-599-5005 x809 On Wed, Sep 17, 2014 at 3:32 PM, Jose Blanco blan...@umich.edu wrote: I would like to make a change to my DSpace instance. This is what I want to do. When a user uploads a creative commons license for an item with a pdf file via the user interface, I would like to append a page to the pdf file with some bib information and a cc logo indicating the license. I am looking for the code that actually puts the pdf file in the asset store. I see that UploadStep.java uploads the file, but I can't append the cc license yet because the user has not chosen it at this point, so I need the code that takes the file and stores it in the assetstore, so I can append then. Many thanks! Jose -- Want excitement? Manually upgrade your production database. When you want reliability, choose Perforce Perforce version control. Predictably reliable. http://pubads.g.doubleclick.net/gampad/clk?id=157508191iu=/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 -- Slashdot TV. Video for Nerds. Stuff that Matters. http://pubads.g.doubleclick.net/gampad/clk?id=160591471iu=/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] trying to find pdf file from upload.
I would like to make a change to my DSpace instance. This is what I want to do. When a user uploads a creative commons license for an item with a pdf file via the user interface, I would like to append a page to the pdf file with some bib information and a cc logo indicating the license. I am looking for the code that actually puts the pdf file in the asset store. I see that UploadStep.java uploads the file, but I can't append the cc license yet because the user has not chosen it at this point, so I need the code that takes the file and stores it in the assetstore, so I can append then. Many thanks! Jose -- Want excitement? Manually upgrade your production database. When you want reliability, choose Perforce Perforce version control. Predictably reliable. http://pubads.g.doubleclick.net/gampad/clk?id=157508191iu=/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