[develop | DONE | FIXED]: [BUG FIX] bulkClaim.component.ts: In method "fetchResult()", if call to Crossref returns 404, query Datacite | environment.ts: Update url of "searchDataciteAPIURL" property to call endpoint "/dois" instead of "/works" (/works is the version 1 - old - while the current is version 2).
This commit is contained in:
parent
a45122565a
commit
590bdaf2e3
|
@ -271,10 +271,15 @@ export class BulkClaimComponent {
|
||||||
err => {
|
err => {
|
||||||
// console.log(err);
|
// console.log(err);
|
||||||
BulkClaimComponent.handleError("Error getting crossref by DOIs: " + id, err);
|
BulkClaimComponent.handleError("Error getting crossref by DOIs: " + id, err);
|
||||||
|
|
||||||
|
if(err.status == 404) {
|
||||||
|
this.searchInDatacite(id, accessMode, date, row);
|
||||||
|
} else {
|
||||||
this.notFoundIds.push(id);
|
this.notFoundIds.push(id);
|
||||||
this.notFoundIdsRow.push(row);
|
this.notFoundIdsRow.push(row);
|
||||||
this.endOfFetching();
|
this.endOfFetching();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@ export let common: EnvProperties = {
|
||||||
useNewStatistisTool: true,
|
useNewStatistisTool: true,
|
||||||
openCitationsAPIURL: "https://services.openaire.eu/opencitations/getCitations?id=",
|
openCitationsAPIURL: "https://services.openaire.eu/opencitations/getCitations?id=",
|
||||||
searchCrossrefAPIURL: "https://api.crossref.org/works",
|
searchCrossrefAPIURL: "https://api.crossref.org/works",
|
||||||
searchDataciteAPIURL: "https://api.datacite.org/works",
|
searchDataciteAPIURL: "https://api.datacite.org/dois",
|
||||||
searchOrcidURL: "https://pub.orcid.org/v2.1/",
|
searchOrcidURL: "https://pub.orcid.org/v2.1/",
|
||||||
orcidURL: "https://orcid.org/",
|
orcidURL: "https://orcid.org/",
|
||||||
orcidAPIURL: "https://services.openaire.eu/uoa-orcid-service/",
|
orcidAPIURL: "https://services.openaire.eu/uoa-orcid-service/",
|
||||||
|
|
Loading…
Reference in New Issue