Bulk claim: allow full doi url #6638
This commit is contained in:
parent
66eed05597
commit
9bf905bc22
|
@ -165,8 +165,11 @@ export class BulkClaimComponent {
|
||||||
if (rows[i] && rows[i] != null && rows[i]!="") {
|
if (rows[i] && rows[i] != null && rows[i]!="") {
|
||||||
const values = rows[i].split(',');
|
const values = rows[i].split(',');
|
||||||
|
|
||||||
const id = BulkClaimComponent.removeDoubleQuotes(values[0]);
|
let id = BulkClaimComponent.removeDoubleQuotes(values[0]);
|
||||||
if (DOI.isValidDOI(id)) {
|
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";
|
let accessMode = (values[1] != undefined) ? BulkClaimComponent.removeDoubleQuotes(values[1]) : "OPEN";
|
||||||
accessMode = (BulkClaimComponent.validateAccessMode(accessMode) ? accessMode : "OPEN");
|
accessMode = (BulkClaimComponent.validateAccessMode(accessMode) ? accessMode : "OPEN");
|
||||||
let embargoDate = (values[2] != undefined) ? Dates.getDateFromString(BulkClaimComponent.removeDoubleQuotes(values[2])) : Dates.getDateToday();
|
let embargoDate = (values[2] != undefined) ? Dates.getDateFromString(BulkClaimComponent.removeDoubleQuotes(values[2])) : Dates.getDateToday();
|
||||||
|
|
Loading…
Reference in New Issue