mirror of
https://github.com/ilri/cgspace-java-helpers.git
synced 2024-11-23 15:20:23 +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 {
|
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
|
// Some bitstreams like Infographics are large JPGs and put in the ORIGINAL bundle on purpose so we shouldn't
|
||||||
// swap them.
|
// swap them.
|
||||||
List<MetadataValue> itemTypes = itemService.getMetadataByMetadataString(item, "dc.type");
|
List<MetadataValue> itemTypes = itemService.getMetadataByMetadataString(item, "dcterms.type");
|
||||||
boolean itemHasInfographic = false;
|
boolean itemHasInfographic = false;
|
||||||
for (MetadataValue itemType: itemTypes) {
|
for (MetadataValue itemType: itemTypes) {
|
||||||
if (itemType.getValue().equals("Infographic")) {
|
if (itemType.getValue().equals("Infographic")) {
|
||||||
|
Loading…
Reference in New Issue
Block a user