diff --git a/src/main/java/edu/harvard/iq/dataverse/util/bagit/OREMap.java b/src/main/java/edu/harvard/iq/dataverse/util/bagit/OREMap.java index 9d404190cc4..19d9c2931ae 100644 --- a/src/main/java/edu/harvard/iq/dataverse/util/bagit/OREMap.java +++ b/src/main/java/edu/harvard/iq/dataverse/util/bagit/OREMap.java @@ -381,7 +381,7 @@ public JsonLDTerm getDescriptionTextTerm() { private JsonLDTerm getTermFor(String fieldTypeName) { //Could call datasetFieldService.findByName(fieldTypeName) - is that faster/prefereable? - for (DatasetField dsf : version.getDatasetFields()) { + for (DatasetField dsf : version.getFlatDatasetFields()) { DatasetFieldType dsft = dsf.getDatasetFieldType(); if (dsft.getName().equals(fieldTypeName)) { return dsft.getJsonLDTerm();