From 57934c5aecac42a67a058f45c1ec725ffc1994f6 Mon Sep 17 00:00:00 2001 From: briancaruso Date: Wed, 9 Nov 2011 23:24:22 +0000 Subject: [PATCH] Many changes to ProcessRdfForm.java --- .../forms/personHasEducationalTraining.ftl | 92 +++++---- .../PersonHasEducationalTraining.java | 193 +++++++++--------- .../generators/VivoBaseGenerator.java | 2 +- 3 files changed, 157 insertions(+), 130 deletions(-) diff --git a/productMods/templates/freemarker/edit/forms/personHasEducationalTraining.ftl b/productMods/templates/freemarker/edit/forms/personHasEducationalTraining.ftl index 7e782470..9f97adda 100644 --- a/productMods/templates/freemarker/edit/forms/personHasEducationalTraining.ftl +++ b/productMods/templates/freemarker/edit/forms/personHasEducationalTraining.ftl @@ -6,7 +6,13 @@ <#import "lib-vivo-form.ftl" as lvf> -<#if editConfig.object?has_content> +<#assign subjectName="Fake name hardcoded in FTL"/> +<#assign requiredHint="*"/> +<#assign yearHint="Do it his year!!!"/> +<#assign roleActivityUri="mysteryRoleActivityURI"/> +<#assign orgLabel="mysteryOrgLabel"/> + +<#if editConfiguration.object?has_content> <#assign editMode = "edit"> <#else> <#assign editMode = "add"> @@ -25,14 +31,17 @@ <#assign requiredHint = " *" /> <#assign yearHint = "(YYYY)" /> + +<#-- <#if editMode = “ERROR”>
This form is unable to handle the editing of this position because it is associated with multiple Position individuals.
<#else> +-->

${titleVerb} educational training entry for ${subjectName}

- +<#-- <#if errorTypeFieldIsEmpty??> <#assign errorMessage = "Select a type of organization." /> @@ -40,6 +49,7 @@ <#if errorNameFieldIsEmpty??> <#assign errorMessage = "Enter a name for the organization." /> +--> <#if errorMessage?has_content>