diff --git a/claims/linking/bulkClaim/bulkClaim.component.ts b/claims/linking/bulkClaim/bulkClaim.component.ts index cca6864a..38f2ccb6 100644 --- a/claims/linking/bulkClaim/bulkClaim.component.ts +++ b/claims/linking/bulkClaim/bulkClaim.component.ts @@ -3,7 +3,7 @@ import {SearchCrossrefService} from '../../claim-utils/service/searchCrossref.se import {SearchDataciteService} from '../../claim-utils/service/searchDatacite.service'; import {ModalLoading} from '../../../utils/modal/loading.component'; -import {Dates, DOI} from '../../../utils/string-utils.class'; +import {Dates, DOI, Identifier} from '../../../utils/string-utils.class'; import {EnvProperties} from '../../../utils/properties/env-properties'; import {ClaimEntity} from "../../claim-utils/claimHelper.class"; import {Subscriber} from "rxjs"; @@ -167,9 +167,7 @@ export class BulkClaimComponent { 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]; - } + id = Identifier.getRawDOIValue(id); 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();