From e1bf3a63ccbd698ea6bc697d89f8e35570494ecf Mon Sep 17 00:00:00 2001 From: "konstantina.galouni" Date: Thu, 19 Sep 2024 15:54:03 +0300 Subject: [PATCH] [develop | DONE | FIXED]: orcidWork.ts: Added check to add openaire id as external-id in orcid claims, unless there is at least 1 identifier. --- orcid/orcidWork.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/orcid/orcidWork.ts b/orcid/orcidWork.ts index e92fbcb2..70b80ab2 100644 --- a/orcid/orcidWork.ts +++ b/orcid/orcidWork.ts @@ -141,7 +141,7 @@ export class WorkV3_0 { } } - if(resultLandingInfo.identifiers) { + if(resultLandingInfo.identifiers && resultLandingInfo.identifiers.size > 0) { work['external-ids'] = { 'external-id': [] }; resultLandingInfo.identifiers.forEach(((values, key) => { values.forEach(value => {