Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,7 @@ public void exportAllFormats(Dataset dataset) throws ExportException {
} catch (ServiceConfigurationError serviceError) {
throw new ExportException("Service configuration error during export. " + serviceError.getMessage());
} catch (RuntimeException e) {
e.printStackTrace();
logger.log(Level.FINE, e.getMessage(), e);
throw new ExportException(
"Unknown runtime exception exporting metadata. " + (e.getMessage() == null ? "" : e.getMessage()));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
import edu.harvard.iq.dataverse.util.xml.XmlWriterUtil;
import jakarta.enterprise.inject.spi.CDI;
import jakarta.json.JsonObject;
import jakarta.json.JsonValue.ValueType;

public class XmlMetadataTemplate {

Expand Down Expand Up @@ -621,7 +622,8 @@ private void writeEntityElements(XMLStreamWriter xmlw, String elementName, Strin
if (externalIdentifier.isValidIdentifier(orgName)) {
isROR = true;
JsonObject jo = getExternalVocabularyValue(orgName);
if (jo != null) {
// Some ext. cvv configs store a JsonArray of multiple objects/values. In such cases, we'll leave orgName blank
if (jo != null && jo.getValueType() == ValueType.STRING) {
orgName = jo.getString("termName");
}
}
Expand Down
Loading