Renamed ccm-cms-types-simpleorganization to ccm-cms-types-organization to fit into the naming schema (issue #2132)

git-svn-id: https://svn.libreccm.org/ccm/trunk@2811 8810af33-2d31-482b-a856-94f89814c4df
master
jensp 2014-08-13 19:18:25 +00:00
parent 0908a339fc
commit 2d9657917f
31 changed files with 279 additions and 153 deletions

View File

@ -1,8 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<ccm:application xmlns:ccm="http://ccm.redhat.com/ccm-project"
name="ccm-cms-types-simpleorganization"
name="ccm-cms-types-organization"
prettyName="Simple contenttype which exposed GenericOrganizationalUnit"
version = "6.6.6"
version = "6.6.7"
release="1"
webapp="ROOT">

View File

@ -0,0 +1,12 @@
model com.arsdigita.cms.contenttypes;
import com.arsdigita.kernel.ACSObject;
import com.arsdigita.cms.*;
object type Organization extends GenericOrganizationalUnit {
reference key (ct_organizations.organization_id);
}
object type OrganizationBundle extends GenericOrganizationalUnitBundle {
reference key (ct_organization_bundles.bundle_id);
}

View File

@ -0,0 +1,68 @@
--
-- Copyright (C) 2014 Jens Pelzetter 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
-- Renaming ccm-cms-types-simpleorganization to ccm-cms-types-organization to keep the naming
-- schema
-- Rename tables
ALTER TABLE ct_simpleorganizations TO ct_organizations;
-- Update inits
-- Drop constraints for init_requirements temporaly (otherwise we can't update
-- the tables)
ALTER TABLE init_requirements DROP CONSTRAINT init_requirements_init_f_cmmdn ;
ALTER TABLE init_requirements DROP CONSTRAINT init_require_requ_init_f_i6rgg ;
-- Adjust the class name of the Initializer
UPDATE inits
SET class_name='com.arsdigita.cms.contenttypes.OrganizationInitializer'
WHERE class_name='com.arsdigita.cms.contenttypes.SimpleOrganizationInitializer';
-- Adjust the class name of the Initializer in init-requirements
UPDATE init_requirements
SET init='com.arsdigita.cms.contenttypes.OrganizationInitializer'
WHERE init='com.arsdigita.cms.contenttypes.SimpleOrganizationInitializer';
-- Restore the constraints for init_requirements
ALTER TABLE init_requirements
ADD CONSTRAINT init_requirements_init_f_cmmdn FOREIGN KEY (init)
REFERENCES inits (class_name) MATCH SIMPLE
ON UPDATE NO ACTION ON DELETE NO ACTION;
ALTER TABLE init_requirements
ADD CONSTRAINT init_require_requ_init_f_i6rgg FOREIGN KEY (required_init)
REFERENCES inits (class_name) MATCH SIMPLE
ON UPDATE NO ACTION ON DELETE NO ACTION;
-- Update system tables
-- Adjust the class name in acs-objects for all DecisionTree instances
UPDATE acs_objects
SET object_type = 'com.arsdigita.cms.contenttypes.Organization',
default_domain_class = 'com.arsdigita.cms.contenttypes.Organization'
WHERE default_domain_class = 'com.arsdigita.cms.contenttypes.SimpleOrganization';
--Adjust content type organization in contenttype directory table
UPDATE content_types
SET object_type = 'com.arsdigita.cms.contenttypes.Organization',
classname = 'com.arsdigita.cms.contenttypes.Organization'
WHERE object_type = 'com.arsdigita.cms.contenttypes.SimpleOrganization' ;
--Adjust content type decisiontree in authoring_steps directory table
UPDATE authoring_steps
SET component = 'com.arsdigita.cms.contenttypes.ui.OrganizationPropertiesStep'
WHERE component = 'com.arsdigita.cms.contenttypes.ui.SimpleOrganizationPropertiesStep';

View File

@ -0,0 +1,22 @@
--
-- Copyright (C) 2014 Jens Pelzetter 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 LibreCCM types organization 6.6.6 -> 6.6.7 Upgrade Script (Oracle)
@@ default/6.6.6-6.6.7/rename_simpleorga_to_orga.sql

View File

@ -0,0 +1,24 @@
--
-- Copyright (C) 2014 Jens Pelzetter 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
\echo LibreCMS types Organization 6.6.6 -> 6.6.7 Upgrade Script (PostgreSQL)
begin;
\i default/6.6.6-6.6.7/rename_simpleorga_to_orga.sql
end;

View File

@ -0,0 +1,28 @@
<?xml version="1.0" encoding="UTF-8"?>
<ctd:content-types xmlns:ctd="http://xmlns.redhat.com/cms/content-types"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://xmlns.redhat.com/cms/content-types content-types.xsd">
<ctd:content-type label="Organization"
description="Exposed GenericOrganizationalUnit"
objectType="com.arsdigita.cms.contenttypes.Organization"
classname="com.arsdigita.cms.contenttypes.Organization">
<ctd:authoring-kit createComponent="com.arsdigita.cms.contenttypes.ui.OrganizationCreate">
<ctd:authoring-step
labelKey="sciorganization.ui.organization_properties.title"
labelBundle="com.arsdigita.cms.contenttypes.ui.OrganizationResources"
descriptionKey="sciorganization.ui.organization_properties.title"
descriptionBundle="com.arsdigita.cms.contenttypes.ui.OrganizationResources"
component="com.arsdigita.cms.contenttypes.ui.OrganizationPropertiesStep"
ordering="1"/>
<ctd:include href="/WEB-INF/content-types/assign-categories-step.xml"/>
</ctd:authoring-kit>
</ctd:content-type>
</ctd:content-types>

View File

@ -6,7 +6,8 @@
xsi:schemaLocation="http://rhea.redhat.com/schemas/waf/xml-renderer-rules xml-renderer-rules.xsd">
<xrd:context name="com.arsdigita.cms.dispatcher.SimpleXMLGenerator">
<xrd:adapter objectType="com.arsdigita.cms.contenttypes.SimpleOrganization" extends="com.arsdigita.cms.ContentPage">
<xrd:adapter objectType="com.arsdigita.cms.contenttypes.Organization"
extends="com.arsdigita.cms.ContentPage">
</xrd:adapter>
</xrd:context>

View File

@ -0,0 +1,16 @@
<load>
<requires>
<table name="inits"/>
<table name="acs_objects"/>
<table name="cms_items"/>
<initializer class="com.arsdigita.cms.Initializer"/>
</requires>
<provides>
<table name="ct_organizations"/>
<initializer class="com.arsdigita.cms.contenttypes.OrganizationInitializer"/>
</provides>
<scripts>
<schema directory="ccm-cms-types-organization"/>
<data class="com.arsdigita.cms.contenttypes.OrganizationLoader"/>
</scripts>
</load>

View File

@ -0,0 +1,5 @@
<upgrade>
<version from="6.6.6" to="6.6.7">
<script sql="ccm-cms-types-organization/upgrade/::database::-6.6.6-6.6.7.sql">
</version>
</upgrade>

View File

@ -1,7 +1,7 @@
package com.arsdigita.cms.contenttypes;
import com.arsdigita.cms.ExtraXMLGenerator;
import com.arsdigita.cms.contenttypes.ui.SimpleOrganizationExtraXmlGenerator;
import com.arsdigita.cms.contenttypes.ui.OrganizationExtraXmlGenerator;
import com.arsdigita.domain.DataObjectNotFoundException;
import com.arsdigita.persistence.DataObject;
import com.arsdigita.persistence.OID;
@ -13,41 +13,41 @@ import java.util.List;
* @author Jens Pelzetter
* @version $Id$
*/
public class SimpleOrganization extends GenericOrganizationalUnit {
public class Organization extends GenericOrganizationalUnit {
public static final String BASE_DATA_OBJECT_TYPE = "com.arsdigita.cms.contenttypes.SimpleOrganization";
public static final String BASE_DATA_OBJECT_TYPE = "com.arsdigita.cms.contenttypes.Organization";
public SimpleOrganization() {
public Organization() {
super(BASE_DATA_OBJECT_TYPE);
}
public SimpleOrganization(final BigDecimal id) throws DataObjectNotFoundException {
public Organization(final BigDecimal id) throws DataObjectNotFoundException {
this(new OID(BASE_DATA_OBJECT_TYPE, id));
}
public SimpleOrganization(final OID oid) throws DataObjectNotFoundException {
public Organization(final OID oid) throws DataObjectNotFoundException {
super(oid);
}
public SimpleOrganization(final DataObject dobj) {
public Organization(final DataObject dobj) {
super(dobj);
}
public SimpleOrganization(final String type) {
public Organization(final String type) {
super(type);
}
@Override
public List<ExtraXMLGenerator> getExtraXMLGenerators() {
final List<ExtraXMLGenerator> generators = super.getExtraListXMLGenerators();
generators.add(new SimpleOrganizationExtraXmlGenerator());
generators.add(new OrganizationExtraXmlGenerator());
return generators;
}
@Override
public List<ExtraXMLGenerator> getExtraListXMLGenerators() {
final List<ExtraXMLGenerator> generators = super.getExtraListXMLGenerators();
generators.add(new SimpleOrganizationExtraXmlGenerator());
generators.add(new OrganizationExtraXmlGenerator());
return generators;
}
}

View File

@ -12,12 +12,12 @@ import java.math.BigDecimal;
* @author Jens Pelzetter
* @version $Id$
*/
public class SimpleOrganizationBundle extends GenericOrganizationalUnitBundle {
public class OrganizationBundle extends GenericOrganizationalUnitBundle {
public static final String BASE_DATA_OBJECT_TYPE =
"com.arsdigita.cms.contenttypes.SimpleOrganizationBundle";
"com.arsdigita.cms.contenttypes.OrganizationBundle";
public SimpleOrganizationBundle(final ContentItem primary) {
public OrganizationBundle(final ContentItem primary) {
super(BASE_DATA_OBJECT_TYPE);
Assert.exists(primary, ContentItem.class);
@ -29,29 +29,29 @@ public class SimpleOrganizationBundle extends GenericOrganizationalUnitBundle {
setName(primary.getName());
}
public SimpleOrganizationBundle(final OID oid)
public OrganizationBundle(final OID oid)
throws DataObjectNotFoundException {
super(oid);
}
public SimpleOrganizationBundle(final BigDecimal id)
public OrganizationBundle(final BigDecimal id)
throws DataObjectNotFoundException {
super(new OID(BASE_DATA_OBJECT_TYPE, id));
}
public SimpleOrganizationBundle(final DataObject dobj) {
public OrganizationBundle(final DataObject dobj) {
super(dobj);
}
public SimpleOrganizationBundle(final String type) {
public OrganizationBundle(final String type) {
super(type);
}
public SimpleOrganization getOrganization() {
return (SimpleOrganization) getPrimaryInstance();
public Organization getOrganization() {
return (Organization) getPrimaryInstance();
}
public SimpleOrganization getOrganization(final String language) {
return (SimpleOrganization) getInstance(language);
public Organization getOrganization(final String language) {
return (Organization) getInstance(language);
}
}

View File

@ -0,0 +1,24 @@
package com.arsdigita.cms.contenttypes;
/**
*
* @author Jens Pelzetter
* @version $Id$
*/
public class OrganizationInitializer extends ContentTypeInitializer {
public OrganizationInitializer() {
super("ccm-cms-types-organization.pdl.mf",
Organization.BASE_DATA_OBJECT_TYPE);
}
@Override
public String[] getStylesheets() {
return new String[]{INTERNAL_THEME_TYPES_DIR + "Organization.xsl"};
}
@Override
public String getTraversalXML() {
return "/WEB-INF/traversal-adapters/com/arsdigita/cms/contenttypes/Organization.xml";
}
}

View File

@ -5,14 +5,14 @@ package com.arsdigita.cms.contenttypes;
* @author Jens Pelzetter
* @version $Id$
*/
public class SimpleOrganizationLoader extends AbstractContentTypeLoader {
public class OrganizationLoader extends AbstractContentTypeLoader {
public SimpleOrganizationLoader() {
public OrganizationLoader() {
super();
}
private static final String[] TYPES = {
"/WEB-INF/content-types/com/arsdigita/cms/contenttypes/SimpleOrganization.xml"
"/WEB-INF/content-types/com/arsdigita/cms/contenttypes/Organization.xml"
};
@Override

View File

@ -0,0 +1,2 @@
sciorganization.ui.organization_properties.title=Basic properties
cms.contenttypes.organization.type_label=Organization

View File

@ -0,0 +1,2 @@
sciorganization.ui.organization_properties.title=Basiseigenschaften
cms.contenttypes.organization.type_label=Organisation

View File

@ -3,7 +3,7 @@ package com.arsdigita.cms.contenttypes.ui;
import com.arsdigita.cms.ContentItem;
import com.arsdigita.cms.ItemSelectionModel;
import com.arsdigita.cms.contenttypes.GenericOrganizationalUnitBundle;
import com.arsdigita.cms.contenttypes.SimpleOrganizationBundle;
import com.arsdigita.cms.contenttypes.OrganizationBundle;
import com.arsdigita.cms.ui.authoring.CreationSelector;
/**
@ -11,9 +11,9 @@ import com.arsdigita.cms.ui.authoring.CreationSelector;
* @author Jens Pelzetter
* @version $Id$
*/
public class SimpleOrganizationCreate extends GenericOrganizationalUnitCreate {
public class OrganizationCreate extends GenericOrganizationalUnitCreate {
public SimpleOrganizationCreate(final ItemSelectionModel itemModel,
public OrganizationCreate(final ItemSelectionModel itemModel,
final CreationSelector parent) {
super(itemModel, parent);
}
@ -21,7 +21,7 @@ public class SimpleOrganizationCreate extends GenericOrganizationalUnitCreate {
@Override
protected GenericOrganizationalUnitBundle createBundle(
final ContentItem primary) {
return new SimpleOrganizationBundle(primary);
return new OrganizationBundle(primary);
}
}

View File

@ -6,7 +6,7 @@ import com.arsdigita.cms.ContentItem;
import com.arsdigita.cms.ExtraXMLGenerator;
import com.arsdigita.cms.contenttypes.GenericContact;
import com.arsdigita.cms.contenttypes.GenericOrganizationalUnitContactCollection;
import com.arsdigita.cms.contenttypes.SimpleOrganization;
import com.arsdigita.cms.contenttypes.Organization;
import com.arsdigita.cms.dispatcher.SimpleXMLGenerator;
import com.arsdigita.globalization.GlobalizationHelper;
import com.arsdigita.xml.Element;
@ -16,17 +16,17 @@ import com.arsdigita.xml.Element;
* @author Jens Pelzetter <jens@jp-digital.de>
* @version $Id$
*/
public class SimpleOrganizationExtraXmlGenerator implements ExtraXMLGenerator {
public class OrganizationExtraXmlGenerator implements ExtraXMLGenerator {
private boolean listMode;
public void generateXML(final ContentItem item, final Element element, final PageState state) {
if (!(item instanceof SimpleOrganization)) {
throw new IllegalArgumentException("The SimpleOrganizationExtraXMLGenerator can only process instances"
+ "of SimpleOrganization.");
if (!(item instanceof Organization)) {
throw new IllegalArgumentException("The OrganizationExtraXMLGenerator can only process instances"
+ "of Organization.");
}
final SimpleOrganization organization = (SimpleOrganization) item;
final Organization organization = (Organization) item;
final GenericOrganizationalUnitContactCollection contacts = organization.getContacts();
final Element contactsElem = element.newChildElement("contacts");

View File

@ -11,17 +11,17 @@ import com.arsdigita.cms.ui.workflow.WorkflowLockedComponentAccess;
* @author Jens Pelzetter
* @version $Id$
*/
public class SimpleOrganizationPropertiesStep extends GenericOrganizationalUnitPropertiesStep {
public class OrganizationPropertiesStep extends GenericOrganizationalUnitPropertiesStep {
public static final String EDIT_SHEET_NAME = "edit";
public SimpleOrganizationPropertiesStep(final ItemSelectionModel itemModel,
public OrganizationPropertiesStep(final ItemSelectionModel itemModel,
final AuthoringKitWizard parent) {
super(itemModel, parent);
}
protected void createEditSheet(final ItemSelectionModel itemModel) {
final BasicPageForm editSheet = new SimpleOrganizationPropertyForm(
final BasicPageForm editSheet = new OrganizationPropertyForm(
itemModel, this);
add(EDIT_SHEET_NAME,
"Edit",
@ -29,7 +29,7 @@ public class SimpleOrganizationPropertiesStep extends GenericOrganizationalUnitP
editSheet.getSaveCancelSection().getCancelButton());
}
public static Component getSimpleOrganizationPropertySheet(
public static Component getOrganizationPropertySheet(
final ItemSelectionModel itemModel) {
final Component sheet = GenericOrganizationalUnitPropertiesStep.
getGenericOrganizationalUnitPropertySheet(itemModel);

View File

@ -7,21 +7,21 @@ import com.arsdigita.cms.ItemSelectionModel;
/**
*
* @author Jens Pelzetter
* @version $Id: SimpleOrganizationPropertyForm.java 1611 2012-04-23 08:57:28Z
* jensp $
* @version $Id: OrganizationPropertyForm.java 1611 2012-04-23 08:57:28Z
jensp $
*/
public class SimpleOrganizationPropertyForm extends GenericOrganizationalUnitPropertyForm {
public class OrganizationPropertyForm extends GenericOrganizationalUnitPropertyForm {
private SimpleOrganizationPropertiesStep m_step;
public static final String ID = "SimpleOrganization_edit";
private OrganizationPropertiesStep m_step;
public static final String ID = "Organization_edit";
public SimpleOrganizationPropertyForm(final ItemSelectionModel itemModel) {
public OrganizationPropertyForm(final ItemSelectionModel itemModel) {
this(itemModel, null);
}
public SimpleOrganizationPropertyForm(
public OrganizationPropertyForm(
final ItemSelectionModel itemModel,
final SimpleOrganizationPropertiesStep step) {
final OrganizationPropertiesStep step) {
super(itemModel, step);
m_step = step;
addSubmissionListener(this);

View File

@ -0,0 +1,25 @@
<!DOCTYPE stylesheet [
<!ENTITY nbsp "&#160;" ><!-- no-break space = non-breaking space, U+00A0 ISOnum -->
]>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:cms="http://www.arsdigita.com/cms/1.0"
version="1.0">
<xsl:template match="cms:item[objectType='com.arsdigita.cms.contenttypes.Organization']"
mode="cms:CT_graphics"
name="cms:CT_graphics_com_arsdigita_cms_contenttypes_Organization">
<p>
<xsl:value-of select="./name"/>
</p>
</xsl:template>
<xsl:template match="cms:item[objectType='com.arsdigita.cms.contenttypes.Organization']"
mode="cms:CT_text"
name="cms:CT_text_com_arsdigita_cms_contenttypes_Organization">
<p>
<xsl:value-of select="./name"/>
</p>
</xsl:template>
</xsl:stylesheet>

View File

@ -1,12 +0,0 @@
model com.arsdigita.cms.contenttypes;
import com.arsdigita.kernel.ACSObject;
import com.arsdigita.cms.*;
object type SimpleOrganization extends GenericOrganizationalUnit {
reference key (ct_simpleorganizations.organization_id);
}
object type SimpleOrganizationBundle extends GenericOrganizationalUnitBundle {
reference key (ct_simpleorganization_bundles.bundle_id);
}

View File

@ -1,28 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<ctd:content-types xmlns:ctd="http://xmlns.redhat.com/cms/content-types"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://xmlns.redhat.com/cms/content-types content-types.xsd">
<ctd:content-type label="SimpleOrganization"
description="Exposed GenericOrganizationalUnit"
objectType="com.arsdigita.cms.contenttypes.SimpleOrganization"
classname="com.arsdigita.cms.contenttypes.SimpleOrganization">
<ctd:authoring-kit createComponent="com.arsdigita.cms.contenttypes.ui.SimpleOrganizationCreate">
<ctd:authoring-step
labelKey="sciorganization.ui.simpleorganization_properties.title"
labelBundle="com.arsdigita.cms.contenttypes.ui.SimpleOrganizationResources"
descriptionKey="sciorganization.ui.simpleorganization_properties.title"
descriptionBundle="com.arsdigita.cms.contenttypes.ui.SimpleOrganizationResources"
component="com.arsdigita.cms.contenttypes.ui.SimpleOrganizationPropertiesStep"
ordering="1"/>
<ctd:include href="/WEB-INF/content-types/assign-categories-step.xml"/>
</ctd:authoring-kit>
</ctd:content-type>
</ctd:content-types>

View File

@ -1,16 +0,0 @@
<load>
<requires>
<table name="inits"/>
<table name="acs_objects"/>
<table name="cms_items"/>
<initializer class="com.arsdigita.cms.Initializer"/>
</requires>
<provides>
<table name="ct_simpleorganizations"/>
<initializer class="com.arsdigita.cms.contenttypes.SimpleOrganizationInitializer"/>
</provides>
<scripts>
<schema directory="ccm-cms-types-simpleorganization"/>
<data class="com.arsdigita.cms.contenttypes.SimpleOrganizationLoader"/>
</scripts>
</load>

View File

@ -1,24 +0,0 @@
package com.arsdigita.cms.contenttypes;
/**
*
* @author Jens Pelzetter
* @version $Id$
*/
public class SimpleOrganizationInitializer extends ContentTypeInitializer {
public SimpleOrganizationInitializer() {
super("ccm-cms-types-simpleorganization.pdl.mf",
SimpleOrganization.BASE_DATA_OBJECT_TYPE);
}
@Override
public String[] getStylesheets() {
return new String[]{INTERNAL_THEME_TYPES_DIR + "SimpleOrganization.xsl"};
}
@Override
public String getTraversalXML() {
return "/WEB-INF/traversal-adapters/com/arsdigita/cms/contenttypes/SimpleOrganization.xml";
}
}

View File

@ -1,2 +0,0 @@
sciorganization.ui.simpleorganization_properties.title=Basic properties
cms.contenttypes.simpleorganization.type_label=Organization

View File

@ -1,2 +0,0 @@
sciorganization.ui.simpleorganization_properties.title=Basiseigenschaften
cms.contenttypes.simpleorganization.type_label=Organisation

View File

@ -1,19 +0,0 @@
<!DOCTYPE stylesheet [
<!ENTITY nbsp "&#160;" ><!-- no-break space = non-breaking space, U+00A0 ISOnum -->
]>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:cms="http://www.arsdigita.com/cms/1.0"
version="1.0">
<xsl:template match="cms:item[objectType='com.arsdigita.cms.contenttypes.SimpleOrganization']" mode="cms:CT_graphics"
name="cms:CT_graphics_com_arsdigita_cms_contenttypes_SimpleOrganization">
<p><xsl:value-of select="./name"/></p>
</xsl:template>
<xsl:template match="cms:item[objectType='com.arsdigita.cms.contenttypes.SimpleOrganization']" mode="cms:CT_text"
name="cms:CT_text_com_arsdigita_cms_contenttypes_SimpleOrganization">
<p><xsl:value-of select="./name"/></p>
</xsl:template>
</xsl:stylesheet>

View File

@ -6,7 +6,7 @@
<initializer class="com.arsdigita.cms.Initializer"/>
</requires>
<provides>
<table name="ct_organization"/>
<table name="ct_ldn_organization"/>
<initializer class="com.arsdigita.cms.contenttypes.ldn.OrganizationInitializer"/>
</provides>
<scripts>