diff --git a/src/main/java/org/kpmp/repositoryDataset/RepositoryDatasetService.java b/src/main/java/org/kpmp/repositoryDataset/RepositoryDatasetService.java index 84facab..ae7cf17 100644 --- a/src/main/java/org/kpmp/repositoryDataset/RepositoryDatasetService.java +++ b/src/main/java/org/kpmp/repositoryDataset/RepositoryDatasetService.java @@ -26,6 +26,8 @@ public class RepositoryDatasetService { @Value("${enterprise-search.engine.name}") private String enterpriseSearchEngineName; private RepositoryFileDatasetRepository fileRepo; + @Value("${recently-released-date}") + private String recentlyReleasedDate; private RestTemplate restTemplate; private Environment env; @@ -82,7 +84,7 @@ public List getRepositoryDataset() throws Exception { RepositoryDatasetDisplay displayFile = new RepositoryDatasetDisplay(repositoryDataset); if (Double.compare(repositoryDataset.getReleaseVersion(), maxReleaseVersion) == 0) { - displayFile.setReleaseVersion("Recently Released"); + displayFile.setReleaseVersion("Recently Released - " + recentlyReleasedDate); } else { displayFile.setReleaseVersion(null); } diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index e4b135b..451a2e4 100755 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -8,4 +8,5 @@ spring.jpa.show_sql=false server.port=3030 spring.main.allow-bean-definition-overriding=true enterprise-search.host=http://enterprisesearch:3002 -enterprise-search.engine.name=atlas-repository \ No newline at end of file +enterprise-search.engine.name=atlas-repository +recently-released-date=${RECENTLY_RELEASED_DATE} \ No newline at end of file