Hi Jeffrey,
On 01/03/16 12:02, Jeffrey Sheldon wrote:
1. I'd like to remove a large number of thumbnail bitstreams that were
generated for various bitstream types (JPEG, PDF, text, etc.). I'm doing this
to simply fall back on a generic icon view for various bitstream types and be
more selective about which types have generated thumbnails.
The "right" way to do this is probably via a curation task, assuming you
have Java skills available locally. The documentation is here:
https://wiki.duraspace.org/display/DSDOC5x/Curation+System#CurationSystem-Writingyourowntasks
-- there is also an option to use Jython (a python flavour) if that's
more convenient:
https://wiki.duraspace.org/display/DSDOC5x/Curation+tasks+in+Jython
I have a script on github that removes PNG thumbnails for bitstreams
that also have a JPG thumbnail:
https://github.com/UoW-IRRs/DSpace-Scripts/blob/master/src/main/java/nz/ac/waikato/its/irr/scripts/RemovePNGThumbnailsForPDFs.java
We had custom thumbnails for a while and switched back to DSpace default
when we upgraded to 5.x; the script was used as a one-off during the
upgrade. It's a command-line script, to be invoked via dsrun after
dropping the jar file into [dspace]/lib. I believe I went that route
(instead of writing a curation task) because it was faster to write this
way and we were confident that it really only would run once. It should
be easy enough to rip out the processItem method and toss it into a
curation task.
cheers,
Andrea
--
Dr Andrea Schweer
Lead Software Developer, ITS Information Systems
The University of Waikato, Hamilton, New Zealand
+64-7-837 9120
--
You received this message because you are subscribed to the Google Groups "DSpace
Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/dspace-community.
For more options, visit https://groups.google.com/d/optout.