Enable new visualisations by default
This commit is contained in:
parent
a15c00d0a0
commit
6e173e5815
2 changed files with 7 additions and 6 deletions
|
@ -224,7 +224,8 @@ VitroConnection.DataSource.validationQuery = SELECT 1
|
|||
# The embed code will use a DOI, or PubMed ID, if present
|
||||
|
||||
# Enable AltMetric badges
|
||||
resource.altmetric=enabled
|
||||
# Uncomment and set this to disabled if you don't want AltMetric badges
|
||||
#resource.altmetric=disabled
|
||||
|
||||
# Display the badge to the left or right of the title (default = right)
|
||||
# Options: left, right
|
||||
|
@ -318,9 +319,9 @@ visualization.temporal = enabled
|
|||
# modern browser.
|
||||
# Currently, it is not possible to choose between them from the UI. You can choose to either have
|
||||
# the Flash visualizations, OR the D3 visualizations.
|
||||
# If this option is not present or set to disabled, then the Flash visualizations will be used.
|
||||
# If this option is present and set to enabled, then the D3 visualizations will be used.
|
||||
visualization.d3 = enabled
|
||||
# If this option is not present or set to enabled, then the D3 visualizations will be used.
|
||||
# If this option is present and set to disabled, then the Flash visualizations will be used.
|
||||
#visualization.d3 = disabled
|
||||
|
||||
#
|
||||
# Types of individual for which we can create proxy editors.
|
||||
|
|
|
@ -224,7 +224,7 @@ public class PersonLevelRequestHandler implements VisualizationRequestHandler {
|
|||
String standaloneTemplate = "coAuthorPersonLevel.ftl";
|
||||
|
||||
String property = ConfigurationProperties.getBean(vitroRequest).getProperty("visualization.d3");
|
||||
if ("enabled".equalsIgnoreCase(property)) {
|
||||
if (!"disabled".equalsIgnoreCase(property)) {
|
||||
body.put("coAuthorshipData", new CollaborationDataViewHelper(coAuthorshipVO));
|
||||
standaloneTemplate = "coAuthorPersonLevelD3.ftl";
|
||||
}
|
||||
|
@ -286,7 +286,7 @@ public class PersonLevelRequestHandler implements VisualizationRequestHandler {
|
|||
String standaloneTemplate = "coPIPersonLevel.ftl";
|
||||
|
||||
String property = ConfigurationProperties.getBean(vitroRequest).getProperty("visualization.d3");
|
||||
if ("enabled".equalsIgnoreCase(property)) {
|
||||
if (!"disabled".equalsIgnoreCase(property)) {
|
||||
body.put("coInvestigatorData", new CollaborationDataViewHelper(coPIVO));
|
||||
standaloneTemplate = "coPIPersonLevelD3.ftl";
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue