From 8579d6030d98750f2dcda856d7644eda9af86b5b Mon Sep 17 00:00:00 2001 From: "francesco.mangiacrapa" Date: Fri, 19 Apr 2024 17:11:34 +0200 Subject: [PATCH] updted HTML_PAGE --- .../resolver/geoportal/exporter/HTML_Page.java | 8 +++++++- .../datatransfer/resolver/services/GeoportalExporter.java | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/gcube/datatransfer/resolver/geoportal/exporter/HTML_Page.java b/src/main/java/org/gcube/datatransfer/resolver/geoportal/exporter/HTML_Page.java index 7e61d84..c681435 100644 --- a/src/main/java/org/gcube/datatransfer/resolver/geoportal/exporter/HTML_Page.java +++ b/src/main/java/org/gcube/datatransfer/resolver/geoportal/exporter/HTML_Page.java @@ -35,6 +35,12 @@ public class HTML_Page { + " text-align: center;\n" + " }\n" + "\n" + + " #title-geo {\n" + + " font-weight: bold;\n" + + " color: black;\n" + + " font-size: 26px;\n" + + " }\n" + + "\n" + " #message {\n" + " color: gray;\n" + " font-size: 24px;\n" @@ -66,7 +72,7 @@ public class HTML_Page { newHTML += "\"D4Science
"; newHTML += "
"; - newHTML += "\"D4GNA

"; + newHTML += "

Geoportal


"; newHTML += "

" + action + "

"; if (waiting) { diff --git a/src/main/java/org/gcube/datatransfer/resolver/services/GeoportalExporter.java b/src/main/java/org/gcube/datatransfer/resolver/services/GeoportalExporter.java index 17c7815..9727b48 100644 --- a/src/main/java/org/gcube/datatransfer/resolver/services/GeoportalExporter.java +++ b/src/main/java/org/gcube/datatransfer/resolver/services/GeoportalExporter.java @@ -112,7 +112,7 @@ public class GeoportalExporter { LOG.info("Serving request as User-Agent {}", userAgentName); final String pollingCode = ucdID + "_" + projectID + "_" + System.currentTimeMillis(); String serviceViewPDF_URL = String.format("%s/%s/view/%s", Util.getServerURL(req), - req.getContextPath(), pollingCode); + "geoportal", pollingCode); String entity = HTML_Page.entityHTMLMessage("Exporting as PDF...", "The project with id: " + projectID, true, serviceViewPDF_URL);