From b8926dcfeb2b40af1ef8122d37ab52b909d629a3 Mon Sep 17 00:00:00 2001 From: qqmyers Date: Thu, 22 Feb 2024 10:47:27 -0500 Subject: [PATCH] add defaults --- .../iq/dataverse/pidproviders/doi/ezid/EZIdProviderFactory.java | 2 +- .../iq/dataverse/pidproviders/handle/HandleProviderFactory.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/edu/harvard/iq/dataverse/pidproviders/doi/ezid/EZIdProviderFactory.java b/src/main/java/edu/harvard/iq/dataverse/pidproviders/doi/ezid/EZIdProviderFactory.java index 6c9e6f06c6f..95ad9bdeff0 100644 --- a/src/main/java/edu/harvard/iq/dataverse/pidproviders/doi/ezid/EZIdProviderFactory.java +++ b/src/main/java/edu/harvard/iq/dataverse/pidproviders/doi/ezid/EZIdProviderFactory.java @@ -27,7 +27,7 @@ public PidProvider createPidProvider(String providerId) { String managedList = JvmSettings.PID_PROVIDER_MANAGED_LIST.lookupOptional(providerId).orElse(""); String excludedList = JvmSettings.PID_PROVIDER_EXCLUDED_LIST.lookupOptional(providerId).orElse(""); - String baseUrl = JvmSettings.EZID_API_URL.lookup(providerId); + String baseUrl = JvmSettings.EZID_API_URL.lookupOptional(providerId).orElse("https://ezid.cdlib.org"); String username = JvmSettings.EZID_USERNAME.lookup(providerId); String password = JvmSettings.EZID_PASSWORD.lookup(providerId); diff --git a/src/main/java/edu/harvard/iq/dataverse/pidproviders/handle/HandleProviderFactory.java b/src/main/java/edu/harvard/iq/dataverse/pidproviders/handle/HandleProviderFactory.java index 9dd1c5f2928..eef5bed8432 100644 --- a/src/main/java/edu/harvard/iq/dataverse/pidproviders/handle/HandleProviderFactory.java +++ b/src/main/java/edu/harvard/iq/dataverse/pidproviders/handle/HandleProviderFactory.java @@ -27,7 +27,7 @@ public PidProvider createPidProvider(String providerId) { String managedList = JvmSettings.PID_PROVIDER_MANAGED_LIST.lookupOptional(providerId).orElse(""); String excludedList = JvmSettings.PID_PROVIDER_EXCLUDED_LIST.lookupOptional(providerId).orElse(""); - int index = JvmSettings.HANDLENET_INDEX.lookup(Integer.class, providerId); + int index = JvmSettings.HANDLENET_INDEX.lookupOptional(Integer.class, providerId).orElse(300); boolean independentHandleService = JvmSettings.HANDLENET_INDEPENDENT_SERVICE .lookupOptional(Boolean.class, providerId).orElse(false); String handleAuthHandle = JvmSettings.HANDLENET_AUTH_HANDLE.lookup(providerId);