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);
String defaultTheme;
if (themeNames.contains("enhanced")) {
defaultTheme = "enhanced";
}
else if (themeNames.contains("default")) {
defaultTheme = "default";
if (themeNames.contains("vitro")) {
defaultTheme = "vitro";
}
else {
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.");
}
portal1.setPropertyValue(themeDirProperty,ResourceFactory.createPlainLiteral(defaultThemeStr));
portal1.setLabel("New Vitro Portal", null);
portal1.setLabel("Vitro", null);
return essentialInterfaceData;
}