[develop | DONE | FIXED]: orcidWork.ts: Added check to add openaire id as external-id in orcid claims, unless there is at least 1 identifier.

This commit is contained in:
Konstantina Galouni 2024-09-19 15:54:03 +03:00
parent 9c8ac92c91
commit e1bf3a63cc
1 changed files with 1 additions and 1 deletions

View File

@ -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 => {