NIHVIVO-2306 Changed default theme to vitro and updated default label to "vitro".

This commit is contained in:
cappadona 2011-05-27 19:35:46 +00:00
parent 94acda3b51
commit 1777aec82c
2 changed files with 3 additions and 6 deletions

View file

@ -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);

View file

@ -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;
} }