From f65a204f4344f59effcc8b05c974171af2f0bf10 Mon Sep 17 00:00:00 2001 From: "miriam.baglioni" Date: Thu, 30 Mar 2023 11:10:34 +0200 Subject: [PATCH] changed from sout to log.debug and adde comment to explain why the use of asCsv methos --- .../openaire/community/CommunityMappingUtils.java | 4 +++- .../src/main/resources/global.properties | 13 ++++--------- 2 files changed, 7 insertions(+), 10 deletions(-) diff --git a/apps/dnet-exporter-api/src/main/java/eu/dnetlib/openaire/community/CommunityMappingUtils.java b/apps/dnet-exporter-api/src/main/java/eu/dnetlib/openaire/community/CommunityMappingUtils.java index 24ce0262..073f3b1c 100644 --- a/apps/dnet-exporter-api/src/main/java/eu/dnetlib/openaire/community/CommunityMappingUtils.java +++ b/apps/dnet-exporter-api/src/main/java/eu/dnetlib/openaire/community/CommunityMappingUtils.java @@ -69,13 +69,15 @@ public class CommunityMappingUtils { p.setSdg(splitValues(asValues(params.get(CPROFILE_SDG)), CSV_DELIMITER)); } if (params.containsKey(CPROFILE_ADVANCED_CONSTRAINT)) { + //In the map the string is the serialization of the json representing the selection criteria so it is a valid json p.setAdvancedConstraint(SelectionCriteria.fromJson(asCsv(params.get(CPROFILE_ADVANCED_CONSTRAINT)))); + } if (params.containsKey(CPROFILE_CREATIONDATE)){ try { p.setCreationDate(org.apache.commons.lang3.time.DateUtils.parseDate(asCsv(params.get(CPROFILE_CREATIONDATE)), pattern)); }catch(ParseException e) { - e.printStackTrace(); + log.debug("Exception on date format: " + e.getMessage()); } } diff --git a/apps/dnet-exporter-api/src/main/resources/global.properties b/apps/dnet-exporter-api/src/main/resources/global.properties index 6b026841..c92fca73 100644 --- a/apps/dnet-exporter-api/src/main/resources/global.properties +++ b/apps/dnet-exporter-api/src/main/resources/global.properties @@ -1,12 +1,7 @@ -#services.is.host = localhost -services.is.host = dev-openaire.d4science.org -#services.is.port = 8280 -services.is.port = 443 -#services.is.protocol = http -services.is.protocol = https -#services.is.context = app -services.is.context = is -#services.is.baseurl = ${services.is.protocol}://${services.is.host}:${services.is.port}/${services.is.context}/services +services.is.host = localhost +services.is.port = 8280 +services.is.protocol = http +services.is.context = app services.is.baseurl = ${services.is.protocol}://${services.is.host}:${services.is.port}/${services.is.context}/services openaire.exporter.isLookupUrl = ${services.is.baseurl}/isLookUp