From 0bab502eb5c8aac24bfa59d658315544a7def799 Mon Sep 17 00:00:00 2001
From: alessandroGalasso <45561775+alessandroGalasso@users.noreply.github.com>
Date: Thu, 8 Aug 2019 18:33:59 +0200
Subject: [PATCH] Vivo 1630 Year field keeps the same label even when language
is changed (#98)
* [VIVO-1630] Year field keeps the same label even when language is changed
Resolves: https://jira.duraspace.org/browse/VIVO-1630
---
webapp/src/main/webapp/i18n/all.properties | 4 ++++
.../templates/freemarker/edit/dateTimeWithPrecision.ftl | 3 ++-
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/webapp/src/main/webapp/i18n/all.properties b/webapp/src/main/webapp/i18n/all.properties
index 130a0534e..1909545ad 100644
--- a/webapp/src/main/webapp/i18n/all.properties
+++ b/webapp/src/main/webapp/i18n/all.properties
@@ -922,3 +922,7 @@ minimum_hour=Invalid entry. Please specify at least an Hour.
year_month=Invalid entry. Please enter a Year and Month.
decimal_only=Invalid entry. A decimal point is allowed, but thousands-separators are not.
whole_number=Invalid entry. Enter a whole number with no decimal point or thousands-separators.
+
+
+label.dateTimeWithPrecision.year_capitalized = Year
+
diff --git a/webapp/src/main/webapp/templates/freemarker/edit/dateTimeWithPrecision.ftl b/webapp/src/main/webapp/templates/freemarker/edit/dateTimeWithPrecision.ftl
index 62de6f4df..5f050e0b9 100644
--- a/webapp/src/main/webapp/templates/freemarker/edit/dateTimeWithPrecision.ftl
+++ b/webapp/src/main/webapp/templates/freemarker/edit/dateTimeWithPrecision.ftl
@@ -72,7 +72,8 @@ precisionConstants.second -- URI for precision
<#if precLevel gte 1>
<#-- Only text input field in the mix. We should have some validation to ensure it's a valid year (4 digits, integer, etc) -->
-
+
required #if>/>
#if>