Merge pull request #373 from TAMULib/3821-map_of_science_properties
VIVO 3821: Add configuration to disable or enable Map of Science visualization.
This commit is contained in:
commit
98f2de3c04
1 changed files with 7 additions and 0 deletions
|
@ -94,6 +94,7 @@ class IndividualResponseBuilder {
|
||||||
body.put("relatedSubject", getRelatedSubject());
|
body.put("relatedSubject", getRelatedSubject());
|
||||||
body.put("namespaces", namespaces);
|
body.put("namespaces", namespaces);
|
||||||
body.put("temporalVisualizationEnabled", getTemporalVisualizationFlag());
|
body.put("temporalVisualizationEnabled", getTemporalVisualizationFlag());
|
||||||
|
body.put("mapOfScienceVisualizationEnabled", getMapOfScienceVisualizationFlag());
|
||||||
body.put("profilePageTypesEnabled", getprofilePageTypesFlag());
|
body.put("profilePageTypesEnabled", getprofilePageTypesFlag());
|
||||||
body.put("verbosePropertySwitch", getVerbosePropertyValues());
|
body.put("verbosePropertySwitch", getVerbosePropertyValues());
|
||||||
|
|
||||||
|
@ -195,6 +196,12 @@ class IndividualResponseBuilder {
|
||||||
return "enabled".equals(property);
|
return "enabled".equals(property);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private boolean getMapOfScienceVisualizationFlag() {
|
||||||
|
String property = ConfigurationProperties.getBean(vreq).getProperty(
|
||||||
|
"visualization.mapOfScience");
|
||||||
|
return "enabled".equals(property);
|
||||||
|
}
|
||||||
|
|
||||||
private boolean getprofilePageTypesFlag() {
|
private boolean getprofilePageTypesFlag() {
|
||||||
String property = ConfigurationProperties.getBean(vreq).getProperty(
|
String property = ConfigurationProperties.getBean(vreq).getProperty(
|
||||||
"multiViews.profilePageTypes");
|
"multiViews.profilePageTypes");
|
||||||
|
|
Loading…
Add table
Reference in a new issue