diff --git a/claims/linking/bulkClaim/bulkClaim.component.ts b/claims/linking/bulkClaim/bulkClaim.component.ts index 4bad5180..cca6864a 100644 --- a/claims/linking/bulkClaim/bulkClaim.component.ts +++ b/claims/linking/bulkClaim/bulkClaim.component.ts @@ -165,8 +165,11 @@ export class BulkClaimComponent { if (rows[i] && rows[i] != null && rows[i]!="") { const values = rows[i].split(','); - const id = BulkClaimComponent.removeDoubleQuotes(values[0]); + let id = BulkClaimComponent.removeDoubleQuotes(values[0]); if (DOI.isValidDOI(id)) { + if(id.indexOf("doi.org")!=-1 && id.split("doi.org/").length > 1){ + id = id.split("doi.org/")[1]; + } let accessMode = (values[1] != undefined) ? BulkClaimComponent.removeDoubleQuotes(values[1]) : "OPEN"; accessMode = (BulkClaimComponent.validateAccessMode(accessMode) ? accessMode : "OPEN"); let embargoDate = (values[2] != undefined) ? Dates.getDateFromString(BulkClaimComponent.removeDoubleQuotes(values[2])) : Dates.getDateToday();