From bcf37d165c669848e96ba42cfdcd8ceb9a30318e Mon Sep 17 00:00:00 2001 From: "konstantina.galouni" Date: Fri, 4 Jun 2021 10:07:17 +0000 Subject: [PATCH] [Trunk | Admin Tools Library]: DivHelpContentService.java: Updated default footer div helptext for new communities and added default footer div helptext for new monitor dashboards and other portals. --- .../services/DivHelpContentService.java | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/main/java/eu/dnetlib/uoaadmintoolslibrary/services/DivHelpContentService.java b/src/main/java/eu/dnetlib/uoaadmintoolslibrary/services/DivHelpContentService.java index 94f7d77..5123825 100644 --- a/src/main/java/eu/dnetlib/uoaadmintoolslibrary/services/DivHelpContentService.java +++ b/src/main/java/eu/dnetlib/uoaadmintoolslibrary/services/DivHelpContentService.java @@ -193,7 +193,9 @@ public class DivHelpContentService { String link_result_bulk_content = "
  Information: Upload a csv file containing a list of DOIs. For each DOI found in the file, metadata will be fetched from CrossRef or Datacite and will be added to your selected research results.
CSV format:
  • The format of CSV file should be "DOI","ACCESS_MODE","DATE".
  • The value "DOI" is required
  • Access mode column should have values: "OPEN","CLOSED" or "EMBARGO".
  • Date column valid format is YYYY-MM-DD and is required when access mode has value EMBARGO.
  • In case access mode is not available default value is "OPEN".
"; String link_metadata_content = "
  Information: Manage access mode & type of selected research results. For OpenAIRE this functionality isn't available.
"; - String footer_content = "

OpenAIRE has received funding from the European Union's Horizon 2020 research and innovation programme under grant agreements No. 777541, 731011 and 101017452

"; + String portal_footer_content = "

OpenAIRE has received funding from the European Union's Horizon 2020 research and innovation programme under grant agreements No. 777541 and 101017452

"; + String monitor_dashboard_footer_content = "

This OpenAIRE MONITOR dashboard is part of a project that has received funding from the European Union's Horizon 2020 research and innovation programme under grant agreements No. 777541 and 101017452

"; + String community_footer_content = "

This OpenAIRE gateway is part of a project that has received funding from the European Union's Horizon 2020 research and innovation programme under grant agreements No. 777541, 731011 and 101017452

"; List divIds = divIdService.getDivIdsByPortalType(portalType); @@ -219,7 +221,13 @@ public class DivHelpContentService { } else if (div.getName().equals("link-metadata")) { this.insertOrUpdateDivHelpContent(new DivHelpContent(div.getId(), portalId, link_metadata_content, false)); } else if (div.getName().equals("footer")) { - this.insertOrUpdateDivHelpContent(new DivHelpContent(div.getId(), portalId, footer_content, true)); + if(portalType.equals("community")) { + this.insertOrUpdateDivHelpContent(new DivHelpContent(div.getId(), portalId, community_footer_content, true)); + } else if(portalType.equals("funder") || portalType.equals("ri") || portalType.equals("project") || portalType.equals("organization")) { + this.insertOrUpdateDivHelpContent(new DivHelpContent(div.getId(), portalId, monitor_dashboard_footer_content, true)); + } else { + this.insertOrUpdateDivHelpContent(new DivHelpContent(div.getId(), portalId, portal_footer_content, true)); + } } } }