Re: [Dspace-tech] Generate publicly accessible thumbnails of restricted content
Hi Alan Thanks. I have deleted the option on the 4.X page. Cheers hg *Hilton Gibson* Ubuntu Linux Systems Administrator Stellenbosch University Library http://staff.lib.sun.ac.za/~hgibson/docs/cv/cv.html On 19 May 2015 at 15:49, Alan Orth alan.o...@gmail.com wrote: Hilton, Your 4.x docs seem to suggest publicPermission is available in DSpace 4.x, but it's not. I was very happy when I read your docs, until I grepped the 4.3 source tree for `publicPermission` and got no hits. :) Seems it's a DSpace 5.0+ feature: https://wiki.duraspace.org/display/DSDOC5x/Mediafilters+for+Transforming+DSpace+Content#MediafiltersforTransformingDSpaceContent-Configurationparameters Regards, Alan On Wed, Apr 1, 2015 at 4:57 PM Peter Dietz pe...@longsight.com wrote: Hi Hilton, Yours looks correct. The publicPermission requires the condensed name, in Java parlance that would be the Class.getSimpleName(), for each media filter, thus the name of the class, or name of the java file for each media filter. I'll call it condensed without spaces form. filter.org.dspace.app.mediafilter.publicPermission = JPEGFilter, XPDF2Thumbnail, BrandedPreviewJPEGFilter Once you upgrade to 5.x, and use the ImageMagick media filter, then you'll be able to drop the extra build pice of -Pxpdf-mediafilter-support, but I'm guessing you need that now, while your using xpdf. Peter Dietz Longsight www.longsight.com pe...@longsight.com p: 740-599-5005 x809 On Wed, Apr 1, 2015 at 9:44 AM, Hilton Gibson hilton.gib...@gmail.com wrote: Hi All Is this correctly documented then: http://wiki.lib.sun.ac.za/index.php/SUNScholar/Media_Filters/4.X#Step_4F and http://wiki.lib.sun.ac.za/index.php/SUNScholar/Media_Filters/5.X#Permissions 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 1 April 2015 at 15:36, Peter Dietz pe...@longsight.com wrote: The permissions are set by MediaFilterManager https://github.com/DSpace/DSpace/blob/master/dspace-api/src/main/java/org/dspace/app/mediafilter/MediaFilterManager.java#L781, so the individual media filters don't have to account for this permission feature. I did figure out what the issue was though. You have to use the condensed name of the media filter task (without spaces, ImageMagickPdfThumbnailFilter), and not the expanded name (ImageMagick PDF Thumbnail) in filter.org.dspace.app.mediafilter.publicPermission Peter Dietz Longsight www.longsight.com pe...@longsight.com p: 740-599-5005 x809 On Tue, Mar 31, 2015 at 10:29 PM, euler esne...@seafdec.org.ph wrote: Hi Terry Looking at the following code in MediaFilterManager, there may be a mechanism to override the default permission behavior. https://github.com/DSpace/DSpace/blob/master/dspace-api/src/main/java/org/dspace/app/mediafilter/MediaFilterManager.java#L778-L789 Please, can you help me how to override the default permission behavior? I don't want the thumbnails to look like this for the anonymous viewer: http://dspace.2283337.n4.nabble.com/file/n4677262/aem-restricted.jpg Thanks in advance, euler -- View this message in context: http://dspace.2283337.n4.nabble.com/Generate-publicly-accessible-thumbnails-of-restricted-content-tp4677233p4677262.html Sent from the DSpace - Tech mailing list archive at Nabble.com. -- Dive into the World of Parallel Programming The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ ___ 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 -- Dive into the World of Parallel Programming The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ ___ 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] Generate publicly accessible thumbnails of restricted content
Hi Hilton, Yours looks correct. The publicPermission requires the condensed name, in Java parlance that would be the Class.getSimpleName(), for each media filter, thus the name of the class, or name of the java file for each media filter. I'll call it condensed without spaces form. filter.org.dspace.app.mediafilter.publicPermission = JPEGFilter, XPDF2Thumbnail, BrandedPreviewJPEGFilter Once you upgrade to 5.x, and use the ImageMagick media filter, then you'll be able to drop the extra build pice of -Pxpdf-mediafilter-support, but I'm guessing you need that now, while your using xpdf. Peter Dietz Longsight www.longsight.com pe...@longsight.com p: 740-599-5005 x809 On Wed, Apr 1, 2015 at 9:44 AM, Hilton Gibson hilton.gib...@gmail.com wrote: Hi All Is this correctly documented then: http://wiki.lib.sun.ac.za/index.php/SUNScholar/Media_Filters/4.X#Step_4F and http://wiki.lib.sun.ac.za/index.php/SUNScholar/Media_Filters/5.X#Permissions 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 1 April 2015 at 15:36, Peter Dietz pe...@longsight.com wrote: The permissions are set by MediaFilterManager https://github.com/DSpace/DSpace/blob/master/dspace-api/src/main/java/org/dspace/app/mediafilter/MediaFilterManager.java#L781, so the individual media filters don't have to account for this permission feature. I did figure out what the issue was though. You have to use the condensed name of the media filter task (without spaces, ImageMagickPdfThumbnailFilter), and not the expanded name (ImageMagick PDF Thumbnail) in filter.org.dspace.app.mediafilter.publicPermission Peter Dietz Longsight www.longsight.com pe...@longsight.com p: 740-599-5005 x809 On Tue, Mar 31, 2015 at 10:29 PM, euler esne...@seafdec.org.ph wrote: Hi Terry Looking at the following code in MediaFilterManager, there may be a mechanism to override the default permission behavior. https://github.com/DSpace/DSpace/blob/master/dspace-api/src/main/java/org/dspace/app/mediafilter/MediaFilterManager.java#L778-L789 Please, can you help me how to override the default permission behavior? I don't want the thumbnails to look like this for the anonymous viewer: http://dspace.2283337.n4.nabble.com/file/n4677262/aem-restricted.jpg Thanks in advance, euler -- View this message in context: http://dspace.2283337.n4.nabble.com/Generate-publicly-accessible-thumbnails-of-restricted-content-tp4677233p4677262.html Sent from the DSpace - Tech mailing list archive at Nabble.com. -- Dive into the World of Parallel Programming The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ ___ 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 -- Dive into the World of Parallel Programming The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ ___ 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 -- Dive into the World of Parallel Programming The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/___ 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] Generate publicly accessible thumbnails of restricted content
The permissions are set by MediaFilterManager https://github.com/DSpace/DSpace/blob/master/dspace-api/src/main/java/org/dspace/app/mediafilter/MediaFilterManager.java#L781, so the individual media filters don't have to account for this permission feature. I did figure out what the issue was though. You have to use the condensed name of the media filter task (without spaces, ImageMagickPdfThumbnailFilter), and not the expanded name (ImageMagick PDF Thumbnail) in filter.org.dspace.app.mediafilter.publicPermission Peter Dietz Longsight www.longsight.com pe...@longsight.com p: 740-599-5005 x809 On Tue, Mar 31, 2015 at 10:29 PM, euler esne...@seafdec.org.ph wrote: Hi Terry Looking at the following code in MediaFilterManager, there may be a mechanism to override the default permission behavior. https://github.com/DSpace/DSpace/blob/master/dspace-api/src/main/java/org/dspace/app/mediafilter/MediaFilterManager.java#L778-L789 Please, can you help me how to override the default permission behavior? I don't want the thumbnails to look like this for the anonymous viewer: http://dspace.2283337.n4.nabble.com/file/n4677262/aem-restricted.jpg Thanks in advance, euler -- View this message in context: http://dspace.2283337.n4.nabble.com/Generate-publicly-accessible-thumbnails-of-restricted-content-tp4677233p4677262.html Sent from the DSpace - Tech mailing list archive at Nabble.com. -- Dive into the World of Parallel Programming The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ ___ 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 -- Dive into the World of Parallel Programming The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/___ 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] Generate publicly accessible thumbnails of restricted content
Hi All Is this correctly documented then: http://wiki.lib.sun.ac.za/index.php/SUNScholar/Media_Filters/4.X#Step_4F and http://wiki.lib.sun.ac.za/index.php/SUNScholar/Media_Filters/5.X#Permissions 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 1 April 2015 at 15:36, Peter Dietz pe...@longsight.com wrote: The permissions are set by MediaFilterManager https://github.com/DSpace/DSpace/blob/master/dspace-api/src/main/java/org/dspace/app/mediafilter/MediaFilterManager.java#L781, so the individual media filters don't have to account for this permission feature. I did figure out what the issue was though. You have to use the condensed name of the media filter task (without spaces, ImageMagickPdfThumbnailFilter), and not the expanded name (ImageMagick PDF Thumbnail) in filter.org.dspace.app.mediafilter.publicPermission Peter Dietz Longsight www.longsight.com pe...@longsight.com p: 740-599-5005 x809 On Tue, Mar 31, 2015 at 10:29 PM, euler esne...@seafdec.org.ph wrote: Hi Terry Looking at the following code in MediaFilterManager, there may be a mechanism to override the default permission behavior. https://github.com/DSpace/DSpace/blob/master/dspace-api/src/main/java/org/dspace/app/mediafilter/MediaFilterManager.java#L778-L789 Please, can you help me how to override the default permission behavior? I don't want the thumbnails to look like this for the anonymous viewer: http://dspace.2283337.n4.nabble.com/file/n4677262/aem-restricted.jpg Thanks in advance, euler -- View this message in context: http://dspace.2283337.n4.nabble.com/Generate-publicly-accessible-thumbnails-of-restricted-content-tp4677233p4677262.html Sent from the DSpace - Tech mailing list archive at Nabble.com. -- Dive into the World of Parallel Programming The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ ___ 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 -- Dive into the World of Parallel Programming The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ ___ 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 -- Dive into the World of Parallel Programming The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/___ 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] Generate publicly accessible thumbnails of restricted content
Hi Terry Looking at the following code in MediaFilterManager, there may be a mechanism to override the default permission behavior. https://github.com/DSpace/DSpace/blob/master/dspace-api/src/main/java/org/dspace/app/mediafilter/MediaFilterManager.java#L778-L789 Please, can you help me how to override the default permission behavior? I don't want the thumbnails to look like this for the anonymous viewer: http://dspace.2283337.n4.nabble.com/file/n4677262/aem-restricted.jpg Thanks in advance, euler -- View this message in context: http://dspace.2283337.n4.nabble.com/Generate-publicly-accessible-thumbnails-of-restricted-content-tp4677233p4677262.html Sent from the DSpace - Tech mailing list archive at Nabble.com. -- Dive into the World of Parallel Programming The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ ___ 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] Generate publicly accessible thumbnails of restricted content
I took a look at the ImageMagick media filter code and there is no manipulation of bitstream permissions in the code. The generated thumbnail files are returned. I presume those bitstream permissions are set by default based on a collection policy. I had hoped to recommend that you use the XMLUI item wildcard policy admin tool to clean up the permissions, but that tool does not seem to differentiate bitstreams by bundle. In our instance, we want the thumbnail permissions to match the original permissions. Looking at the following code in MediaFilterManager, there may be a mechanism to override the default permission behavior. https://github.com/DSpace/DSpace/blob/master/dspace-api/src/main/java/org/dspace/app/mediafilter/MediaFilterManager.java#L778-L789 Terry On Mon, Mar 30, 2015 at 8:08 PM, euler esne...@seafdec.org.ph wrote: Hi Peter, Is there an escape character at the end of ImageMagick Image Thumbnail? i.e. , \ Did the PDF's get thumbnails generated by Image Magick? There is no escape character at the end of ImageMagick PDF Thumnail. I'm sure that the PDF's thumbnail was generated by Image Magick because I deleted first all the generated thumbnails. After running the media filter, the thumbnail's permission is the same with its parent bitstream even though I have this setting in my dspace.cfg: filter.org.dspace.app.mediafilter.publicPermission = ImageMagick PDF Thumbnail Did I missed something? Thanks in advance, euler -- View this message in context: http://dspace.2283337.n4.nabble.com/Generate-publicly-accessible-thumbnails-of-restricted-content-tp4677233p4677247.html Sent from the DSpace - Tech mailing list archive at Nabble.com. -- Dive into the World of Parallel Programming The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ ___ 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 -- Terry Brady Applications Programmer Analyst Georgetown University Library Information Technology https://www.library.georgetown.edu/lit/code 425-298-5498 (Seattle, WA) -- Dive into the World of Parallel Programming The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/___ 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] Generate publicly accessible thumbnails of restricted content
Hi Euler, In your config: Word Text Extractor, ImageMagick Image Thumbnail, ImageMagick PDF Thumbnail Is there an escape character at the end of ImageMagick Image Thumbnail? i.e. , \ Did the PDF's get thumbnails generated by Image Magick? Peter Dietz Longsight www.longsight.com pe...@longsight.com p: 740-599-5005 x809 On Mon, Mar 30, 2015 at 3:21 AM, euler esne...@seafdec.org.ph wrote: Dear All, I wonder if any of you have tried generating publicly accessible thumbnails of restricted content? I enabled the filter for ImageMagick and removed the JPEG Thumbnail from the plugin list. #Names of the enabled MediaFilter or FormatFilter plugins filter.plugins = PDF Text Extractor, HTML Text Extractor, \ PowerPoint Text Extractor, \ Word Text Extractor, ImageMagick Image Thumbnail, ImageMagick PDF Thumbnail #Publicly accessible thumbnails of restricted content. #List the MediaFilter name's that would get publicly accessible permissions #Any media filters not listed will instead inherit the permissions of the parent bitstream filter.org.dspace.app.mediafilter.publicPermission = JPEGFilter, XPDF2Thumbnail, ImageMagick PDF Thumbnail But when I run dspace filter-media -i 10862/2158 -p ImageMagick PDF Thumbnail -v -f, the thumbnail remained restricted. I'm excited to implement this because this would mean that I don't have to change the permissions of individual generated thumbnails of restricted content. Any advice would be appreciated. Thanks in advance, euler -- View this message in context: http://dspace.2283337.n4.nabble.com/Generate-publicly-accessible-thumbnails-of-restricted-content-tp4677233.html Sent from the DSpace - Tech mailing list archive at Nabble.com. -- Dive into the World of Parallel Programming The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ ___ 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 -- Dive into the World of Parallel Programming The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/___ 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] Generate publicly accessible thumbnails of restricted content
Hi Peter, Is there an escape character at the end of ImageMagick Image Thumbnail? i.e. , \ Did the PDF's get thumbnails generated by Image Magick? There is no escape character at the end of ImageMagick PDF Thumnail. I'm sure that the PDF's thumbnail was generated by Image Magick because I deleted first all the generated thumbnails. After running the media filter, the thumbnail's permission is the same with its parent bitstream even though I have this setting in my dspace.cfg: filter.org.dspace.app.mediafilter.publicPermission = ImageMagick PDF Thumbnail Did I missed something? Thanks in advance, euler -- View this message in context: http://dspace.2283337.n4.nabble.com/Generate-publicly-accessible-thumbnails-of-restricted-content-tp4677233p4677247.html Sent from the DSpace - Tech mailing list archive at Nabble.com. -- Dive into the World of Parallel Programming The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ ___ 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