diff --git a/src/main/java/org/gcube/portlets/widgets/gdvw/client/project/SectionViewer.java b/src/main/java/org/gcube/portlets/widgets/gdvw/client/project/SectionViewer.java index de0f709..8e422ec 100644 --- a/src/main/java/org/gcube/portlets/widgets/gdvw/client/project/SectionViewer.java +++ b/src/main/java/org/gcube/portlets/widgets/gdvw/client/project/SectionViewer.java @@ -77,7 +77,7 @@ public class SectionViewer extends Composite { boolean displayAsMapOfLayers = false; for (SubDocumentView subDocumentView : subDocuments) { if (subDocumentView.getListLayers() != null && subDocumentView.getListLayers().size() > 0) { - GWT.log("Section with layers: " + subDocumentView.getListImages()); + GWT.log("Section with layers: " + subDocumentView.getListLayers()); displayAsMapOfLayers = false; break; } @@ -117,6 +117,7 @@ public class SectionViewer extends Composite { } } else { + //PASSING ONLY FROM HERE GWT.log("displaying default the: " + sectionView); for (SubDocumentView subDocumentView : subDocuments) { String table = GeoportalDataViewerWidgetConstants.jsonToTableHTML(subDocumentView.getMetadataAsJSON()); @@ -128,6 +129,13 @@ public class SectionViewer extends Composite { showLinkToDownloadWsContent(fileset.getGcubeProfileFieldName(), fileset.getListPayload()); } } + + files = subDocumentView.getListImages(); + if (files != null) { + for (FilesetDV fileset : files) { + showLinkToDownloadWsContent(fileset.getGcubeProfileFieldName(), fileset.getListPayload()); + } + } } } } catch (Exception e) {