diff --git a/productMods/templates/freemarker/edit/forms/addHeadOfRoleToPerson.ftl b/productMods/templates/freemarker/edit/forms/addHeadOfRoleToPerson.ftl index 4f45be87..ad05806c 100644 --- a/productMods/templates/freemarker/edit/forms/addHeadOfRoleToPerson.ftl +++ b/productMods/templates/freemarker/edit/forms/addHeadOfRoleToPerson.ftl @@ -21,6 +21,7 @@ roleExamples--> <#assign roleDescriptor = "leadership" /> <#assign typeSelectorLabel = "organization type" /> <#assign buttonText = "Leadership Role" /> +<#assign roleActivityVClass = "organizations" /> <#--Each of the two stage forms will include the form below--> <#include "addRoleToPersonTwoStage.ftl"> \ No newline at end of file diff --git a/productMods/templates/freemarker/edit/forms/addMemberRoleToPerson.ftl b/productMods/templates/freemarker/edit/forms/addMemberRoleToPerson.ftl index 8c3a474e..1f2d3694 100644 --- a/productMods/templates/freemarker/edit/forms/addMemberRoleToPerson.ftl +++ b/productMods/templates/freemarker/edit/forms/addMemberRoleToPerson.ftl @@ -20,7 +20,7 @@ roleExamples--> <#--Variable assignments for Add Clinical Role To Person--> <#assign roleDescriptor = "membership" /> <#assign typeSelectorLabel = "membership in" /> - +<#assign roleActivityVClass = "organizations" /> <#--Each of the two stage forms will include the form below--> <#include "addRoleToPersonTwoStage.ftl"> \ No newline at end of file diff --git a/productMods/templates/freemarker/edit/forms/addOutreachProviderRoleToPerson.ftl b/productMods/templates/freemarker/edit/forms/addOutreachProviderRoleToPerson.ftl index 57e95aba..c6c3bfe5 100644 --- a/productMods/templates/freemarker/edit/forms/addOutreachProviderRoleToPerson.ftl +++ b/productMods/templates/freemarker/edit/forms/addOutreachProviderRoleToPerson.ftl @@ -20,6 +20,7 @@ roleExamples--> <#--Variable assignments for Add Clinical Role To Person--> <#assign roleDescriptor = "outreach & community service" /> <#assign typeSelectorLabel = "outreach & community service in" /> +<#assign roleActivityVClass = "organizations" /> <#--Each of the two stage forms will include the form below--> diff --git a/productMods/templates/freemarker/edit/forms/addPresenterRoleToPerson.ftl b/productMods/templates/freemarker/edit/forms/addPresenterRoleToPerson.ftl index fa11c84c..38bdf370 100644 --- a/productMods/templates/freemarker/edit/forms/addPresenterRoleToPerson.ftl +++ b/productMods/templates/freemarker/edit/forms/addPresenterRoleToPerson.ftl @@ -101,21 +101,12 @@ Set this flag on the input acUriReceiver where you would like this behavior to o
<#assign presentationTypeOpts = editConfiguration.pageData.presentationType /> - <#if editMode == "edit"> - <#list presentationTypeOpts?keys as key> - <#if presentationTypeValue = key > - <#if presentationTypeOpts[key] == "Other">Presentation<#else>${presentationTypeOpts[key]}#if> - - #if> - #list> - <#else> - #if> + + <#list presentationTypeOpts?keys as key> + + #list> +
+
-<#-- - <#if editMode = "edit"> - - - #if> ---> - <@lvf.acSelection urls.base "roleActivity" "roleActivityUri" "activity" existingRoleActivityValue /> + ++ + + (Verify this match or + change selection) + +
+ + +@@ -191,7 +212,9 @@ acUrl: '${urls.base}/autocomplete?tokenize=true', editMode: '${editMode}', defaultTypeName: 'activity', // used in repair mode, to generate button text and org name field label - baseHref: '${urls.base}/individual?uri=' + baseHref: '${urls.base}/individual?uri=', + blankSentinel: '${blankSentinel}', + flagClearLabelForExisting: '${flagClearLabelForExisting}' }; diff --git a/productMods/templates/freemarker/edit/forms/addServiceProviderRoleToPerson.ftl b/productMods/templates/freemarker/edit/forms/addServiceProviderRoleToPerson.ftl index 2e684db4..8cc3c9ec 100644 --- a/productMods/templates/freemarker/edit/forms/addServiceProviderRoleToPerson.ftl +++ b/productMods/templates/freemarker/edit/forms/addServiceProviderRoleToPerson.ftl @@ -17,10 +17,11 @@ showRoleLAbelField roleExamples--> -<#--Variable assignments for Add Clinical Role To Person--> +<#--Variable assignments for Add Service Provider Role To Person--> <#assign roleDescriptor = "service to the profession" /> <#assign typeSelectorLabel = "service to the profession in" /> <#assign buttonText = "Service Provider Role" /> +<#assign roleActivityVClass = "organizations" /> <#--Each of the two stage forms will include the form below--> diff --git a/productMods/templates/freemarker/edit/forms/js/awardReceiptUtils.js b/productMods/templates/freemarker/edit/forms/js/awardReceiptUtils.js index a783a860..15dd47b0 100644 --- a/productMods/templates/freemarker/edit/forms/js/awardReceiptUtils.js +++ b/productMods/templates/freemarker/edit/forms/js/awardReceiptUtils.js @@ -26,6 +26,7 @@ var awardReceiptUtils = { this.form = $('#personHasAwardOrHonor'); this.recLabel = $('#awardReceiptLabel'); this.award = $('#award'); + this.awardDisplay = $('#awardDisplay'); this.org = $('#org'); this.yearAwarded = $('#yearAwarded-year'); this.displayedYear = $('#yearAwardedDisplay'); @@ -87,7 +88,13 @@ var awardReceiptUtils = { }, buildAwardReceiptLabel: function() { - var rdfsLabel = this.award.val(); + var rdfsLabel = ""; + if ( this.editMode == "edit" ) { + rdfsLabel = this.awardDisplay.val(); + } + else { + rdfsLabel = this.award.val(); + } if ( this.yearAwarded.val().length ) { rdfsLabel += " (" + this.subjectName + ' - ' + this.yearAwarded.val() + ")"; } diff --git a/productMods/templates/freemarker/edit/forms/js/customFormWithAutocomplete.js b/productMods/templates/freemarker/edit/forms/js/customFormWithAutocomplete.js index b5481af9..a406d54e 100644 --- a/productMods/templates/freemarker/edit/forms/js/customFormWithAutocomplete.js +++ b/productMods/templates/freemarker/edit/forms/js/customFormWithAutocomplete.js @@ -227,8 +227,9 @@ var customForm = { // BECAUSE THERE COULD BE MORE THAN ONE AC FIELD. ASSOCIATION IS MADE VIA // THE SPECIAL "acGroupName" ATTRIBUTE WHICH IS SHARED AMONG THE SELECT AND // THE INPUT AND THE AC SELECTION DIV. - customForm.undoAutocompleteSelection($(this)); - + if (customForm.editMode != "edit") { + customForm.undoAutocompleteSelection($(this)); + } // Reinitialize view. If no type selection in a two-step form, go back to type view; // otherwise, reinitialize full view. if (!typeVal.length && customForm.formSteps > 1) { diff --git a/productMods/templates/freemarker/edit/forms/personHasEducationalTraining.ftl b/productMods/templates/freemarker/edit/forms/personHasEducationalTraining.ftl index 4a4b5c1e..ba81878a 100644 --- a/productMods/templates/freemarker/edit/forms/personHasEducationalTraining.ftl +++ b/productMods/templates/freemarker/edit/forms/personHasEducationalTraining.ftl @@ -111,6 +111,7 @@ Set this flag on the input acUriReceiver where you would like this behavior to o
<#assign orgTypeOpts = editConfiguration.pageData.orgType />
+<#--
<#if editMode == "edit">
<#list orgTypeOpts?keys as key>
<#if orgTypeValue = key >
@@ -130,6 +131,17 @@ Set this flag on the input acUriReceiver where you would like this behavior to o
#list>
#if>
+-->
+
<#assign orgTypeOpts = editConfiguration.pageData.orgType />
+<#--
<#if editMode == "edit">
<#list orgTypeOpts?keys as key>
<#if orgTypeValue = key >
@@ -106,13 +107,14 @@ Set this flag on the input acUriReceiver where you would like this behavior to o
#if>
#list>
<#else>
-