Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 0 additions & 11 deletions src/main/java/edu/harvard/iq/dataverse/DataverseServiceBean.java
Original file line number Diff line number Diff line change
Expand Up @@ -221,17 +221,6 @@ public DataverseFacet findFacet(Long id) {

public List<DataverseFacet> findAllDataverseFacets() {
return em.createQuery("select object(o) from DataverseFacet as o order by o.display").getResultList();
}

private String appVersionString;

/**
* @todo Remove this method, and make all the (a couple of) xhtml pages
* call the SystemConfig.getVersion method directly
* (I don't have time to do it now -- L.A. 4.0.2)
*/
public String getApplicationVersion() {
return systemConfig.getVersion(true);
}

public String getDataverseLogoThumbnailAsBase64(Dataverse dataverse, User user) {
Expand Down
4 changes: 0 additions & 4 deletions src/main/java/edu/harvard/iq/dataverse/util/SystemConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,6 @@ public class SystemConfig {
*/
private static final int defaultZipUploadFilesLimit = 1000;

/**
* @todo Reconcile with getApplicationVersion on DataverseServiceBean.java
* which we'd like to move to this class.
*/
private static String appVersionString = null;
private static String buildNumberString = null;

Expand Down
2 changes: 1 addition & 1 deletion src/main/webapp/dataverse_template.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
<div class="poweredbylogo">
<span>#{bundle['footer.poweredby']}</span>
<a href="http://dataverse.org/" title="#{bundle['footer.dataverseProject']}" target="_blank"><img src="/resources/images/dataverseproject_logo.jpg" alt="#{bundle['footer.dataverseProject']}" /></a>
<span class="version">v. #{dataverseServiceBean.applicationVersion}</span>
<span class="version">v. #{systemConfig.getVersion(true)}</span>
</div>
</div>
</div>
Expand Down
4 changes: 2 additions & 2 deletions src/main/webapp/passwordreset.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,8 @@
<div class="row" jsf:rendered="#{PasswordResetPage.isAccountUpgrade()}">
<div class="col-sm-12">
<h:outputFormat styleClass="h2 text-info show" value="#{bundle['user.updatePassword.welcome']}">
<f:param value="#{dataverseServiceBean.applicationVersion}"/>
<f:param value="#{PasswordResetPage.user.displayInfo.title}"/>
<f:param value="#{systemConfig.getVersion(true)}"/>
<f:param value="#{PasswordResetPage.user.displayInfo.title}"/>
</h:outputFormat>
<p class="help-block"><span class="text-danger"><span class="glyphicon glyphicon-warning-sign"/> #{bundle['user.updatePassword.warning']}</span></p>
</div>
Expand Down