diff --git a/webapp/src/main/webapp/templates/freemarker/edit/forms/addEditorRoleToPerson.ftl b/webapp/src/main/webapp/templates/freemarker/edit/forms/addEditorRoleToPerson.ftl index 0f519adc4..bf5b9f1e9 100644 --- a/webapp/src/main/webapp/templates/freemarker/edit/forms/addEditorRoleToPerson.ftl +++ b/webapp/src/main/webapp/templates/freemarker/edit/forms/addEditorRoleToPerson.ftl @@ -18,9 +18,11 @@ roleExamples--> <#--Variable assignments for Add Clinical Role To Person--> +<#setting url_escaping_charset="UTF-8"> +<#setting output_encoding="UTF-8"> <#assign roleDescriptor = "${i18n().collection_series_editor_role}" /> <#assign typeSelectorLabel = "${i18n().editor_role_in}" /> -<#assign genericLabel = "Collection or Series" /> +<#assign genericLabel = "${i18n().collection_or_series}" /> <#assign acTypes = "{activity: 'http://purl.org/ontology/bibo/Collection'}" /> diff --git a/webapp/src/main/webapp/templates/freemarker/edit/forms/addRoleToPersonTwoStage.ftl b/webapp/src/main/webapp/templates/freemarker/edit/forms/addRoleToPersonTwoStage.ftl index fa2ea79a4..ee4cd83e2 100644 --- a/webapp/src/main/webapp/templates/freemarker/edit/forms/addRoleToPersonTwoStage.ftl +++ b/webapp/src/main/webapp/templates/freemarker/edit/forms/addRoleToPersonTwoStage.ftl @@ -126,12 +126,12 @@ Set this flag on the input acUriReceiver where you would like this behavior to o <@lvf.unsupportedBrowser urls.base /> -
+
-
+

- + <#--Code below allows for selection of first 'select one' option if no activity type selected--> <#if activityTypeValue?has_content> <#assign selectedActivityType = activityTypeValue /> @@ -160,7 +160,7 @@ Set this flag on the input acUriReceiver where you would like this behavior to o <#--

-->

- +

@@ -170,7 +170,7 @@ Set this flag on the input acUriReceiver where you would like this behavior to o

- + (${i18n().verify_match_capitalized} ${i18n().or} ${i18n().change_selection}) @@ -181,7 +181,7 @@ Set this flag on the input acUriReceiver where you would like this behavior to o

<#if showRoleLabelField = true> -

+

@@ -190,18 +190,18 @@ Set this flag on the input acUriReceiver where you would like this behavior to o <#--Generated html is a map with key name mapping to html string--> <#if htmlForElements?keys?seq_contains("startField")> - ${htmlForElements["startField"]} ${yearHint} + <@lvf.printYearField "startField" /> ${yearHint} <#else>

${i18n().years_participating}

<#if htmlForElements?keys?seq_contains("startField")> - - ${htmlForElements["startField"]} ${yearHint} + + <@lvf.printYearField "startField" /> ${yearHint}

<#if htmlForElements?keys?seq_contains("endField")> - - ${htmlForElements["endField"]} ${yearHint} + + <@lvf.printYearField "endField" /> ${yearHint} <#--
--> @@ -222,7 +222,7 @@ Set this flag on the input acUriReceiver where you would like this behavior to o acTypes: ${acTypes!}, <#if acMultipleTypes??>acMultipleTypes: ${acMultipleTypes!}, // used in repair mode: button text and org name label - defaultTypeName: <#if genericLabel??>'${genericLabel}'<#else>'activity', + defaultTypeName: <#if genericLabel??>'${genericLabel?js_string}'<#else>'activity', baseHref: '${urls.base}/individual?uri=', blankSentinel: '${blankSentinel}', flagClearLabelForExisting: '${flagClearLabelForExisting}' diff --git a/webapp/src/main/webapp/templates/freemarker/edit/forms/defaultAddMissingIndividualForm.ftl b/webapp/src/main/webapp/templates/freemarker/edit/forms/defaultAddMissingIndividualForm.ftl index 429f1e7bc..61e80d600 100644 --- a/webapp/src/main/webapp/templates/freemarker/edit/forms/defaultAddMissingIndividualForm.ftl +++ b/webapp/src/main/webapp/templates/freemarker/edit/forms/defaultAddMissingIndividualForm.ftl @@ -3,7 +3,7 @@ <#import "lib-vivo-form.ftl" as lvf> <#assign formTitle> - "${editConfiguration.propertyPublicDomainTitle}" entry for ${editConfiguration.subjectName} +${i18n().new_entry_for(editConfiguration.propertyPublicDomainTitle, editConfiguration.subjectName)} <#if editConfiguration.objectUri?has_content> <#assign formTitle>${i18n().edit_capitalized} ${formTitle} diff --git a/webapp/src/main/webapp/templates/freemarker/lib/lib-vivo-form.ftl b/webapp/src/main/webapp/templates/freemarker/lib/lib-vivo-form.ftl index 368ceb7dc..4a5a975c9 100644 --- a/webapp/src/main/webapp/templates/freemarker/lib/lib-vivo-form.ftl +++ b/webapp/src/main/webapp/templates/freemarker/lib/lib-vivo-form.ftl @@ -107,3 +107,10 @@ return - returns empty string if no value found--> <#return false> + +<#macro printYearField fieldName required=false> +
+ required /> +
+ +