Use dcterms.type in FixJpgJpgThumbnails script

We are now using dcterms.type instead of dc.type.
This commit is contained in:
Alan Orth 2022-10-04 16:16:43 +03:00
parent 1497ebb476
commit 26597e2f8f
Signed by: alanorth
GPG Key ID: 0FB860CC9C45B1B9

View File

@ -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<MetadataValue> itemTypes = itemService.getMetadataByMetadataString(item, "dc.type");
List<MetadataValue> itemTypes = itemService.getMetadataByMetadataString(item, "dcterms.type");
boolean itemHasInfographic = false;
for (MetadataValue itemType: itemTypes) {
if (itemType.getValue().equals("Infographic")) {