VIVO-737: allow for entry of full orcid id/url

This commit is contained in:
tworrall 2014-05-23 12:23:09 -04:00
parent 54ca2a4b79
commit 5575bda929

View file

@ -29,8 +29,13 @@ var addOrcidIdToPersonUtils = {
var orcidBase = "http://orcid.org/";
var orcidIdVal = "";
if ( this.orcidIdDisplay.val().length > 0 ) {
orcidIdVal = orcidBase + this.orcidIdDisplay.val();
this.orcidId.val(orcidIdVal);
if ( this.orcidIdDisplay.val().substring(0,17) == "http://orcid.org/" ) {
orcidIdVal = this.orcidIdDisplay.val();
}
else {
orcidIdVal = orcidBase + this.orcidIdDisplay.val();
this.orcidId.val(orcidIdVal);
}
}
},