+ <#--Checking if any required fields are empty-->
+ <#if lvf.submissionErrorExists(editSubmission, "orcidId")>
+ ${i18n().required_fields}: ORCID iD
+ #if>
+
+
+#if>
+
+<@lvf.unsupportedBrowser urls.base />
+
+
+
+
+
+
+
+${stylesheets.add('')}
+${stylesheets.add('')}
+${stylesheets.add('')}
+
+${scripts.add('',
+ '',
+ '',
+ '',
+ '')}
+
+
diff --git a/productMods/templates/freemarker/edit/forms/js/addOrcidIdToPersonUtils.js b/productMods/templates/freemarker/edit/forms/js/addOrcidIdToPersonUtils.js
new file mode 100644
index 00000000..5a9cffad
--- /dev/null
+++ b/productMods/templates/freemarker/edit/forms/js/addOrcidIdToPersonUtils.js
@@ -0,0 +1,39 @@
+/* $This file is distributed under the terms of the license in /doc/license.txt$ */
+
+
+var addOrcidIdToPersonUtils = {
+
+ onLoad: function() {
+ this.initObjectReferences();
+ this.bindEventListeners();
+ },
+
+ initObjectReferences: function() {
+
+ this.form = $('#personHasOrcidId');
+ this.orcidId = $('#orcidId');
+
+ },
+
+ bindEventListeners: function() {
+
+ this.form.submit(function() {
+ addOrcidIdToPersonUtils.buildOrcidIdURL();
+ });
+
+ },
+
+ buildOrcidIdURL: function() {
+
+ var orcidBase = "http://www.orcid.org/";
+ var orcidIdVal = "";
+ if ( this.orcidId.val().length > 0 ) {
+ orcidIdVal = orcidBase + this.orcidId.val();
+ this.orcidId.val(orcidIdVal);
+ }
+ },
+
+}
+$(document).ready(function() {
+ addOrcidIdToPersonUtils.onLoad();
+});
diff --git a/productMods/templates/freemarker/edit/forms/js/awardReceiptUtils.js b/productMods/templates/freemarker/edit/forms/js/awardReceiptUtils.js
index 8f10a968..f8183a18 100644
--- a/productMods/templates/freemarker/edit/forms/js/awardReceiptUtils.js
+++ b/productMods/templates/freemarker/edit/forms/js/awardReceiptUtils.js
@@ -105,7 +105,6 @@ var awardReceiptUtils = {
rdfsLabel += " (" + this.subjectName + ")";
}
this.recLabel.val(rdfsLabel);
- alert(this.recLabel.val());
},
setYearAwardedValue: function() {
diff --git a/productMods/templates/freemarker/edit/forms/personHasEducationalTraining.ftl b/productMods/templates/freemarker/edit/forms/personHasEducationalTraining.ftl
index d7ab5d20..51402c88 100644
--- a/productMods/templates/freemarker/edit/forms/personHasEducationalTraining.ftl
+++ b/productMods/templates/freemarker/edit/forms/personHasEducationalTraining.ftl
@@ -37,9 +37,10 @@ Set this flag on the input acUriReceiver where you would like this behavior to o
<#assign awardedDegreeLabelValue = lvf.getFormFieldValue(editSubmission, editConfiguration, "awardedDegreeLabel") />
<#assign existingOrgValue = lvf.getFormFieldValue(editSubmission, editConfiguration, "existingOrg") />
<#assign trainingTypeValue = lvf.getFormFieldValue(editSubmission, editConfiguration, "trainingType")/>
-<#assign existingADLabelValue = lvf.getFormFieldValue(editSubmission, editConfiguration, "existingAwardedDegreeLabel") />
-
-<#--If edit submission exists, then retrieve validation errors if they exist-->
+<#--
+ <#assign existingADLabelValue = lvf.getFormFieldValue(editSubmission, editConfiguration, "existingAwardedDegreeLabel") />
+-->
+<#-- If edit submission exists, then retrieve validation errors if they exist-->
<#if editSubmission?has_content && editSubmission.submissionExists = true && editSubmission.validationErrors?has_content>
<#assign submissionErrors = editSubmission.validationErrors/>
#if>
@@ -164,12 +165,15 @@ Set this flag on the input acUriReceiver where you would like this behavior to o
#list>
+<#--
<#if editMode == "edit" || editMode == "repair">
<#else>
#if>
+-->
+