VIVO-440 orcid id change
This commit is contained in:
parent
c04a7aac76
commit
f614f6cee4
2 changed files with 6 additions and 4 deletions
|
@ -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}"/>
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue