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-94f89814c4dfmaster
parent
4623f9fedb
commit
21bbb6d7a5
|
|
@ -121,10 +121,7 @@ public class GenericOrganizationalUnitPropertiesStep extends SimpleEditStep {
|
||||||
AuthoringKitWizard parent) {
|
AuthoringKitWizard parent) {
|
||||||
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");
|
||||||
|
|
|
||||||
|
|
@ -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">
|
||||||
|
|
|
||||||
|
|
@ -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">
|
||||||
|
|
|
||||||
|
|
@ -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;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
|
|
@ -65,7 +66,7 @@ public class PublicationWithPublisherPropertyForm
|
||||||
"publications.ui.with_publisher.isbn").localize()));
|
"publications.ui.with_publisher.isbn").localize()));
|
||||||
ParameterModel isbnParam = new StringParameter(
|
ParameterModel isbnParam = new StringParameter(
|
||||||
PublicationWithPublisher.ISBN);
|
PublicationWithPublisher.ISBN);
|
||||||
TextField isbn = new TextField(isbnParam);
|
TextField isbn = new TextField(isbnParam);
|
||||||
add(isbn);
|
add(isbn);
|
||||||
|
|
||||||
add(new Label((String) PublicationGlobalizationUtil.globalize(
|
add(new Label((String) PublicationGlobalizationUtil.globalize(
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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">
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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">
|
||||||
|
|
||||||
|
|
@ -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">
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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"/>
|
||||||
|
|
|
||||||
|
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -6,12 +6,11 @@ package com.arsdigita.cms.contenttypes;
|
||||||
*/
|
*/
|
||||||
public class SciOrganizationLoader extends AbstractContentTypeLoader {
|
public class SciOrganizationLoader extends AbstractContentTypeLoader {
|
||||||
|
|
||||||
private static final String[] TYPES = {
|
private static final String[] TYPES = {
|
||||||
"/WEB-INF/content-types/com/arsdigita/cms/contenttypes/SciOrganization.xml"
|
"/WEB-INF/content-types/com/arsdigita/cms/contenttypes/SciOrganization.xml"
|
||||||
};
|
};
|
||||||
|
|
||||||
public String[] getTypes() {
|
public String[] getTypes() {
|
||||||
return TYPES;
|
return TYPES;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue