Skip to content
Snippets Groups Projects

feat(ORCID): updating a missing ORCID Work do not always recreate a new one

Merged Nicolas.Rod requested to merge rodn-orcid-parameter-to-auto-recreate-work into master
Files
2
@@ -33,7 +33,7 @@ import org.slf4j.LoggerFactory;
import jakarta.xml.bind.JAXBElement;
import ch.unige.solidify.exception.SolidifyOrcidWorkMissingInProfile;
import ch.unige.solidify.exception.SolidifyOrcidWorkMissingInProfileException;
import ch.unige.solidify.exception.SolidifyRuntimeException;
import ch.unige.solidify.model.OrcidSynchronization;
import ch.unige.solidify.model.OrcidToken;
@@ -106,7 +106,7 @@ public abstract class OrcidSynchronizationService extends ResourceService<OrcidS
previousSynchronization.setPutCode(putCode);
previousSynchronization.setUploadDate(OffsetDateTime.now());
return this.save(previousSynchronization);
} catch (SolidifyOrcidWorkMissingInProfile e) {
} catch (SolidifyOrcidWorkMissingInProfileException e) {
log.warn("Object '{}' ({}) with putCode {} could not be updated in ORCID profile of person {} as it doesn't exist",
work.getTitle().getTitle(), objectId, previousPutCode, person);
throw e;
Loading