From 45debe8fc146fe6f62c1ba07b31c53b18f58e001 Mon Sep 17 00:00:00 2001 From: "Christian P. MOMON" Date: Thu, 22 Oct 2020 23:12:19 +0200 Subject: [PATCH] Improved guide wording. --- .../statoolinfos/core/Organization.java | 20 ++++++++----------- .../htmlize/OrganizationPage.java | 8 ++++---- 2 files changed, 12 insertions(+), 16 deletions(-) diff --git a/src/fr/devinsy/statoolinfos/core/Organization.java b/src/fr/devinsy/statoolinfos/core/Organization.java index 70eb328..d6974bb 100644 --- a/src/fr/devinsy/statoolinfos/core/Organization.java +++ b/src/fr/devinsy/statoolinfos/core/Organization.java @@ -344,16 +344,15 @@ public class Organization extends PathPropertyList } /** - * Gets the technical doc website. + * Gets the technical guide website. * - * @return the technical doc website + * @return the technical guide website */ - public String getTechnicalDocWebsite() + public String getTechnicalGuideWebsite() { String result; - result = get("organization.documentation.technical", "organization.documentationtechnical.url", "organization.technical", "organization.technical.url", "service.guide.technical", - "organization.guide.technical.url"); + result = get("service.guide.technical", "organization.guide.technical.url"); // return result; @@ -390,18 +389,15 @@ public class Organization extends PathPropertyList } /** - * Gets the user doc website. + * Gets the user guide website. * - * @return the user doc website + * @return the user guide website */ - public String getUserDocWebsite() + public String getUserGuideWebsite() { String result; - result = get("organization.documentation", "organization.documentation.url", "organization.documentation.user", "organization.documentation.user.url", "service.documentation.tutorial", - "organization.documentation.tutorial.url", - "organization.guide.user", - "organization.guide.user.url"); + result = get("organization.guide.user", "organization.guide.user.url"); // return result; diff --git a/src/fr/devinsy/statoolinfos/htmlize/OrganizationPage.java b/src/fr/devinsy/statoolinfos/htmlize/OrganizationPage.java index 412ffa0..f4d651a 100644 --- a/src/fr/devinsy/statoolinfos/htmlize/OrganizationPage.java +++ b/src/fr/devinsy/statoolinfos/htmlize/OrganizationPage.java @@ -89,15 +89,15 @@ public class OrganizationPage data.setAttribute("emailLinkImg", "class", ""); data.getIdData("emailLinkImg").getAttribute("class").setMode(DisplayMode.REPLACE); } - if (StringUtils.isNotBlank(organization.getUserDocWebsite())) + if (StringUtils.isNotBlank(organization.getUserGuideWebsite())) { - data.setAttribute("userDocLink", "href", organization.getUserDocWebsite()); + data.setAttribute("userDocLink", "href", organization.getUserGuideWebsite()); data.setAttribute("userDocLinkImg", "class", ""); data.getIdData("userDocLinkImg").getAttribute("class").setMode(DisplayMode.REPLACE); } - if (StringUtils.isNotBlank(organization.getTechnicalDocWebsite())) + if (StringUtils.isNotBlank(organization.getTechnicalGuideWebsite())) { - data.setAttribute("technicalDocLink", "href", organization.getTechnicalDocWebsite()); + data.setAttribute("technicalDocLink", "href", organization.getTechnicalGuideWebsite()); data.setAttribute("technicalDocLinkImg", "class", ""); data.getIdData("technicalDocLinkImg").getAttribute("class").setMode(DisplayMode.REPLACE); }