Fehlerkorrekturen an den Sci-Modulen und an den Basisklassen für Organization in ccm-cms

git-svn-id: https://svn.libreccm.org/ccm/trunk@551 8810af33-2d31-482b-a856-94f89814c4df
master
jensp 2010-10-02 09:54:47 +00:00
parent 4623f9fedb
commit 21bbb6d7a5
12 changed files with 22 additions and 28 deletions

View File

@ -122,9 +122,6 @@ public class GenericOrganizationalUnitPropertiesStep extends SimpleEditStep {
addStep(new GenericOrganizationalUnitContactPropertiesStep(itemModel, addStep(new GenericOrganizationalUnitContactPropertiesStep(itemModel,
parent), parent),
"cms.contenttypes.ui.orgaunit.contact"); "cms.contenttypes.ui.orgaunit.contact");
addStep(new GenericOrganizationalUnitChildrenPropertiesStep(itemModel,
parent),
"cms.contenttypes.ui.orgaunit.child");
addStep(new GenericOrganizationalUnitPersonPropertiesStep(itemModel, addStep(new GenericOrganizationalUnitPersonPropertiesStep(itemModel,
parent), parent),
"cms.contenttypes.ui.orgaunit.persons"); "cms.contenttypes.ui.orgaunit.persons");

View File

@ -5,7 +5,7 @@
xsi:schemaLocation="http://xmlns.redhat.com/cms/content-types content-types.xsd"> xsi:schemaLocation="http://xmlns.redhat.com/cms/content-types content-types.xsd">
<ctd:content-type <ctd:content-type
label="CollectedVolume" label="SciPublications/CollectedVolume"
description="Base type for collectedVolumes" description="Base type for collectedVolumes"
objectType="com.arsdigita.cms.contenttypes.CollectedVolume" objectType="com.arsdigita.cms.contenttypes.CollectedVolume"
classname="com.arsdigita.cms.contenttypes.CollectedVolume"> classname="com.arsdigita.cms.contenttypes.CollectedVolume">

View File

@ -5,7 +5,7 @@
xsi:schemaLocation="http://xmlns.redhat.com/cms/content-types content-types.xsd"> xsi:schemaLocation="http://xmlns.redhat.com/cms/content-types content-types.xsd">
<ctd:content-type <ctd:content-type
label="Proceedings" label="SciPublications/Proceedings"
description="Base type for collectedVolumes" description="Base type for collectedVolumes"
objectType="com.arsdigita.cms.contenttypes.Proceedings" objectType="com.arsdigita.cms.contenttypes.Proceedings"
classname="com.arsdigita.cms.contenttypes.Proceedings"> classname="com.arsdigita.cms.contenttypes.Proceedings">

View File

@ -17,6 +17,7 @@ import com.arsdigita.cms.contenttypes.PublicationWithPublisher;
import com.arsdigita.cms.contenttypes.Publisher; import com.arsdigita.cms.contenttypes.Publisher;
import com.arsdigita.cms.ui.ItemSearchWidget; import com.arsdigita.cms.ui.ItemSearchWidget;
import org.apache.log4j.Logger; import org.apache.log4j.Logger;
import org.apache.lucene.analysis.LengthFilter;
/** /**
* *

View File

@ -25,7 +25,7 @@ association {
association { association {
SciDepartment[0..1] department = join ct_scidepartments.department_id SciDepartment[0..1] department = join ct_scidepartments.department_id
to ct_scidepartments_projects_map.department_id, to ct_scidepartments_projects_map.department_id,
join ct_scidepartments_projects_map.project_id, join ct_scidepartments_projects_map.project_id
to ct_sciprojects.project_id; to ct_sciprojects.project_id;
SciProject[0..n] projects = join ct_sciprojects.project_id SciProject[0..n] projects = join ct_sciprojects.project_id

View File

@ -6,10 +6,9 @@
<ctd:content-type <ctd:content-type
label="SciDepartment" label="SciDepartment"
description="Base type for publications" description="Base type for departments of scientific organizations"
objectType="com.arsdigita.cms.contenttypes.SciDepartment" objectType="com.arsdigita.cms.contenttypes.SciDepartment"
classname="com.arsdigita.cms.contenttypes.SciDepartment" classname="com.arsdigita.cms.contenttypes.SciDepartment">
isInternal="yes">
<ctd:authoring-kit createComponent="com.arsdigita.cms.ui.authoring.PageCreate"> <ctd:authoring-kit createComponent="com.arsdigita.cms.ui.authoring.PageCreate">

View File

@ -6,10 +6,9 @@
<ctd:content-type <ctd:content-type
label="SciOrganization" label="SciOrganization"
description="Base type for publications" description="Base type for scientific orgnizations"
objectType="com.arsdigita.cms.contenttypes.SciOrganization" objectType="com.arsdigita.cms.contenttypes.SciOrganization"
classname="com.arsdigita.cms.contenttypes.SciOrganization" classname="com.arsdigita.cms.contenttypes.SciOrganization">
isInternal="yes">
<ctd:authoring-kit createComponent="com.arsdigita.cms.ui.authoring.PageCreate"> <ctd:authoring-kit createComponent="com.arsdigita.cms.ui.authoring.PageCreate">

View File

@ -6,10 +6,9 @@
<ctd:content-type <ctd:content-type
label="SciProject" label="SciProject"
description="Base type for publications" description="Projects of scientific organizations."
objectType="com.arsdigita.cms.contenttypes.SciProject" objectType="com.arsdigita.cms.contenttypes.SciProject"
classname="com.arsdigita.cms.contenttypes.SciProject" classname="com.arsdigita.cms.contenttypes.SciProject">
isInternal="yes">
<ctd:authoring-kit createComponent="com.arsdigita.cms.ui.authoring.PageCreate"> <ctd:authoring-kit createComponent="com.arsdigita.cms.ui.authoring.PageCreate">

View File

@ -6,15 +6,15 @@
<initializer class="com.arsdigita.cms.Initializer"/> <initializer class="com.arsdigita.cms.Initializer"/>
</requires> </requires>
<provides> <provides>
<table name="ct_sciorganizatations"/> <table name="ct_sciorganizations"/>
<table name="ct_scidepartments"/> <table name="ct_scidepartments"/>
<table name="ct_sciprojects"/> <table name="ct_sciprojects"/>
<initializer name="com.arsdigita.cms.contenttypes.SciOrganizationInitializer"/> <initializer class="com.arsdigita.cms.contenttypes.SciOrganizationInitializer"/>
<initializer name="com.arsdigita.cms.contenttypes.SciDepartmentInitializer"/> <initializer class="com.arsdigita.cms.contenttypes.SciDepartmentInitializer"/>
<initializer name="com.arsdigita.cms.contenttypes.SciProjectInitializer"/> <initializer class="com.arsdigita.cms.contenttypes.SciProjectInitializer"/>
</provides> </provides>
<scripts> <scripts>
<schema directory="ccm-sci-types.organization"/> <schema directory="ccm-sci-types-organization"/>
<data class="com.arsdigita.cms.contenttypes.SciOrganizationLoader"/> <data class="com.arsdigita.cms.contenttypes.SciOrganizationLoader"/>
<data class="com.arsdigita.cms.contenttypes.SciDepartmentLoader"/> <data class="com.arsdigita.cms.contenttypes.SciDepartmentLoader"/>
<data class="com.arsdigita.cms.contenttypes.SciProjectLoader"/> <data class="com.arsdigita.cms.contenttypes.SciProjectLoader"/>

View File

@ -12,7 +12,7 @@ public class SciOrganizationInitializer extends ContentTypeInitializer {
SciOrganizationInitializer.class); SciOrganizationInitializer.class);
public SciOrganizationInitializer() { public SciOrganizationInitializer() {
super("ccm-sci-types-organization.odl.mf", super("ccm-sci-types-organization.pdl.mf",
SciOrganization.BASE_DATA_OBJECT_TYPE); SciOrganization.BASE_DATA_OBJECT_TYPE);
} }

View File

@ -13,5 +13,4 @@ public class SciOrganizationLoader extends AbstractContentTypeLoader {
public String[] getTypes() { public String[] getTypes() {
return TYPES; return TYPES;
} }
} }

View File

@ -52,7 +52,7 @@ public class SciProjectSubProjectsCollection extends DomainCollection {
link.set(ORDER, order); link.set(ORDER, order);
} }
public void swapWithNext(SciSubProject subproject) { public void swapWithNext(SciProject subproject) {
int currentPosition = 0; int currentPosition = 0;
int currentIndex = 0; int currentIndex = 0;
int nextIndex = 0; int nextIndex = 0;
@ -99,7 +99,7 @@ public class SciProjectSubProjectsCollection extends DomainCollection {
this.rewind(); this.rewind();
} }
public void swapWithPrevious(SciSubProject subproject) { public void swapWithPrevious(SciProject subproject) {
int previousPosition = 0; int previousPosition = 0;
int previousIndex = 0; int previousIndex = 0;
int currentPosition = 0; int currentPosition = 0;
@ -148,7 +148,7 @@ public class SciProjectSubProjectsCollection extends DomainCollection {
this.rewind(); this.rewind();
} }
public SciSubProject getSubProject() { public SciProject getSubProject() {
return new SciProject(m_dataCollection.getDataObject()); return new SciProject(m_dataCollection.getDataObject());
} }
} }