themedirector jetzt korriegiert, so dass in dem Standard Theme die
Dateiliste wieder angezeigt wird. Für Mandalay muss in den folgenden Dateien: fallback/admin-themes.xsl: xmlns:theme="http://ccm.redhat.com/london/theme/1.0" includes/theme/themeFile.xsl: xmlns:theme="http://ccm.redhat.com/london/theme/1.0" includes/theme/themeFileList.xsl: xmlns:theme="http://ccm.redhat.com/london/theme/1.0" includes/theme/themeErrorInfo.xsl: xmlns:theme="http://ccm.redhat.com/london/theme/1.0" includes/theme/themeFolder.xsl: xmlns:theme="http://ccm.redhat.com/london/theme/1.0" aus london/theme themedirector gemacht werden. git-svn-id: https://svn.libreccm.org/ccm/trunk@817 8810af33-2d31-482b-a856-94f89814c4dfmaster
parent
56121d8707
commit
8b5474a42a
|
|
@ -18,5 +18,5 @@
|
||||||
-- $DateTime: 2011/03/27 23:15:09 $
|
-- $DateTime: 2011/03/27 23:15:09 $
|
||||||
-- $Id: oracle-se-6.6.0-6.6.1 pboy $
|
-- $Id: oracle-se-6.6.0-6.6.1 pboy $
|
||||||
|
|
||||||
@@ default/6.3.0-6.3.1/upd_theme_app_table.sql
|
@@ default/6.6.0-6.6.1/upd_theme_app_table.sql
|
||||||
@@ default/6.3.0-6.3.1/upd_system_tables.sql
|
@@ default/6.6.0-6.6.1/upd_system_tables.sql
|
||||||
|
|
|
||||||
|
|
@ -21,7 +21,7 @@
|
||||||
|
|
||||||
begin;
|
begin;
|
||||||
|
|
||||||
\i default/6.3.0-6.3.1/upd_theme_app_table.sql
|
\i default/6.6.0-6.6.1/upd_theme_app_table.sql
|
||||||
\i default/6.3.0-6.3.1/upd_system_tables.sql
|
\i default/6.6.0-6.6.1/upd_system_tables.sql
|
||||||
|
|
||||||
commit;
|
commit;
|
||||||
|
|
|
||||||
|
|
@ -24,32 +24,34 @@ package com.arsdigita.themedirector;
|
||||||
*/
|
*/
|
||||||
public interface ThemeDirectorConstants {
|
public interface ThemeDirectorConstants {
|
||||||
|
|
||||||
// public final static String PROD_DIR_STUB = "themes-prod";
|
/** Name of the base directory for all themes (usually themes) */
|
||||||
// public final static String DEV_DIR_STUB = "themes-dev";
|
public final static String THEMES_DIR = "themes";
|
||||||
|
/** Name of the directory for production themes (sub-dir of THEMES_DIR) */
|
||||||
public final static String PROD_DIR_STUB = "published-themedir";
|
public final static String PROD_DIR_STUB = "published-themedir";
|
||||||
|
/** Name of the directory for themes under development (sub-dir of THEMES_DIR) */
|
||||||
public final static String DEV_DIR_STUB = "devel-themedir";
|
public final static String DEV_DIR_STUB = "devel-themedir";
|
||||||
// TODO: it would be nice if this value in com.arsdigita.web.URL
|
|
||||||
// was public
|
|
||||||
// public final static String CCM_PREFIX = "__ccm__";
|
|
||||||
public final static String CCM_PREFIX = "themes";
|
|
||||||
public final static String WEB_APP_NAME = "ROOT";
|
|
||||||
|
|
||||||
// The location of the sync jsp used to sync up the multiple servers.
|
|
||||||
public final static String SYNC_JSP = "sync-theme.jsp";
|
|
||||||
|
|
||||||
// This can be used to find the root webapp directory that is used
|
|
||||||
// by default for most of the applications in WAF
|
|
||||||
public final static String ROOT_WEBAPP_PATH = "/ROOT";
|
|
||||||
|
|
||||||
public final static String PROD_THEMES_BASE_DIR =
|
public final static String PROD_THEMES_BASE_DIR =
|
||||||
// CCM_PREFIX + "/" + PROD_DIR_STUB+ "/";
|
THEMES_DIR + "/" + PROD_DIR_STUB+ "/";
|
||||||
"themes" + "/" + PROD_DIR_STUB+ "/";
|
|
||||||
public final static String DEV_THEMES_BASE_DIR =
|
public final static String DEV_THEMES_BASE_DIR =
|
||||||
// CCM_PREFIX + "/" + DEV_DIR_STUB + "/";
|
THEMES_DIR + "/" + DEV_DIR_STUB + "/";
|
||||||
"themes" + "/" + DEV_DIR_STUB + "/";
|
|
||||||
|
// ccm-themedirector (formerly ccm-ldn-theme) is no longer installed in its
|
||||||
|
// own web context (ROOT or ccm-ldn-theme/ccm-themedirector) so it is not
|
||||||
|
// needed anymore. We we want to install it in its own context again, we
|
||||||
|
// should find a way to determin the context from a central configuration.
|
||||||
|
// public final static String WEB_APP_NAME = "ROOT";
|
||||||
|
|
||||||
|
/** The location of the sync jsp used to sync up the multiple servers. */
|
||||||
|
public final static String SYNC_JSP = "sync-theme.jsp";
|
||||||
|
|
||||||
|
/** This can be used to find the root webapp directory that is used
|
||||||
|
by default for most of the applications in CCM */
|
||||||
|
public final static String ROOT_WEBAPP_PATH = "/ROOT";
|
||||||
|
|
||||||
public static final String THEME_XML_PREFIX = "theme:";
|
public static final String THEME_XML_PREFIX = "theme:";
|
||||||
public final static String XML_NS =
|
public final static String XML_NS =
|
||||||
"http://ccm.redhat.com/theme/1.0";
|
"http://ccm.redhat.com/themedirector/1.0";
|
||||||
|
|
||||||
public final static String PREVIEW_PREFIX = "/theme";
|
public final static String PREVIEW_PREFIX = "/theme";
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -45,6 +45,7 @@ public class ThemeXSLParameterGenerator implements XSLParameterGenerator,
|
||||||
* stylesheets
|
* stylesheets
|
||||||
*/
|
*/
|
||||||
public String generateValue(HttpServletRequest request) {
|
public String generateValue(HttpServletRequest request) {
|
||||||
|
|
||||||
String themeURL =
|
String themeURL =
|
||||||
InternalThemePrefixerServlet.getThemePreviewURL(request);
|
InternalThemePrefixerServlet.getThemePreviewURL(request);
|
||||||
|
|
||||||
|
|
@ -74,12 +75,14 @@ public class ThemeXSLParameterGenerator implements XSLParameterGenerator,
|
||||||
|
|
||||||
if (themeURL != null) {
|
if (themeURL != null) {
|
||||||
// modified as ccm-ldn-theme is no longer installed in its own context
|
// modified as ccm-ldn-theme is no longer installed in its own context
|
||||||
// return "/" + WEB_APP_NAME + "/" + CCM_PREFIX + "/" +
|
// return "/" + WEB_APP_NAME + "/" + THEMES_DIR + "/" +
|
||||||
return "/" + CCM_PREFIX + "/" +
|
// If we want to install it as a separate web application again we
|
||||||
|
// should find a way to determin the name from a central configuration
|
||||||
|
return "/" + THEMES_DIR + "/" +
|
||||||
Web.getContext().getRequestURL().getContextPath() +
|
Web.getContext().getRequestURL().getContextPath() +
|
||||||
baseDir + themeURL;
|
baseDir + themeURL;
|
||||||
} else {
|
} else {
|
||||||
// this means that there is not theme associated with the
|
// this means that there is no theme associated with the
|
||||||
// given subsite, so we return the default theme
|
// given subsite, so we return the default theme
|
||||||
themeURL =
|
themeURL =
|
||||||
ThemeDirector.getConfig().getDefaultThemeContext() +
|
ThemeDirector.getConfig().getDefaultThemeContext() +
|
||||||
|
|
|
||||||
|
|
@ -172,8 +172,7 @@ public abstract class ManifestReader implements ThemeDirectorConstants {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This provides a way for child classes to look for the resource
|
* This provides a way for child classes to look for the resource
|
||||||
* in multiple places. By default, it only looks in the
|
* in multiple places. By default, it only looks in the ServletContext
|
||||||
* ServletContext
|
|
||||||
*/
|
*/
|
||||||
protected InputStream getResourceAsStream(String line,
|
protected InputStream getResourceAsStream(String line,
|
||||||
String possibleServletContext) {
|
String possibleServletContext) {
|
||||||
|
|
@ -196,7 +195,8 @@ public abstract class ManifestReader implements ThemeDirectorConstants {
|
||||||
stream = Web.getServletContext().getContext(ROOT_WEBAPP_PATH)
|
stream = Web.getServletContext().getContext(ROOT_WEBAPP_PATH)
|
||||||
.getResourceAsStream(line);
|
.getResourceAsStream(line);
|
||||||
if (stream != null) {
|
if (stream != null) {
|
||||||
setActualContext(line, Web.getServletContext().getContext(ROOT_WEBAPP_PATH));
|
setActualContext(line, Web.getServletContext()
|
||||||
|
.getContext(ROOT_WEBAPP_PATH));
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
setActualContext(line, Web.getServletContext());
|
setActualContext(line, Web.getServletContext());
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
<xsl:stylesheet
|
<xsl:stylesheet
|
||||||
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||||
xmlns:bebop="http://www.arsdigita.com/bebop/1.0"
|
xmlns:bebop="http://www.arsdigita.com/bebop/1.0"
|
||||||
xmlns:theme="http://ccm.redhat.com/london/theme/1.0"
|
xmlns:theme="http://ccm.redhat.com/themedirector/1.0"
|
||||||
version="1.0">
|
version="1.0">
|
||||||
|
|
||||||
<!-- IMPORT DEFINITIONS ccm-ldn-theme installed as separate web application
|
<!-- IMPORT DEFINITIONS ccm-ldn-theme installed as separate web application
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue