From 08e7546a87cca0d8b731b9eafa35ded065a86e87 Mon Sep 17 00:00:00 2001 From: Alan Orth Date: Thu, 6 Aug 2020 12:58:37 +0300 Subject: [PATCH] RemovePNGThumbnailsForPDFs to FixJpgJpgThumbnails I want to use this to fix occurences of ".jpg.jpg" thumbnails that are caused by users uploading manually created JPG thumbnails to the ORIGINAL bundle, which causes DSpace to create another one in the THUMBNAIL bundle. --- ...vePNGThumbnailsForPDFs.java => FixJpgJpgThumbnails.java} | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) rename src/main/java/io/github/ilri/cgspace/scripts/{RemovePNGThumbnailsForPDFs.java => FixJpgJpgThumbnails.java} (95%) diff --git a/src/main/java/io/github/ilri/cgspace/scripts/RemovePNGThumbnailsForPDFs.java b/src/main/java/io/github/ilri/cgspace/scripts/FixJpgJpgThumbnails.java similarity index 95% rename from src/main/java/io/github/ilri/cgspace/scripts/RemovePNGThumbnailsForPDFs.java rename to src/main/java/io/github/ilri/cgspace/scripts/FixJpgJpgThumbnails.java index 099bb82..d89377b 100644 --- a/src/main/java/io/github/ilri/cgspace/scripts/RemovePNGThumbnailsForPDFs.java +++ b/src/main/java/io/github/ilri/cgspace/scripts/FixJpgJpgThumbnails.java @@ -1,4 +1,4 @@ -package nz.ac.waikato.its.irr.scripts; +package io.github.ilri.cgspace.scripts; import org.apache.commons.lang.StringUtils; import org.dspace.authorize.AuthorizeException; @@ -9,12 +9,12 @@ import org.dspace.handle.HandleManager; import java.io.IOException; import java.sql.SQLException; -import java.util.Arrays; /** * @author Andrea Schweer schweer@waikato.ac.nz for the LCoNZ Institutional Research Repositories + * @author Alan Orth for the International Livestock Research Institute */ -public class RemovePNGThumbnailsForPDFs { +public class FixJpgJpgThumbnails { public static void main(String[] args) { String parentHandle = null;