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.
This commit is contained in:
Alan Orth 2020-08-06 12:58:37 +03:00
parent ff076ecf50
commit 08e7546a87
Signed by: alanorth
GPG Key ID: 0FB860CC9C45B1B9

View File

@ -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;