From 6a1fe04ec76661a505eec9dc5c5d9f1919acdb88 Mon Sep 17 00:00:00 2001 From: "massimiliano.assante" Date: Tue, 4 Oct 2016 10:59:19 +0000 Subject: [PATCH] fixed bug not displaying images git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/portlets/user/my-vres@132554 82a268e6-3cf1-43bd-a215-b396298e98cf --- .../portlet/user/my_vres/client/widgets/ClickableVRE.java | 4 ++-- .../portlet/user/my_vres/server/MyVREsServiceImpl.java | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/main/java/org/gcube/portlet/user/my_vres/client/widgets/ClickableVRE.java b/src/main/java/org/gcube/portlet/user/my_vres/client/widgets/ClickableVRE.java index 9a2b3ce..392f420 100644 --- a/src/main/java/org/gcube/portlet/user/my_vres/client/widgets/ClickableVRE.java +++ b/src/main/java/org/gcube/portlet/user/my_vres/client/widgets/ClickableVRE.java @@ -39,14 +39,14 @@ public class ClickableVRE extends HTML { if (vre.getName() == null || vre.getName().compareTo("") == 0) { html = "
"; } else { + imageWidth = WIDTH - 12; + imageUrl = vre.getImageURL(); name = (vre.getName().length() > 15) ? vre.getName().substring(0, 13) + ".." : vre.getName(); html = "
" +name + "
"; html += "
" + "" + "
"; } - imageWidth = WIDTH - 12; - imageUrl = vre.getImageURL(); this.setTitle("Enter"); setHTML(html); diff --git a/src/main/java/org/gcube/portlet/user/my_vres/server/MyVREsServiceImpl.java b/src/main/java/org/gcube/portlet/user/my_vres/server/MyVREsServiceImpl.java index 90dd6b7..eb254e4 100644 --- a/src/main/java/org/gcube/portlet/user/my_vres/server/MyVREsServiceImpl.java +++ b/src/main/java/org/gcube/portlet/user/my_vres/server/MyVREsServiceImpl.java @@ -180,7 +180,7 @@ public class MyVREsServiceImpl extends RemoteServiceServlet implements MyVREsSer cool_EM_VRE.setGroupName("/d4science.research-infrastructures.eu/EM/COOLEMVRE"); cool_EM_VRE.setDescription("cool_EM_VRE VRE Description
"+ "This Virtual Research Environment is for cool authors, managers and researchers who produce reports containing cool data."); - cool_EM_VRE.setImageURL("http://portal.d4science.research-infrastructures.eu/vologin/html/gcm-preview.jpg"); + cool_EM_VRE.setImageURL("https://placehold.it/150x150"); cool_EM_VRE.setUserBelonging(UserBelonging.BELONGING); @@ -190,7 +190,7 @@ public class MyVREsServiceImpl extends RemoteServiceServlet implements MyVREsSer cool_EM_VRE2.setDescription("Cool VRE Description
"+ "This Virtual Research Environment is for cool authors, managers and researchers who produce reports containing cool data."); - cool_EM_VRE2.setImageURL("https://newportal.i-marine.d4science.org/image/organization_logo?img_id=13302&t1339191699773"); + cool_EM_VRE2.setImageURL("https://placehold.it/150x150"); cool_EM_VRE2.setUserBelonging(UserBelonging.NOT_BELONGING); VRE cool_EM_VRE3 = new VRE(); @@ -199,7 +199,7 @@ public class MyVREsServiceImpl extends RemoteServiceServlet implements MyVREsSer cool_EM_VRE3.setDescription("Cool VRE Description
"+ "This Virtual Research Environment is for cool authors, managers and researchers who produce reports containing cool data."); - cool_EM_VRE3.setImageURL("https://newportal.i-marine.d4science.org/image/organization_logo?img_id=13302&t1339191699773"); + cool_EM_VRE3.setImageURL("https://placehold.it/150x150"); cool_EM_VRE3.setUserBelonging(UserBelonging.BELONGING); ArrayList toAdd = new ArrayList(); @@ -225,7 +225,7 @@ public class MyVREsServiceImpl extends RemoteServiceServlet implements MyVREsSer vreGCM.setGroupName("/d4science.research-infrastructures.eu/EM/GCM"); vreGCM.setDescription("Global Ocean Chlorophyll Monitoring (GCM) Virtual Research Environment
" + "The phytoplankton plays a similar role to terrestrial green plants in the photosynthetic process and are credited with removing as much carbon dioxide from the atmosphere as their earthbound counterparts, making it important to monitor and model plankton into calculations of future climate change."); - vreGCM.setImageURL("https://newportal.i-marine.d4science.org/image/organization_logo?img_id=13302&t1339191699773"); + vreGCM.setImageURL("https://placehold.it/150x150"); vreGCM.setUserBelonging(UserBelonging.BELONGING); ArrayList toAdd2 = new ArrayList();