mirror of
https://github.com/ilri/cgspace-java-helpers.git
synced 2024-11-23 07:10:19 +01:00
Use dcterms.type in FixJpgJpgThumbnails script
We are now using dcterms.type instead of dc.type.
This commit is contained in:
parent
1497ebb476
commit
26597e2f8f
@ -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")) {
|
||||
|
Loading…
Reference in New Issue
Block a user