diff --git a/src/main/java/edu/harvard/iq/dataverse/SettingsWrapper.java b/src/main/java/edu/harvard/iq/dataverse/SettingsWrapper.java
index f1cb22887ca..122a076720a 100644
--- a/src/main/java/edu/harvard/iq/dataverse/SettingsWrapper.java
+++ b/src/main/java/edu/harvard/iq/dataverse/SettingsWrapper.java
@@ -241,5 +241,24 @@ private void initLocaleSettings() {
// do we want to know? - probably not
}
}
+
+ public boolean isMakeDataCountEnabled(){
+ String logPath = systemConfig.getMDCLogPath();
+ if (logPath != null) {
+ return true;
+ } else {
+ return false;
+ }
+ }
+
+ public boolean isDoiInstallation() {
+ String protocol = getValueForKey(SettingsServiceBean.Key.Protocol);
+ if ("doi".equals(protocol)) {
+ return true;
+ } else {
+ return false;
+ }
+ }
+
}
diff --git a/src/main/webapp/dataset.xhtml b/src/main/webapp/dataset.xhtml
index 605858207cf..7d4e8cbad1d 100644
--- a/src/main/webapp/dataset.xhtml
+++ b/src/main/webapp/dataset.xhtml
@@ -380,11 +380,11 @@
#{bundle['metrics.dataset.title']}
+ data-original-title="#{settingsWrapper.makeDataCountEnabled ? bundle['metrics.dataset.tip.makedatacount'] : bundle['metrics.dataset.tip.default']}">
-
+
@@ -392,7 +392,7 @@
data-toggle="tooltip" data-placement="auto top" data-original-title="#{bundle['metrics.dataset.downloads.default.tip']}">
-
+
@@ -400,7 +400,7 @@
data-toggle="tooltip" data-placement="auto top" data-original-title="#{bundle['metrics.dataset.views.tip']}">
-
+
@@ -408,7 +408,7 @@
data-toggle="tooltip" data-placement="auto top" data-original-title="#{bundle['metrics.dataset.downloads.makedatacount.tip']}">
-
+
diff --git a/src/main/webapp/file.xhtml b/src/main/webapp/file.xhtml
index 0406249f59a..0ae5ae33fb0 100644
--- a/src/main/webapp/file.xhtml
+++ b/src/main/webapp/file.xhtml
@@ -319,11 +319,11 @@
#{bundle['metrics.file.title']}
+ data-original-title="#{settingsWrapper.makeDataCountEnabled ? bundle['metrics.file.tip.makedatacount'] : bundle['metrics.file.tip.default']}">
-
+
@@ -331,7 +331,7 @@
data-toggle="tooltip" data-placement="auto top" data-original-title="#{bundle['metrics.file.downloads.tip']}">
-