From 26597e2f8f8ef419e83a0dc48453a51ed6e1a1ca Mon Sep 17 00:00:00 2001 From: Alan Orth Date: Tue, 4 Oct 2022 16:16:43 +0300 Subject: [PATCH] Use dcterms.type in FixJpgJpgThumbnails script We are now using dcterms.type instead of dc.type. --- .../io/github/ilri/cgspace/scripts/FixJpgJpgThumbnails.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/io/github/ilri/cgspace/scripts/FixJpgJpgThumbnails.java b/src/main/java/io/github/ilri/cgspace/scripts/FixJpgJpgThumbnails.java index 12dbee3..cd7f060 100644 --- a/src/main/java/io/github/ilri/cgspace/scripts/FixJpgJpgThumbnails.java +++ b/src/main/java/io/github/ilri/cgspace/scripts/FixJpgJpgThumbnails.java @@ -84,7 +84,7 @@ public class FixJpgJpgThumbnails { private static void processItem(Context context, Item item) throws SQLException, AuthorizeException, IOException { // Some bitstreams like Infographics are large JPGs and put in the ORIGINAL bundle on purpose so we shouldn't // swap them. - List itemTypes = itemService.getMetadataByMetadataString(item, "dc.type"); + List itemTypes = itemService.getMetadataByMetadataString(item, "dcterms.type"); boolean itemHasInfographic = false; for (MetadataValue itemType: itemTypes) { if (itemType.getValue().equals("Infographic")) {