VIVO-440 orcid id change

This commit is contained in:
tworrall 2013-10-31 14:42:33 -04:00
parent c04a7aac76
commit f614f6cee4
2 changed files with 6 additions and 4 deletions

View file

@ -58,7 +58,8 @@
<p>
<label for="orcidId">ORCID iD ${requiredHint}</label>
<input size="35" type="text" id="orcidId" name="orcidId" value="${orcidIdValue}" />
<input size="35" type="text" id="orcidIdDisplay" name="orcidIdDisplay" value="${orcidIdValue}" />
<input type="hidden" id="orcidId" name="orcidId" value="" />
</p>
<input type="hidden" id="editKey" name="editKey" value="${editKey}"/>

View file

@ -12,6 +12,7 @@ var addOrcidIdToPersonUtils = {
this.form = $('#personHasOrcidId');
this.orcidId = $('#orcidId');
this.orcidIdDisplay = $('#orcidIdDisplay');
},
@ -25,10 +26,10 @@ var addOrcidIdToPersonUtils = {
buildOrcidIdURL: function() {
var orcidBase = "http://www.orcid.org/";
var orcidBase = "http://orcid.org/";
var orcidIdVal = "";
if ( this.orcidId.val().length > 0 ) {
orcidIdVal = orcidBase + this.orcidId.val();
if ( this.orcidIdDisplay.val().length > 0 ) {
orcidIdVal = orcidBase + this.orcidIdDisplay.val();
this.orcidId.val(orcidIdVal);
}
},