VIVO 3821: Add configuration to disable or enable Map of Science visualization.
This commit is contained in:
parent
15cb4d7467
commit
774bbacc36
2 changed files with 15 additions and 0 deletions
|
@ -94,6 +94,7 @@ class IndividualResponseBuilder {
|
|||
body.put("relatedSubject", getRelatedSubject());
|
||||
body.put("namespaces", namespaces);
|
||||
body.put("temporalVisualizationEnabled", getTemporalVisualizationFlag());
|
||||
body.put("mapOfScienceVisualizationEnabled", getMapOfScienceVisualizationFlag());
|
||||
body.put("profilePageTypesEnabled", getprofilePageTypesFlag());
|
||||
body.put("verbosePropertySwitch", getVerbosePropertyValues());
|
||||
|
||||
|
@ -195,6 +196,12 @@ class IndividualResponseBuilder {
|
|||
return "enabled".equals(property);
|
||||
}
|
||||
|
||||
private boolean getMapOfScienceVisualizationFlag() {
|
||||
String property = ConfigurationProperties.getBean(vreq).getProperty(
|
||||
"visualization.mapOfScience");
|
||||
return "enabled".equals(property);
|
||||
}
|
||||
|
||||
private boolean getprofilePageTypesFlag() {
|
||||
String property = ConfigurationProperties.getBean(vreq).getProperty(
|
||||
"multiViews.profilePageTypes");
|
||||
|
|
|
@ -92,6 +92,14 @@ email.replyTo =
|
|||
#
|
||||
# listview.usePreciseSubquery = true
|
||||
|
||||
#
|
||||
# The Map of Science visualization is limited in the number of supported journals.
|
||||
# This will generally only be useful for institutions that specifically want this.
|
||||
# This is disabled by default.
|
||||
# Set this to either "disabled" to not utilize or "enabled" to utilize.
|
||||
#
|
||||
visualization.mapOfScience = disabled
|
||||
|
||||
#
|
||||
# The email address of the root user for the VIVO application. The password
|
||||
# for this user is initially set to "rootPassword", but you will be asked to
|
||||
|
|
Loading…
Add table
Reference in a new issue