Upgrade script für relatedLinks eingebaut, XSL Files aus portal in die richtigen Pakete verschoben.

git-svn-id: https://svn.libreccm.org/ccm/trunk@833 8810af33-2d31-482b-a856-94f89814c4df
master
pb 2011-04-05 23:57:48 +00:00
parent 0c83991283
commit 792654009f
47 changed files with 133 additions and 39 deletions

View File

@ -2,7 +2,7 @@
<ccm:application xmlns:ccm="http://ccm.redhat.com/ccm-project"
name="ccm-cms-assets-relatedlink"
prettyName="Red Hat CMS Content Asset Related Link"
version="6.6.0"
version="6.6.1"
release="1"
webapp="ROOT">
<ccm:dependencies>

View File

@ -0,0 +1,20 @@
--
-- This library is free software; you can redistribute it and/or
-- modify it under the terms of the GNU Lesser General Public License
-- as published by the Free Software Foundation; either version 2.1 of
-- the License, or (at your option) any later version.
--
-- This library is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-- Lesser General Public License for more details.
--
-- You should have received a copy of the GNU Lesser General Public
-- License along with this library; if not, write to the Free Software
-- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
--
-- $Id: upd_table_ct_addresses.sql pboy $
UPDATE cms_related_links
SET link_list_name = 'NONE'
WHERE link_list_name IS NULL;

View File

@ -0,0 +1,23 @@
--
-- Copyright (C) 2008 Peter Boy All Rights Reserved.
--
-- This library is free software; you can redistribute it and/or
-- modify it under the terms of the GNU Lesser General Public License
-- as published by the Free Software Foundation; either version 2.1 of
-- the License, or (at your option) any later version.
--
-- This library is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-- Lesser General Public License for more details.
--
-- You should have received a copy of the GNU Lesser General Public
-- License along with this library; if not, write to the Free Software
-- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
--
-- $Id: oracle-se-6.6.0-6.6.1.sql 293 2011-01-07 15:10:39Z pboy $
PROMPT Red Hat Enterprise assets-relatedLinks 6.6.0 -> 6.6.1 Upgrade Script (Oracle)
@@ default/6.6.0-6.6.1/upd_table_cms_related_links.sql

View File

@ -0,0 +1,26 @@
--
-- Copyright (C) 2011 Peter Boy All Rights Reserved.
--
-- This library is free software; you can redistribute it and/or
-- modify it under the terms of the GNU Lesser General Public License
-- as published by the Free Software Foundation; either version 2.1 of
-- the License, or (at your option) any later version.
--
-- This library is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-- Lesser General Public License for more details.
--
-- You should have received a copy of the GNU Lesser General Public
-- License along with this library; if not, write to the Free Software
-- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
--
-- $DateTime: 2010/11/10 23:15:09 $
\echo Red Hat Enterprise assets-relatedLinks 6.6.0 -> 6.6.1 Upgrade Script (PostgreSQL)
begin;
\i default/6.6.0-6.6.1/upd_table_cms_related_links.sql
commit;

View File

@ -0,0 +1,5 @@
<upgrade>
<version from="6.6.0" to="6.6.1">
<script sql="ccm-cms-assets-relatedlink/upgrade/::database::-6.6.0-6.6.1.sql"/>
</version>
</upgrade>

View File

@ -3,7 +3,7 @@
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
xmlns:portlet="http://www.uk.arsdigita.com/portlet/1.0">
<xsl:import href="../../content-section/xsl/cms-item.xsl"/>
<xsl:import href="../../../../../packages/content-section/xsl/cms-item.xsl"/>
<xsl:template match="portlet:contentItem">
<xsl:apply-templates/>

View File

@ -13,7 +13,8 @@
</td>
<td class="table_cell">
<a href="{@url}admin/index.jsp">
<img border="0" width="11" height="11" alt="admin" src="{$root-context-prefix}/assets/images/arrow-box.gif"/>
<img border="0" width="11" height="11" alt="admin"
src="{$root-context-prefix}/assets/images/arrow-box.gif"/>
</a>
<a href="{@url}admin/index.jsp" class="action_link">admin</a>
</td>

View File

@ -9,7 +9,7 @@
<ccm:requires name="ccm-core" version="6.6.0" relation="ge"/>
<ccm:requires name="ccm-cms" version="6.6.0" relation="ge"/>
<ccm:requires name="ccm-ldn-subsite" version="6.6.0" relation="ge"/>
<ccm:requires name="ccm-ldn-portal" version="6.6.0" relation="ge"/>
<ccm:requires name="ccm-portalworkspace" version="6.6.0" relation="ge"/>
<ccm:requires name="ccm-ldn-terms" version="6.6.0" relation="ge"/>
<!-- not required anymore (2007-06-09)
<ccm:requires name="ccm-ldn-dublin" version="6.6.0" relation="ge"/>

View File

@ -5,9 +5,10 @@ ccm-cms
# Content assets
ccm-cms-assets-fileattachment
# ccm-cms-assets-imagestep
ccm-cms-assets-imagestep
ccm-cms-assets-notes
ccm-cms-assets-relatedlink
# is ccm-ldn-dublin really an asset?
## -- ccm-ldn-dublin
@ -49,9 +50,11 @@ ccm-cms-types-newsitem
# -- ccm-formbuilder-pdf
ccm-forum
# ccm-forum-categorised
# ccm-portalserver
ccm-portalworkspace
# -- ccm-simplesurvey
# ccm-themedirector
ccm-user-preferences
ccm-themedirector
# ccm-user-preferences
# -- ccm-weblog
# -- ccm-webpage
@ -63,8 +66,7 @@ ccm-user-preferences
# -- ccm-ldn-exporter
# -- ccm-ldn-freeform
# -- ccm-ldn-importer
# ccm-ldn-navigation
ccm-ldn-portal
ccm-ldn-navigation
# ccm-ldn-rss
ccm-ldn-search
ccm-ldn-shortcuts

View File

@ -7,7 +7,8 @@
<initializer class="com.arsdigita.cms.Initializer"/>
<initializer class="com.arsdigita.london.terms.Initializer"/>
<initializer class="com.arsdigita.london.subsite.Initializer"/>
<initializer class="com.arsdigita.london.portal.Initializer"/>
<initializer class="com.arsdigita.portalworkspace.Initializer"/>
<initializer class="com.arsdigita.london.navigation.Initializer"/>
<initializer class="com.arsdigita.london.search.Initializer"/>
</requires>
<provides>

View File

@ -132,7 +132,7 @@ public class Loader extends PackageLoader {
if (url != null) {
// check weather the url parameter is properly formatted
s_log.error("process url " + url);
s_log.debug("process url " + url);
Assert.isTrue(url.startsWith("/"), "url starts not with /");
Assert.isTrue(url.endsWith("/"), "url ends not with /");
Assert.isTrue(!url.equals("/"), "url is not /");
@ -149,7 +149,7 @@ public class Loader extends PackageLoader {
} else {
name = url.substring(1, url.length() - 1);
}
s_log.error("node name is " + name);
s_log.debug("node name is " + name);
// set up the portal node
// Workspace workspace = Workspace.createWorkspace(name, title,

View File

@ -1,9 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<xsl:import href="../../../../packages/bebop/xsl/bebop.xsl"/>
<xsl:import href="../../../../packages/ui/xsl/ui.xsl"/>
<xsl:import href="../../../../packages/portalworkspace/xsl/admin.xsl"/>
</xsl:stylesheet>

View File

@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<xsl:import href="../../../packages/bebop/xsl/bebop.xsl"/>
<xsl:import href="../../../packages/ui/xsl/ui.xsl"/>
<xsl:import href="../../../packages/portal-workspace/xsl/admin.xsl"/>
</xsl:stylesheet>

View File

@ -3,7 +3,7 @@
xmlns:portal="http://www.uk.arsdigita.com/portal/1.0"
version="1.0">
<xsl:import href="../../../../packages/portalworkspace/xsl/portal.xsl"/>
<xsl:import href="../../../packages/portal-workspace/xsl/portal.xsl"/>
<xsl:template match="portal:workspaceDetails">
<a href="index.jsp">View</a>

View File

@ -3,7 +3,7 @@
xmlns:portal="http://www.uk.arsdigita.com/portal/1.0"
version="1.0">
<xsl:import href="../../../../packages/portalworkspace/xsl/portal.xsl"/>
<xsl:import href="../../../packages/portal-workspace/xsl/portal.xsl"/>
<xsl:template match="portal:workspaceDetails">
<xsl:if test="@canEdit = 'true'">

View File

@ -33,7 +33,8 @@
</tr>
<tr>
<td colspan="2">
<input type="checkbox" checked="checked" name="persistentCookieP" value="1" id="persistentCookieP:1"/>
<input type="checkbox" checked="checked" name="persistentCookieP"
value="1" id="persistentCookieP:1"/>
<label for="persistentCookieP:1">Remember this login?</label>
</td>
</tr>

View File

@ -2,22 +2,30 @@
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<xsl:import href="content-sections-portlet.xsl"/>
<xsl:import href="login-portlet.xsl"/>
<xsl:import href="time-of-day-portlet.xsl"/>
<xsl:import href="content-item-portlet.xsl"/>
<xsl:import href="freeform-html-portlet.xsl"/>
<xsl:import href="rss-feed-portlet.xsl"/>
<xsl:import href="tasklist-portlet.xsl"/>
<xsl:import href="application-directory-portlet.xsl"/>
<xsl:import href="workspace-directory-portlet.xsl"/>
<xsl:import href="content-directory-portlet.xsl"/>
<xsl:import href="flash-portlet.xsl"/>
<xsl:import href="flash-portlet.xsl"/>
<xsl:import href="freeform-html-portlet.xsl"/>
<xsl:import href="login-portlet.xsl"/>
<!-- MyWorkspacesPortlet - xsl file missing -->
<xsl:import href="rss-feed-portlet.xsl"/>
<xsl:import href="time-of-day-portlet.xsl"/>
<!-- WorkspaceNavigatorPortlet - xsl file missing -->
<!-- WorkspaceSummaryPortlet - xsl file missing -->
<!-- stuff from/for portlets not part of the portal package
(ccm-cms, ldn-rss)
<xsl:import href="content-sections-portlet.xsl"/>
<xsl:import href="content-item-portlet.xsl"/>
<xsl:import href="tasklist-portlet.xsl"/>
<xsl:import href="workspace-directory-portlet.xsl"/>
-->
<!-- We want no dependency from forum package in the portal package -->
<!-- import statement, if forum is installed in a separate webapp context
<xsl:import href="../../../../ccm-forum/packages/forum/xsl/recent-postings-portlet.xsl"/>
<xsl:import href="../../../../ccm-forum/packages/forum/xsl/recent-postings-portlet.xsl"/>
-->
<!-- import statement, if forum is installed in the main CCM webapp context
<xsl:import href="../../../../packages/forum/xsl/recent-postings-portlet.xsl"/>
-->
<xsl:import href="../../../packages/forum/xsl/recent-postings-portlet.xsl"/>
<xsl:import href="/__ccm__/servlet/portlet-type/index.xsl"/>
</xsl:stylesheet>

View File

@ -46,7 +46,8 @@
<xsl:template match="rss:channel">
<xsl:param name="maxItems" select="10"/>
<a><xsl:attribute name="href"><xsl:value-of select="rss:link"/></xsl:attribute><xsl:value-of select="rss:title"/></a>
<a><xsl:attribute name="href"><xsl:value-of select="rss:link"/>
</xsl:attribute><xsl:value-of select="rss:title"/></a>
<!-- backwards compatability with old rss format -->
<xsl:for-each select="rss:item[$maxItems > position()]">
<dl>
@ -57,7 +58,8 @@
<xsl:template match="rss:item">
<dt>
<a><xsl:attribute name="href"><xsl:value-of select="rss:link"/></xsl:attribute><xsl:value-of select="rss:title"/></a>
<a><xsl:attribute name="href"><xsl:value-of select="rss:link"/>
</xsl:attribute><xsl:value-of select="rss:title"/></a>
</dt>
<dd>
<xsl:value-of select="rss:description"/>
@ -67,7 +69,8 @@
<xsl:template match="channel">
<xsl:param name="maxItems" select="10"/>
<a><xsl:attribute name="href"><xsl:value-of select="link"/></xsl:attribute><xsl:value-of select="title"/></a>
<a><xsl:attribute name="href"><xsl:value-of select="link"/>
</xsl:attribute><xsl:value-of select="title"/></a>
<!-- backwards compatability with old rss format -->
<xsl:for-each select="item[$maxItems > position()]">
<dl>
@ -78,7 +81,8 @@
<xsl:template match="item">
<dt>
<a><xsl:attribute name="href"><xsl:value-of select="link"/></xsl:attribute><xsl:value-of select="title"/></a>
<a><xsl:attribute name="href"><xsl:value-of select="link"/></xsl:attribute>
<xsl:value-of select="title"/></a>
</dt>
<dd>
<xsl:value-of select="description"/>

View File

@ -39,8 +39,10 @@ import com.arsdigita.runtime.DomainInitEvent;
import com.arsdigita.runtime.PDLInitializer;
import com.arsdigita.runtime.RuntimeConfig;
import com.arsdigita.templating.PatternStylesheetResolver;
import org.apache.log4j.Logger;
/**
* The Theme Directory initializer.
*
@ -91,6 +93,7 @@ public class Initializer extends CompoundInitializer {
evt.getFactory().registerInstantiator(
ThemeDirector.BASE_DATA_OBJECT_TYPE,
new ACSObjectInstantiator() {
@Override
public DomainObject doNewInstance(DataObject dataObject) {
return new ThemeDirector(dataObject);
}