Skip to content

Commit

Permalink
#3758 remove debug code
Browse files Browse the repository at this point in the history
  • Loading branch information
sekmiller committed Oct 28, 2019
1 parent 16d2a5d commit 47d0924
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
3 changes: 0 additions & 3 deletions src/main/java/edu/harvard/iq/dataverse/FilePage.java
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,6 @@ public int getActiveTabIndex() {
}

public void setActiveTabIndex(int activeTabIndex) {
System.out.print("setActiveTabIndex: " + activeTabIndex);
this.activeTabIndex = activeTabIndex;
}

Expand Down Expand Up @@ -938,7 +937,6 @@ public ExternalTool getSelectedTool() {
}

public void setSelectedTool(ExternalTool selectedTool) {
System.out.print(selectedTool.getDisplayName());
this.selectedTool = selectedTool;
}

Expand All @@ -953,7 +951,6 @@ public String preview(ExternalTool externalTool) {
}
ExternalToolHandler externalToolHandler = new ExternalToolHandler(externalTool, file, apiToken, file.getFileMetadata(), session.getLocaleCode());
String toolUrl = externalToolHandler.getToolUrlForPreviewMode();
System.out.print(toolUrl);
return toolUrl;
}

Expand Down
3 changes: 1 addition & 2 deletions src/main/webapp/file.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -425,9 +425,8 @@
</div>

<ui:fragment rendered="#{FilePage.toolsWithPreviews.size()> 0 and fileDownloadHelper.canDownloadFile(FilePage.fileMetadata)}" id="previewPresentation">

<h:outputText value="#{FilePage.selectedTool.displayName}" />
<iframe role="presentation" title="External File Preview Tool" height="500" width="100%" src="#{FilePage.preview(FilePage.selectedTool)}"></iframe>

</ui:fragment>


Expand Down

0 comments on commit 47d0924

Please sign in to comment.