VIVO-737: allow for entry of full orcid id/url
This commit is contained in:
parent
54ca2a4b79
commit
5575bda929
1 changed files with 7 additions and 2 deletions
|
@ -29,8 +29,13 @@ var addOrcidIdToPersonUtils = {
|
||||||
var orcidBase = "http://orcid.org/";
|
var orcidBase = "http://orcid.org/";
|
||||||
var orcidIdVal = "";
|
var orcidIdVal = "";
|
||||||
if ( this.orcidIdDisplay.val().length > 0 ) {
|
if ( this.orcidIdDisplay.val().length > 0 ) {
|
||||||
orcidIdVal = orcidBase + this.orcidIdDisplay.val();
|
if ( this.orcidIdDisplay.val().substring(0,17) == "http://orcid.org/" ) {
|
||||||
this.orcidId.val(orcidIdVal);
|
orcidIdVal = this.orcidIdDisplay.val();
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
orcidIdVal = orcidBase + this.orcidIdDisplay.val();
|
||||||
|
this.orcidId.val(orcidIdVal);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue