NIHVIVO-2306 Changed default theme to vitro and updated default label to "vitro".
This commit is contained in:
parent
94acda3b51
commit
1777aec82c
2 changed files with 3 additions and 6 deletions
|
@ -26,11 +26,8 @@ public class DefaultThemeSetup implements ServletContextListener {
|
||||||
ArrayList<String> themeNames = ThemeUtils.getThemes(sc, doSort);
|
ArrayList<String> themeNames = ThemeUtils.getThemes(sc, doSort);
|
||||||
|
|
||||||
String defaultTheme;
|
String defaultTheme;
|
||||||
if (themeNames.contains("enhanced")) {
|
if (themeNames.contains("vitro")) {
|
||||||
defaultTheme = "enhanced";
|
defaultTheme = "vitro";
|
||||||
}
|
|
||||||
else if (themeNames.contains("default")) {
|
|
||||||
defaultTheme = "default";
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
defaultTheme = themeNames.get(0);
|
defaultTheme = themeNames.get(0);
|
||||||
|
|
|
@ -88,7 +88,7 @@ public class InitialJenaModelUtils {
|
||||||
throw new RuntimeException("No default theme has been set; unable to create default portal.");
|
throw new RuntimeException("No default theme has been set; unable to create default portal.");
|
||||||
}
|
}
|
||||||
portal1.setPropertyValue(themeDirProperty,ResourceFactory.createPlainLiteral(defaultThemeStr));
|
portal1.setPropertyValue(themeDirProperty,ResourceFactory.createPlainLiteral(defaultThemeStr));
|
||||||
portal1.setLabel("New Vitro Portal", null);
|
portal1.setLabel("Vitro", null);
|
||||||
return essentialInterfaceData;
|
return essentialInterfaceData;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue