mirror of
https://github.com/ilri/cgspace-java-helpers.git
synced 2024-11-16 20:07:06 +01:00
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:
parent
ff076ecf50
commit
08e7546a87
@ -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;
|
Loading…
Reference in New Issue
Block a user