Publications Modul: Kompiliert, aber load-bundle funktioniert noch nicht.
git-svn-id: https://svn.libreccm.org/ccm/trunk@517 8810af33-2d31-482b-a856-94f89814c4dfmaster
parent
7c5c3e6165
commit
5207047197
|
|
@ -4,7 +4,6 @@
|
|||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://xmlns.redhat.com/cms/content-types content-types.xsd">
|
||||
|
||||
<!-- Is internal will be set the yes when testing is finished. -->
|
||||
<ctd:content-type
|
||||
label="Organization"
|
||||
description="A content type for organizations."
|
||||
|
|
|
|||
|
|
@ -18,7 +18,6 @@
|
|||
*/
|
||||
package com.arsdigita.cms.contenttypes;
|
||||
|
||||
import com.arsdigita.runtime.LegacyInitEvent;
|
||||
import org.apache.log4j.Logger;
|
||||
|
||||
/**
|
||||
|
|
@ -27,15 +26,18 @@ import org.apache.log4j.Logger;
|
|||
*/
|
||||
public class OrganizationalUnitInitializer extends ContentTypeInitializer {
|
||||
|
||||
private final static Logger logger = Logger.getLogger(OrganizationalUnitInitializer.class);
|
||||
private final static Logger logger = Logger.getLogger(
|
||||
OrganizationalUnitInitializer.class);
|
||||
|
||||
public OrganizationalUnitInitializer() {
|
||||
super("ccm-cms-types-organizationalunit.pdl.mf", OrganizationalUnit.BASE_DATA_OBJECT_TYPE);
|
||||
super("ccm-cms-types-organizationalunit.pdl.mf",
|
||||
OrganizationalUnit.BASE_DATA_OBJECT_TYPE);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String[] getStylesheets() {
|
||||
return new String[] { "/static/content-types/com/arsdigita/cms/contenttypes/OrganizationalUnit.xsl" };
|
||||
return new String[]{
|
||||
"/static/content-types/com/arsdigita/cms/contenttypes/OrganizationalUnit.xsl"};
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
|
|
@ -0,0 +1,25 @@
|
|||
<?xml version="1.0"?>
|
||||
<ccm:application xmlns:ccm="http://ccm.redhat.com/ccm-project"
|
||||
name="ccm-cms-types-organization"
|
||||
prettyName="OpenCCM Content Types"
|
||||
version="6.6.0"
|
||||
release="1"
|
||||
webapp="ROOT">
|
||||
<ccm:dependencies>
|
||||
<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-cms-types-department" version="6.6.0" relation="ge"/>
|
||||
</ccm:dependencies>
|
||||
<ccm:directories>
|
||||
<ccm:directory name="pdl"/>
|
||||
<ccm:directory name="sql"/>
|
||||
<ccm:directory name="src"/>
|
||||
</ccm:directories>
|
||||
<ccm:contacts>
|
||||
<ccm:contact uri="http://www.redhat.com/software/rhea" type="website"/>
|
||||
<ccm:contact uri="mailto:rhea@redhat.com" type="support"/>
|
||||
</ccm:contacts>
|
||||
<ccm:description>
|
||||
Content types and applications for publications.
|
||||
</ccm:description>
|
||||
</ccm:application>
|
||||
|
|
@ -0,0 +1,39 @@
|
|||
//
|
||||
// Copyright (C) 2010 Jens Pelzetter, for the Center of Social Politics (ZeS) of
|
||||
// the University of Bremen
|
||||
//
|
||||
// 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
|
||||
//
|
||||
//
|
||||
|
||||
model com.arsdigita.cms.contenttypes;
|
||||
|
||||
import com.arsdigita.cms.ContentPage;
|
||||
|
||||
// PDL definition for an article in a journal
|
||||
object type ArticleInJournal extends Publication {
|
||||
|
||||
String[0..1] journal = ct_article_in_journal.journal VARCHAR(512);
|
||||
Integer[0..1] volume = ct_article_in_journal.volume INTEGER;
|
||||
String[0..1] issue = ct_article_in_journal.issue VARCHAR(512);
|
||||
Integer[0..1] pagesFrom = ct_article_in_journal.pages_from INTEGER;
|
||||
Integer[0..1] pagesTo = ct_article_in_journal.pages_to INTEGER;
|
||||
String[0..1] issn = ct_article_in_journal.issn VARCHAR(9);
|
||||
String[0..1] url = ct_article_in_journal.url VARCHAR(512);
|
||||
Date[0..1] publicationDate = ct_article_in_journal.publication_date DATE;
|
||||
|
||||
reference key (ct_article_in_journal.article_in_journal_id);
|
||||
|
||||
}
|
||||
|
|
@ -28,7 +28,7 @@ object type CollectedVolume extends PublicationWithPublisher {
|
|||
Integer[0..1] volume = ct_collected_volume.volume INTEGER;
|
||||
Integer[0..1] numberOfVolumes = ct_collected_volume.number_of_volumes INTEGER;
|
||||
Integer[0..1] numberOfPages = ct_collected_volume._number_of_pages INTEGER;
|
||||
String[0..1] editon = ct_collected_volume.editon VARCHAR(256)
|
||||
String[0..1] editon = ct_collected_volume.editon VARCHAR(256);
|
||||
|
||||
reference key (ct_collected_volume.collected_volume_id);
|
||||
}
|
||||
|
|
@ -43,7 +43,7 @@ association {
|
|||
ArticleInCollectedVolume[0..n] articles = join ct_collected_volume.collected_volume_id
|
||||
to ct_collected_volume_article_map.collected_volume_id,
|
||||
join ct_collected_volume_article_map.article_id
|
||||
to ct_article_in_collected_volume.article_id
|
||||
to ct_article_in_collected_volume.article_id;
|
||||
|
||||
Integer[0..1] articleOrder = ct_collected_volume_article_map.article_order INTEGER;
|
||||
|
||||
|
|
|
|||
|
|
@ -26,23 +26,13 @@ import com.arsdigita.cms.ContentPage;
|
|||
object type Expertise extends Publication {
|
||||
|
||||
String[0..1] place = ct_expertise.place VARCHAR(256);
|
||||
GenericOrganizationalUnit[0..1] organization = join cms_organizationalunits.organizationalunit_id
|
||||
to ct_expertise.organization_id;
|
||||
Integer[0..1] numberOfPages = ct_expertise.number_of_pages INTEGER;
|
||||
String[0..1] url = ct_expertise.url VARCHAR(512);
|
||||
GenericOrganizationalUnit[0..1] orderer = join cms_organizationalunits.organizationalunit_id
|
||||
to ct_expertise.orderer_id;
|
||||
|
||||
reference key (ct_expertise.expertise_id);
|
||||
|
||||
}
|
||||
|
||||
assoication {
|
||||
|
||||
GenericOrganizationalUnit[0..1] organization = join cms_organizationalunit.organizationalunit_id
|
||||
to ct_expertise.organization_id;
|
||||
|
||||
}
|
||||
|
||||
assoication {
|
||||
|
||||
GenericOrganizationalUnit[0..1] orderer = join cms_organizationalunit.organizationalunit_id
|
||||
to ct_expertise.orderer_id;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -26,18 +26,13 @@ import com.arsdigita.cms.ContentPage;
|
|||
object type InternetArticle extends Publication {
|
||||
|
||||
String[0..1] place = ct_internet_article.place VARCHAR(256);
|
||||
GenericOrganizationalUnit[0..1] organization = join cms_organizationalunits.organizationalunit_id
|
||||
to ct_internet_article.organization_id;
|
||||
String[0..1] number = ct_internet_article.number VARCHAR(128);
|
||||
Integer[0..1] numberOfPages = ct_internet_article.number_of_pages INTEGER;
|
||||
String[0..1] edition = ct_internet_article.edition VARCHAR(256);
|
||||
String[0..1] issn = ct_internet_article.issn VARCHAR(8);
|
||||
String[0..1] issn = ct_internet_article.issn VARCHAR(9);
|
||||
Date[0..1] publicationDate = ct_internet_article.publicationDate DATE;
|
||||
|
||||
reference key (ct_internet_article.internet_article_Id);
|
||||
}
|
||||
|
||||
assoication {
|
||||
|
||||
GenericOrganizationalUnit[0..1] organization = join cms_organizationalunit.organizationalunit_id
|
||||
to ct_internet_article.organization_id;
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -28,6 +28,8 @@ object type Monograph extends PublicationWithPublisher {
|
|||
Integer[0..1] volume = ct_monograph.volume INTEGER;
|
||||
Integer[0..1] numberOfVolumes = ct_monograph.number_of_volumes INTEGER;
|
||||
Integer[0..1] numberOfPages = ct_monograph.number_of_pages INTEGER;
|
||||
String[0..1] edition = ct_monograph.edition = VARCHAR(512);
|
||||
String[0..1] edition = ct_monograph.edition VARCHAR(512);
|
||||
|
||||
reference key (ct_monograph.monograph_id);
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ import com.arsdigita.cms.ContentPage;
|
|||
// PDL definition for a publication with publisher
|
||||
object type PublicationWithPublisher extends Publication {
|
||||
|
||||
String[0..1] isbn = ct_publication_with_publisher.isbn VARCHAR(13);
|
||||
String[0..1] isbn = ct_publication_with_publisher.isbn VARCHAR(17);
|
||||
component Publisher[0..1] publisher = join ct_publication_with_publisher.publication_with_publisher_id
|
||||
to ct_publisher.publisher_id;
|
||||
|
||||
|
|
|
|||
|
|
@ -25,9 +25,9 @@ import com.arsdigita.cms.*;
|
|||
// PDL definition for a publisher
|
||||
object type Publisher extends GenericOrganizationalUnit {
|
||||
|
||||
String[0..1] place = ct_publisher.place VARCHAR(256)
|
||||
String[0..1] place = ct_publisher.place VARCHAR(256);
|
||||
|
||||
reference key (ct_publisher.publisher_id)
|
||||
reference key (ct_publisher.publisher_id);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -27,12 +27,12 @@ object type Review extends Publication {
|
|||
|
||||
String[0..1] journal = ct_review.journal VARCHAR(512);
|
||||
Integer[0..1] volume = ct_review.volume INTEGER;
|
||||
String[0.1] issue = ct_review.issue VARCHAR(512);
|
||||
String[0..1] issue = ct_review.issue VARCHAR(512);
|
||||
Integer[0..1] pagesFrom = ct_review.pages_from INTEGER;
|
||||
Integer[0..1] pagesto = ct_review.pages_to INTEGER;
|
||||
String[0..1] issn = ct_review.issn VARCHAR(8);
|
||||
String[0..1] issn = ct_review.issn VARCHAR(9);
|
||||
String[0..1] url = ct_review.url VARCHAR(512);
|
||||
Date[0..1] publicationDate = ct_review.publication_date Date;
|
||||
Date[0..1] publicationDate = ct_review.publication_date DATE;
|
||||
|
||||
reference key (ct_review.review_id);
|
||||
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ model com.arsdigita.cms.contenttypes;
|
|||
import com.arsdigita.cms.ContentPage;
|
||||
|
||||
// The contenttype described in this PDL file represents a series of publications.
|
||||
object types Series extends ContentPage {
|
||||
object type Series extends ContentPage {
|
||||
|
||||
reference key (ct_series.series_id);
|
||||
|
||||
|
|
@ -32,7 +32,7 @@ object types Series extends ContentPage {
|
|||
//Assoication for the editship of a series
|
||||
association {
|
||||
|
||||
Series[0..1] series = join cms_persons.persons_id
|
||||
Series[0..1] series = join cms_persons.person_id
|
||||
to ct_series_editship.person_id,
|
||||
join ct_series_editship.series_id
|
||||
to ct_series.series_id;
|
||||
|
|
@ -43,8 +43,8 @@ association {
|
|||
to cms_persons.person_id;
|
||||
|
||||
// Additional attributes for the editship
|
||||
Date[0..1] from = ct_series_editship.from DATE
|
||||
Date[0..] to = ct_series_editship.to DATE
|
||||
Date[0..1] dateFrom = ct_series_editship.dateFrom DATE;
|
||||
Date[0..1] dateTo = ct_series_editship.dateTo DATE;
|
||||
|
||||
//Sorting is first done by the period defined by from and to,
|
||||
//and secondly by the following order attribute
|
||||
|
|
|
|||
|
|
@ -26,15 +26,10 @@ import com.arsdigita.cms.ContentPage;
|
|||
object type UnPublished extends Publication {
|
||||
|
||||
String[0..1] place = ct_unpublished.place VARCHAR(256);
|
||||
GenericOrganizationalUnit[0..1] organization = join cms_organizationalunits.organizationalunit_id
|
||||
to ct_internet_article.organization_id;
|
||||
String[0..1] number = ct_unpublished.number VARCHAR(128);
|
||||
Integer[0..1] numberOfPages = ct_unpublished.number_of_pages INTEGER;
|
||||
|
||||
reference key (ct_unpublished.unpublished_id);
|
||||
}
|
||||
|
||||
assoication {
|
||||
|
||||
GenericOrganizationalUnit[0..1] organization = join cms_organizationalunit.organizationalunit_id
|
||||
to ct_internet_article.organization_id;
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -0,0 +1,30 @@
|
|||
<?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="ArticleInCollectedVolume"
|
||||
description="Base type for articleInCollectedVolumes"
|
||||
objectType="com.arsdigita.cms.contenttypes.ArticleInCollectedVolume"
|
||||
classname="com.arsdigita.cms.contenttypes.ArticleInCollectedVolume">
|
||||
|
||||
<ctd:authoring-kit createComponent="com.arsdigita.cms.ui.authoring.PageCreate">
|
||||
|
||||
<ctd:authoring-step
|
||||
labelKey="cms.contenttypes.articleInCollectedVolume_properties.title"
|
||||
labelBundle="cms.contenttypes.cms.ui.CMSResources"
|
||||
descriptionKey="cms.contenttypes.articleInCollectedVolume.basic_properties.description"
|
||||
descriptionBundle="com.arsdigita.cms.ui.CMSResources"
|
||||
component="com.arsdigita.cms.contenttypes.ui.ArticleInCollectedVolumePropertiesStep"
|
||||
ordering="1"/>
|
||||
|
||||
<ctd:include href="/WEB/content-types/assign-categories-step.xml"/>
|
||||
|
||||
</ctd:authoring-kit>
|
||||
|
||||
</ctd:content-type>
|
||||
|
||||
|
||||
</ctd:content-types>
|
||||
|
|
@ -0,0 +1,30 @@
|
|||
<?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="ArticleInJournal"
|
||||
description="Base type for articleInJournals"
|
||||
objectType="com.arsdigita.cms.contenttypes.ArticleInJournal"
|
||||
classname="com.arsdigita.cms.contenttypes.ArticleInJournal">
|
||||
|
||||
<ctd:authoring-kit createComponent="com.arsdigita.cms.ui.authoring.PageCreate">
|
||||
|
||||
<ctd:authoring-step
|
||||
labelKey="cms.contenttypes.articleInJournal_properties.title"
|
||||
labelBundle="cms.contenttypes.cms.ui.CMSResources"
|
||||
descriptionKey="cms.contenttypes.articleInJournal.basic_properties.description"
|
||||
descriptionBundle="com.arsdigita.cms.ui.CMSResources"
|
||||
component="com.arsdigita.cms.contenttypes.ui.ArticleInJournalPropertiesStep"
|
||||
ordering="1"/>
|
||||
|
||||
<ctd:include href="/WEB/content-types/assign-categories-step.xml"/>
|
||||
|
||||
</ctd:authoring-kit>
|
||||
|
||||
</ctd:content-type>
|
||||
|
||||
|
||||
</ctd:content-types>
|
||||
|
|
@ -0,0 +1,30 @@
|
|||
<?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="CollectedVolume"
|
||||
description="Base type for collectedVolumes"
|
||||
objectType="com.arsdigita.cms.contenttypes.CollectedVolume"
|
||||
classname="com.arsdigita.cms.contenttypes.CollectedVolume">
|
||||
|
||||
<ctd:authoring-kit createComponent="com.arsdigita.cms.ui.authoring.PageCreate">
|
||||
|
||||
<ctd:authoring-step
|
||||
labelKey="cms.contenttypes.collectedVolume_properties.title"
|
||||
labelBundle="cms.contenttypes.cms.ui.CMSResources"
|
||||
descriptionKey="cms.contenttypes.collectedVolume.basic_properties.description"
|
||||
descriptionBundle="com.arsdigita.cms.ui.CMSResources"
|
||||
component="com.arsdigita.cms.contenttypes.ui.CollectedVolumePropertiesStep"
|
||||
ordering="1"/>
|
||||
|
||||
<ctd:include href="/WEB/content-types/assign-categories-step.xml"/>
|
||||
|
||||
</ctd:authoring-kit>
|
||||
|
||||
</ctd:content-type>
|
||||
|
||||
|
||||
</ctd:content-types>
|
||||
|
|
@ -0,0 +1,30 @@
|
|||
<?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="Expertise"
|
||||
description="Base type for Expertises"
|
||||
objectType="com.arsdigita.cms.contenttypes.Expertise"
|
||||
classname="com.arsdigita.cms.contenttypes.Expertise">
|
||||
|
||||
<ctd:authoring-kit createComponent="com.arsdigita.cms.ui.authoring.PageCreate">
|
||||
|
||||
<ctd:authoring-step
|
||||
labelKey="cms.contenttypes.expertise_properties.title"
|
||||
labelBundle="cms.contenttypes.cms.ui.CMSResources"
|
||||
descriptionKey="cms.contenttypes.expertise.basic_properties.description"
|
||||
descriptionBundle="com.arsdigita.cms.ui.CMSResources"
|
||||
component="com.arsdigita.cms.contenttypes.ui.ExpertisePropertiesStep"
|
||||
ordering="1"/>
|
||||
|
||||
<ctd:include href="/WEB/content-types/assign-categories-step.xml"/>
|
||||
|
||||
</ctd:authoring-kit>
|
||||
|
||||
</ctd:content-type>
|
||||
|
||||
|
||||
</ctd:content-types>
|
||||
|
|
@ -0,0 +1,30 @@
|
|||
<?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="GreyLiterature"
|
||||
description="Base type for greyLiteratures"
|
||||
objectType="com.arsdigita.cms.contenttypes.GreyLiterature"
|
||||
classname="com.arsdigita.cms.contenttypes.GreyLiterature">
|
||||
|
||||
<ctd:authoring-kit createComponent="com.arsdigita.cms.ui.authoring.PageCreate">
|
||||
|
||||
<ctd:authoring-step
|
||||
labelKey="cms.contenttypes.greyLiterature_properties.title"
|
||||
labelBundle="cms.contenttypes.cms.ui.CMSResources"
|
||||
descriptionKey="cms.contenttypes.greyLiterature.basic_properties.description"
|
||||
descriptionBundle="com.arsdigita.cms.ui.CMSResources"
|
||||
component="com.arsdigita.cms.contenttypes.ui.GreyLiteraturePropertiesStep"
|
||||
ordering="1"/>
|
||||
|
||||
<ctd:include href="/WEB/content-types/assign-categories-step.xml"/>
|
||||
|
||||
</ctd:authoring-kit>
|
||||
|
||||
</ctd:content-type>
|
||||
|
||||
|
||||
</ctd:content-types>
|
||||
|
|
@ -0,0 +1,30 @@
|
|||
<?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="InProceedings"
|
||||
description="Base type for inProceedingss"
|
||||
objectType="com.arsdigita.cms.contenttypes.InProceedings"
|
||||
classname="com.arsdigita.cms.contenttypes.InProceedings">
|
||||
|
||||
<ctd:authoring-kit createComponent="com.arsdigita.cms.ui.authoring.PageCreate">
|
||||
|
||||
<ctd:authoring-step
|
||||
labelKey="cms.contenttypes.inProceedings_properties.title"
|
||||
labelBundle="cms.contenttypes.cms.ui.CMSResources"
|
||||
descriptionKey="cms.contenttypes.inProceedings.basic_properties.description"
|
||||
descriptionBundle="com.arsdigita.cms.ui.CMSResources"
|
||||
component="com.arsdigita.cms.contenttypes.ui.InProceedingsPropertiesStep"
|
||||
ordering="1"/>
|
||||
|
||||
<ctd:include href="/WEB/content-types/assign-categories-step.xml"/>
|
||||
|
||||
</ctd:authoring-kit>
|
||||
|
||||
</ctd:content-type>
|
||||
|
||||
|
||||
</ctd:content-types>
|
||||
|
|
@ -0,0 +1,30 @@
|
|||
<?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="InternetArticle"
|
||||
description="Base type for InternetArticles"
|
||||
objectType="com.arsdigita.cms.contenttypes.InternetArticle"
|
||||
classname="com.arsdigita.cms.contenttypes.InternetArticle">
|
||||
|
||||
<ctd:authoring-kit createComponent="com.arsdigita.cms.ui.authoring.PageCreate">
|
||||
|
||||
<ctd:authoring-step
|
||||
labelKey="cms.contenttypes.InternetArticle_properties.title"
|
||||
labelBundle="cms.contenttypes.cms.ui.CMSResources"
|
||||
descriptionKey="cms.contenttypes.internetArticle.basic_properties.description"
|
||||
descriptionBundle="com.arsdigita.cms.ui.CMSResources"
|
||||
component="com.arsdigita.cms.contenttypes.ui.internetArticlePropertiesStep"
|
||||
ordering="1"/>
|
||||
|
||||
<ctd:include href="/WEB/content-types/assign-categories-step.xml"/>
|
||||
|
||||
</ctd:authoring-kit>
|
||||
|
||||
</ctd:content-type>
|
||||
|
||||
|
||||
</ctd:content-types>
|
||||
|
|
@ -0,0 +1,30 @@
|
|||
<?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="Monograph"
|
||||
description="Base type for monographs"
|
||||
objectType="com.arsdigita.cms.contenttypes.Monograph"
|
||||
classname="com.arsdigita.cms.contenttypes.Monograph">
|
||||
|
||||
<ctd:authoring-kit createComponent="com.arsdigita.cms.ui.authoring.PageCreate">
|
||||
|
||||
<ctd:authoring-step
|
||||
labelKey="cms.contenttypes.monograph_properties.title"
|
||||
labelBundle="cms.contenttypes.cms.ui.CMSResources"
|
||||
descriptionKey="cms.contenttypes.monograph.basic_properties.description"
|
||||
descriptionBundle="com.arsdigita.cms.ui.CMSResources"
|
||||
component="com.arsdigita.cms.contenttypes.ui.MonographPropertiesStep"
|
||||
ordering="1"/>
|
||||
|
||||
<ctd:include href="/WEB/content-types/assign-categories-step.xml"/>
|
||||
|
||||
</ctd:authoring-kit>
|
||||
|
||||
</ctd:content-type>
|
||||
|
||||
|
||||
</ctd:content-types>
|
||||
|
|
@ -0,0 +1,31 @@
|
|||
<?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="Publication"
|
||||
description="Base type for publications"
|
||||
objectType="com.arsdigita.cms.contenttypes.Publication"
|
||||
classname="com.arsdigita.cms.contenttypes.Publication"
|
||||
isInternal="yes">
|
||||
|
||||
<ctd:authoring-kit createComponent="com.arsdigita.cms.ui.authoring.PageCreate">
|
||||
|
||||
<ctd:authoring-step
|
||||
labelKey="cms.contenttypes.publications_properties.title"
|
||||
labelBundle="cms.contenttypes.cms.ui.CMSResources"
|
||||
descriptionKey="cms.contenttypes.publication.basic_properties.description"
|
||||
descriptionBundle="com.arsdigita.cms.ui.CMSResources"
|
||||
component="com.arsdigita.cms.contenttypes.ui.PublicationPropertiesStep"
|
||||
ordering="1"/>
|
||||
|
||||
<ctd:include href="/WEB/content-types/assign-categories-step.xml"/>
|
||||
|
||||
</ctd:authoring-kit>
|
||||
|
||||
</ctd:content-type>
|
||||
|
||||
|
||||
</ctd:content-types>
|
||||
|
|
@ -0,0 +1,31 @@
|
|||
<?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="PublicationWithPublisher"
|
||||
description="Base type for publications"
|
||||
objectType="com.arsdigita.cms.contenttypes.PublicationWithPublisher"
|
||||
classname="com.arsdigita.cms.contenttypes.PublicationWithPublisher"
|
||||
isInternal="yes">
|
||||
|
||||
<ctd:authoring-kit createComponent="com.arsdigita.cms.ui.authoring.PageCreate">
|
||||
|
||||
<ctd:authoring-step
|
||||
labelKey="cms.contenttypes.publication_with_publishers_properties.title"
|
||||
labelBundle="cms.contenttypes.cms.ui.CMSResources"
|
||||
descriptionKey="cms.contenttypes.publication_with_publisher.basic_properties.description"
|
||||
descriptionBundle="com.arsdigita.cms.ui.CMSResources"
|
||||
component="com.arsdigita.cms.contenttypes.ui.PublicationWithPublisherPropertiesStep"
|
||||
ordering="1"/>
|
||||
|
||||
<ctd:include href="/WEB/content-types/assign-categories-step.xml"/>
|
||||
|
||||
</ctd:authoring-kit>
|
||||
|
||||
</ctd:content-type>
|
||||
|
||||
|
||||
</ctd:content-types>
|
||||
|
|
@ -0,0 +1,30 @@
|
|||
<?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="Publisher"
|
||||
description="Base type for publishers"
|
||||
objectType="com.arsdigita.cms.contenttypes.Publisher"
|
||||
classname="com.arsdigita.cms.contenttypes.Publisher">
|
||||
|
||||
<ctd:authoring-kit createComponent="com.arsdigita.cms.ui.authoring.PageCreate">
|
||||
|
||||
<ctd:authoring-step
|
||||
labelKey="cms.contenttypes.publisher_properties.title"
|
||||
labelBundle="cms.contenttypes.cms.ui.CMSResources"
|
||||
descriptionKey="cms.contenttypes.publisher.basic_properties.description"
|
||||
descriptionBundle="com.arsdigita.cms.ui.CMSResources"
|
||||
component="com.arsdigita.cms.contenttypes.ui.PublisherPropertiesStep"
|
||||
ordering="1"/>
|
||||
|
||||
<ctd:include href="/WEB/content-types/assign-categories-step.xml"/>
|
||||
|
||||
</ctd:authoring-kit>
|
||||
|
||||
</ctd:content-type>
|
||||
|
||||
|
||||
</ctd:content-types>
|
||||
|
|
@ -0,0 +1,30 @@
|
|||
<?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="Review"
|
||||
description="Base type for reviews"
|
||||
objectType="com.arsdigita.cms.contenttypes.Review"
|
||||
classname="com.arsdigita.cms.contenttypes.Review">
|
||||
|
||||
<ctd:authoring-kit createComponent="com.arsdigita.cms.ui.authoring.PageCreate">
|
||||
|
||||
<ctd:authoring-step
|
||||
labelKey="cms.contenttypes.review_properties.title"
|
||||
labelBundle="cms.contenttypes.cms.ui.CMSResources"
|
||||
descriptionKey="cms.contenttypes.review.basic_properties.description"
|
||||
descriptionBundle="com.arsdigita.cms.ui.CMSResources"
|
||||
component="com.arsdigita.cms.contenttypes.ui.ReviewPropertiesStep"
|
||||
ordering="1"/>
|
||||
|
||||
<ctd:include href="/WEB/content-types/assign-categories-step.xml"/>
|
||||
|
||||
</ctd:authoring-kit>
|
||||
|
||||
</ctd:content-type>
|
||||
|
||||
|
||||
</ctd:content-types>
|
||||
|
|
@ -0,0 +1,30 @@
|
|||
<?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="Series"
|
||||
description="Base type for seriess"
|
||||
objectType="com.arsdigita.cms.contenttypes.Series"
|
||||
classname="com.arsdigita.cms.contenttypes.Series">
|
||||
|
||||
<ctd:authoring-kit createComponent="com.arsdigita.cms.ui.authoring.PageCreate">
|
||||
|
||||
<ctd:authoring-step
|
||||
labelKey="cms.contenttypes.series_properties.title"
|
||||
labelBundle="cms.contenttypes.cms.ui.CMSResources"
|
||||
descriptionKey="cms.contenttypes.series.basic_properties.description"
|
||||
descriptionBundle="com.arsdigita.cms.ui.CMSResources"
|
||||
component="com.arsdigita.cms.contenttypes.ui.SeriesPropertiesStep"
|
||||
ordering="1"/>
|
||||
|
||||
<ctd:include href="/WEB/content-types/assign-categories-step.xml"/>
|
||||
|
||||
</ctd:authoring-kit>
|
||||
|
||||
</ctd:content-type>
|
||||
|
||||
|
||||
</ctd:content-types>
|
||||
|
|
@ -0,0 +1,31 @@
|
|||
<?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="UnPublished"
|
||||
description="Base type for unPublisheds"
|
||||
objectType="com.arsdigita.cms.contenttypes.UnPublished"
|
||||
classname="com.arsdigita.cms.contenttypes.UnPublished"
|
||||
isInternal="yes">
|
||||
|
||||
<ctd:authoring-kit createComponent="com.arsdigita.cms.ui.authoring.PageCreate">
|
||||
|
||||
<ctd:authoring-step
|
||||
labelKey="cms.contenttypes.unPublished_properties.title"
|
||||
labelBundle="cms.contenttypes.cms.ui.CMSResources"
|
||||
descriptionKey="cms.contenttypes.unPublished.basic_properties.description"
|
||||
descriptionBundle="com.arsdigita.cms.ui.CMSResources"
|
||||
component="com.arsdigita.cms.contenttypes.ui.UnPublishedPropertiesStep"
|
||||
ordering="1"/>
|
||||
|
||||
<ctd:include href="/WEB/content-types/assign-categories-step.xml"/>
|
||||
|
||||
</ctd:authoring-kit>
|
||||
|
||||
</ctd:content-type>
|
||||
|
||||
|
||||
</ctd:content-types>
|
||||
|
|
@ -0,0 +1,30 @@
|
|||
<?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="WorkingPaper"
|
||||
description="Base type for workingPapers"
|
||||
objectType="com.arsdigita.cms.contenttypes.WorkingPaper"
|
||||
classname="com.arsdigita.cms.contenttypes.WorkingPaper">
|
||||
|
||||
<ctd:authoring-kit createComponent="com.arsdigita.cms.ui.authoring.PageCreate">
|
||||
|
||||
<ctd:authoring-step
|
||||
labelKey="cms.contenttypes.workingPaper_properties.title"
|
||||
labelBundle="cms.contenttypes.cms.ui.CMSResources"
|
||||
descriptionKey="cms.contenttypes.workingPaper.basic_properties.description"
|
||||
descriptionBundle="com.arsdigita.cms.ui.CMSResources"
|
||||
component="com.arsdigita.cms.contenttypes.ui.WorkingPaperPropertiesStep"
|
||||
ordering="1"/>
|
||||
|
||||
<ctd:include href="/WEB/content-types/assign-categories-step.xml"/>
|
||||
|
||||
</ctd:authoring-kit>
|
||||
|
||||
</ctd:content-type>
|
||||
|
||||
|
||||
</ctd:content-types>
|
||||
|
|
@ -0,0 +1,20 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<xrd:adapters
|
||||
xmlns:xrd="http://xmlns.redhat.com/schemas/waf/xml-renderer-rules"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://rhea.redhat.com/schemas/waf/xml-renderer-rules xml-renderer-rules.xsd">
|
||||
|
||||
<xrd:context name="com.arsdigita.cms.contenttypes.CollectedVolume" >
|
||||
|
||||
<xrd:adapter objectType="com.arsdigita.cms.contenttypes.CollectedVolume"
|
||||
extends="com.arsdigita.cms.PublicationWithPublisher">
|
||||
|
||||
<xrd:associations rule="include">
|
||||
<xrd:property name="/object/articles"/>
|
||||
</xrd:associations>
|
||||
|
||||
</xrd:adapter>
|
||||
|
||||
</xrd:context>
|
||||
|
||||
</xrd:adapters>
|
||||
|
|
@ -0,0 +1,20 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<xrd:adapters
|
||||
xmlns:xrd="http://xmlns.redhat.com/schemas/waf/xml-renderer-rules"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://rhea.redhat.com/schemas/waf/xml-renderer-rules xml-renderer-rules.xsd">
|
||||
|
||||
<xrd:context name="com.arsdigita.cms.contenttypes.Publication" >
|
||||
|
||||
<xrd:adapter objectType="com.arsdigita.cms.contenttypes.Publication"
|
||||
extends="com.arsdigita.cms.ContentPage">
|
||||
|
||||
<xrd:associations rule="include">
|
||||
<xrd:property name="/object/authors"/>
|
||||
</xrd:associations>
|
||||
|
||||
</xrd:adapter>
|
||||
|
||||
</xrd:context>
|
||||
|
||||
</xrd:adapters>
|
||||
|
|
@ -0,0 +1,20 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<xrd:adapters
|
||||
xmlns:xrd="http://xmlns.redhat.com/schemas/waf/xml-renderer-rules"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://rhea.redhat.com/schemas/waf/xml-renderer-rules xml-renderer-rules.xsd">
|
||||
|
||||
<xrd:context name="com.arsdigita.cms.contenttypes.PublicationWithPublisher" >
|
||||
|
||||
<xrd:adapter objectType="com.arsdigita.cms.contenttypes.PublicationWithPublisher"
|
||||
extends="com.arsdigita.cms.contenttypes.Publication">
|
||||
|
||||
<xrd:associations rule="include">
|
||||
<xrd:property name="/object/publisher"/>
|
||||
</xrd:associations>
|
||||
|
||||
</xrd:adapter>
|
||||
|
||||
</xrd:context>
|
||||
|
||||
</xrd:adapters>
|
||||
|
|
@ -0,0 +1,21 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<xrd:adapters
|
||||
xmlns:xrd="http://xmlns.redhat.com/schemas/waf/xml-renderer-rules"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://rhea.redhat.com/schemas/waf/xml-renderer-rules xml-renderer-rules.xsd">
|
||||
|
||||
<xrd:context name="com.arsdigita.cms.contenttypes.Series" >
|
||||
|
||||
<xrd:adapter objectType="com.arsdigita.cms.contenttypes.Series"
|
||||
extends="com.arsdigita.cms.ContentPage">
|
||||
|
||||
<xrd:associations rule="include">
|
||||
<xrd:property name="/object/editships"/>
|
||||
<xrd:property name="/object/volumes"/>
|
||||
</xrd:associations>
|
||||
|
||||
</xrd:adapter>
|
||||
|
||||
</xrd:context>
|
||||
|
||||
</xrd:adapters>
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<registry>
|
||||
<!-- <config class="com.arsdigita.cms.PublicationsConfig" storage="ccm-sci-publicationsn/publications.properties"/> -->
|
||||
</registry>
|
||||
|
|
@ -0,0 +1,58 @@
|
|||
<load>
|
||||
<requires>
|
||||
<table name="inits"/>
|
||||
<table name="acs_objects"/>
|
||||
<table name="cms_items"/>
|
||||
<initializer class="com.arsdigita.cms.Initializer"/>
|
||||
</requires>
|
||||
<provides>
|
||||
<table name="ct_publication"/>
|
||||
<table name="ct_publication_with_publisher"/>
|
||||
<table name="ct_series"/>
|
||||
<table name="ct_publisher"/>
|
||||
<table name="ct_collected_volume"/>
|
||||
<table name="ct_article_in_collected_volume"/>
|
||||
<table name="ct_monograph"/>
|
||||
<table name="ct_inproceedings"/>
|
||||
<table name="ct_internet_article"/>
|
||||
<table name="ct_article_in_journal"/>
|
||||
<table name="ct_unpublished"/>
|
||||
<table name="ct_grey_literature"/>
|
||||
<table name="ct_working_paper"/>
|
||||
<table name="ct_expertise"/>
|
||||
<table name="ct_review"/>
|
||||
<initializer class="com.arsdigita.cms.contenttypes.PublicationInitializer"/>
|
||||
<initializer class="com.arsdigita.cms.contenttypes.PublicationWithPublisherInitializer"/>
|
||||
<initializer class="com.arsdigita.cms.contenttypes.SeriesInitializer"/>
|
||||
<initializer class="com.arsdigita.cms.contenttypes.PublisherInitializer"/>
|
||||
<initializer class="com.arsdigita.cms.contenttypes.CollectedVolumeInitializer"/>
|
||||
<initializer class="com.arsdigita.cms.contenttypes.ArticleInCollectedVolumeInitializer"/>
|
||||
<initializer class="com.arsdigita.cms.contenttypes.MonographInitializer"/>
|
||||
<initializer class="com.arsdigita.cms.contenttypes.InProceedingsInitializer"/>
|
||||
<initializer class="com.arsdigita.cms.contenttypes.InternetArticleInitializer"/>
|
||||
<initializer class="com.arsdigita.cms.contenttypes.ArticleInJournalInitializer"/>
|
||||
<initializer class="com.arsdigita.cms.contenttypes.UnPublishedInitializer"/>
|
||||
<initializer class="com.arsdigita.cms.contenttypes.GreyLiteratureInitializer"/>
|
||||
<initializer class="com.arsdigita.cms.contenttypes.WorkingPaperInitializer"/>
|
||||
<initializer class="com.arsdigita.cms.contenttypes.ExpertiseInitializer"/>
|
||||
<initializer class="com.arsdigita.cms.contenttypes.ReviewInitializer"/>
|
||||
</provides>
|
||||
<scripts>
|
||||
<schema directory="ccm-sci-publications"/>
|
||||
<data class="com.arsdigita.cms.contenttypes.PublicationLoader"/>
|
||||
<data class="com.arsdigita.cms.contenttypes.PublicationWithPublisherLoader"/>
|
||||
<data class="com.arsdigita.cms.contenttypes.SeriesLoader"/>
|
||||
<data class="com.arsdigita.cms.contenttypes.PublisherLoader"/>
|
||||
<data class="com.arsdigita.cms.contenttypes.CollectedVolumeLoader"/>
|
||||
<data class="com.arsdigita.cms.contenttypes.ArticleInCollectedVolumeLoader"/>
|
||||
<data class="com.arsdigita.cms.contenttypes.MonographLoader"/>
|
||||
<data class="com.arsdigita.cms.contenttypes.InProceedingsLoader"/>
|
||||
<data class="com.arsdigita.cms.contenttypes.InternetArticleLoader"/>
|
||||
<data class="com.arsdigita.cms.contenttypes.ArticleInJournalLoader"/>
|
||||
<data class="com.arsdigita.cms.contenttypes.UnPublishedLoader"/>
|
||||
<data class="com.arsdigita.cms.contenttypes.GreyLiteratureLoader"/>
|
||||
<data class="com.arsdigita.cms.contenttypes.WorkingPaperLoader"/>
|
||||
<data class="com.arsdigita.cms.contenttypes.ExpertiseLoader"/>
|
||||
<data class="com.arsdigita.cms.contenttypes.ReviewLoader"/>
|
||||
</scripts>
|
||||
</load>
|
||||
|
|
@ -0,0 +1,23 @@
|
|||
package com.arsdigita.cms.contenttypes;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Jens Pelzetter
|
||||
*/
|
||||
public class ArticleInCollectedVolumeInitializer extends ContentTypeInitializer {
|
||||
|
||||
public ArticleInCollectedVolumeInitializer() {
|
||||
super("ccm-sci-publications.pdl.mf", ArticleInCollectedVolume.BASE_DATA_OBJECT_TYPE);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String[] getStylesheets() {
|
||||
return new String[]{"/static/content-types/com/arsdigita/cms/contenttypes/ArticleInCollectedVolume.xsl"};
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getTraversalXML() {
|
||||
return "/WEB-INF/traversal-adapters/com/arsdigita/cms/contenttypes/ArticleInCollectedVolume.xml";
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,19 @@
|
|||
package com.arsdigita.cms.contenttypes;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Jens Pelzetter
|
||||
*/
|
||||
public class ArticleInCollectedVolumeLoader extends AbstractContentTypeLoader {
|
||||
|
||||
private static final String[] TYPES = {"/WEB-INF/content-types/com/arsdigita/cms/contenttypes/ArticleInCollectedVolume.xml"};
|
||||
|
||||
public ArticleInCollectedVolumeLoader() {
|
||||
super();
|
||||
}
|
||||
|
||||
public String[] getTypes() {
|
||||
return TYPES;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,109 @@
|
|||
package com.arsdigita.cms.contenttypes;
|
||||
|
||||
import com.arsdigita.domain.DataObjectNotFoundException;
|
||||
import com.arsdigita.persistence.DataObject;
|
||||
import com.arsdigita.persistence.OID;
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Jens Pelzetter
|
||||
*/
|
||||
public class ArticleInJournal extends Publication {
|
||||
|
||||
public static final String JOURNAL = "journal";
|
||||
public static final String VOLUME = "volume";
|
||||
public static final String ISSUE = "issue";
|
||||
public static final String PAGES_FROM = "pagesFrom";
|
||||
public static final String PAGES_TO = "pagesTo";
|
||||
public static final String ISSN = "issn";
|
||||
public static final String URL = "url";
|
||||
public static final String PUBLICATION_DATE = "publicationDate";
|
||||
public static final String BASE_DATA_OBJECT_TYPE =
|
||||
"com.arsdigita.cms.contenttypes.ArticleInJournal";
|
||||
|
||||
public ArticleInJournal() {
|
||||
this(BASE_DATA_OBJECT_TYPE);
|
||||
}
|
||||
|
||||
public ArticleInJournal(BigDecimal id) throws DataObjectNotFoundException {
|
||||
this(new OID(BASE_DATA_OBJECT_TYPE, id));
|
||||
}
|
||||
|
||||
public ArticleInJournal(OID oid) throws DataObjectNotFoundException {
|
||||
super(oid);
|
||||
}
|
||||
|
||||
public ArticleInJournal(DataObject dataObject) {
|
||||
super(dataObject);
|
||||
}
|
||||
|
||||
public ArticleInJournal(String type) {
|
||||
super(type);
|
||||
}
|
||||
|
||||
public String getJournal() {
|
||||
return (String) get(JOURNAL);
|
||||
}
|
||||
|
||||
public void setJournal(String journal) {
|
||||
set(JOURNAL, journal);
|
||||
}
|
||||
|
||||
public Integer getVolume() {
|
||||
return (Integer) get(VOLUME);
|
||||
}
|
||||
|
||||
public void setVolume(Integer volume) {
|
||||
set(VOLUME, volume);
|
||||
}
|
||||
|
||||
public String getIssue() {
|
||||
return (String) get(ISSUE);
|
||||
}
|
||||
|
||||
public void setIssue(String issue) {
|
||||
set(ISSUE, issue);
|
||||
}
|
||||
|
||||
public Integer getPagesFrom() {
|
||||
return (Integer) get(PAGES_FROM);
|
||||
}
|
||||
|
||||
public void setPagesFrom(Integer pagesFrom) {
|
||||
set(PAGES_FROM, pagesFrom);
|
||||
}
|
||||
|
||||
public Integer getPagesTo() {
|
||||
return (Integer) get(PAGES_TO);
|
||||
}
|
||||
|
||||
public void setPagesTo(Integer pagesTo) {
|
||||
set(PAGES_TO, pagesTo);
|
||||
}
|
||||
|
||||
public String getISSN() {
|
||||
return (String) get(ISSN);
|
||||
}
|
||||
|
||||
public void setISSN(String issn) {
|
||||
set(ISSN, issn);
|
||||
}
|
||||
|
||||
public String getUrl() {
|
||||
return (String) get(URL);
|
||||
}
|
||||
|
||||
public void setUrl(String url) {
|
||||
set(URL, url);
|
||||
}
|
||||
|
||||
public Date getPublicationDate() {
|
||||
return (Date) get(PUBLICATION_DATE);
|
||||
}
|
||||
|
||||
public void setPublicationDate(Date publicationDate) {
|
||||
set(PUBLICATION_DATE, publicationDate);
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,23 @@
|
|||
package com.arsdigita.cms.contenttypes;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Jens Pelzetter
|
||||
*/
|
||||
public class ArticleInJournalInitializer extends ContentTypeInitializer {
|
||||
|
||||
public ArticleInJournalInitializer() {
|
||||
super("ccm-sci-publications.pdl.mf", ArticleInJournal.BASE_DATA_OBJECT_TYPE);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String[] getStylesheets() {
|
||||
return new String[]{"/static/content-types/com/arsdigita/cms/contenttypes/ArticleInJournal.xsl"};
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getTraversalXML() {
|
||||
return "/WEB-INF/traversal-adapters/com/arsdigita/cms/contenttypes/ArticleInJournal.xml";
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,19 @@
|
|||
package com.arsdigita.cms.contenttypes;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Jens Pelzetter
|
||||
*/
|
||||
public class ArticleInJournalLoader extends AbstractContentTypeLoader {
|
||||
|
||||
private static final String[] TYPES = {"/WEB-INF/content-types/com/arsdigita/cms/contenttypes/ArticleInJournal.xml"};
|
||||
|
||||
public ArticleInJournalLoader() {
|
||||
super();
|
||||
}
|
||||
|
||||
public String[] getTypes() {
|
||||
return TYPES;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,23 @@
|
|||
package com.arsdigita.cms.contenttypes;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Jens Pelzetter
|
||||
*/
|
||||
public class CollectedVolumeInitializer extends ContentTypeInitializer {
|
||||
|
||||
public CollectedVolumeInitializer() {
|
||||
super("ccm-sci-publications.pdl.mf", CollectedVolume.BASE_DATA_OBJECT_TYPE);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String[] getStylesheets() {
|
||||
return new String[]{"/static/content-types/com/arsdigita/cms/contenttypes/CollectedVolume.xsl"};
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getTraversalXML() {
|
||||
return "/WEB-INF/traversal-adapters/com/arsdigita/cms/contenttypes/CollectedVolume.xml";
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,19 @@
|
|||
package com.arsdigita.cms.contenttypes;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Jens Pelzetter
|
||||
*/
|
||||
public class CollectedVolumeLoader extends AbstractContentTypeLoader {
|
||||
|
||||
private static final String[] TYPES = {"/WEB-INF/content-types/com/arsdigita/cms/contenttypes/CollectedVolume.xml"};
|
||||
|
||||
public CollectedVolumeLoader() {
|
||||
super();
|
||||
}
|
||||
|
||||
public String[] getTypes() {
|
||||
return TYPES;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,23 @@
|
|||
package com.arsdigita.cms.contenttypes;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Jens Pelzetter
|
||||
*/
|
||||
public class ExpertiseInitializer extends ContentTypeInitializer {
|
||||
|
||||
public ExpertiseInitializer() {
|
||||
super("ccm-sci-publications.pdl.mf", Expertise.BASE_DATA_OBJECT_TYPE);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String[] getStylesheets() {
|
||||
return new String[]{"/static/content-types/com/arsdigita/cms/contenttypes/Expertise.xsl"};
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getTraversalXML() {
|
||||
return "/WEB-INF/traversal-adapters/com/arsdigita/cms/contenttypes/Expertise.xml";
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,19 @@
|
|||
package com.arsdigita.cms.contenttypes;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Jens Pelzetter
|
||||
*/
|
||||
public class ExpertiseLoader extends AbstractContentTypeLoader {
|
||||
|
||||
private static final String[] TYPES = {"/WEB-INF/content-types/com/arsdigita/cms/contenttypes/Expertise.xml"};
|
||||
|
||||
public ExpertiseLoader() {
|
||||
super();
|
||||
}
|
||||
|
||||
public String[] getTypes() {
|
||||
return TYPES;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,23 @@
|
|||
package com.arsdigita.cms.contenttypes;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Jens Pelzetter
|
||||
*/
|
||||
public class GreyLiteratureInitializer extends ContentTypeInitializer {
|
||||
|
||||
public GreyLiteratureInitializer() {
|
||||
super("ccm-sci-publications.pdl.mf", GreyLiterature.BASE_DATA_OBJECT_TYPE);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String[] getStylesheets() {
|
||||
return new String[]{"/static/content-types/com/arsdigita/cms/contenttypes/GreyLiterature.xsl"};
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getTraversalXML() {
|
||||
return "/WEB-INF/traversal-adapters/com/arsdigita/cms/contenttypes/GreyLiterature.xml";
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,19 @@
|
|||
package com.arsdigita.cms.contenttypes;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Jens Pelzetter
|
||||
*/
|
||||
public class GreyLiteratureLoader extends AbstractContentTypeLoader {
|
||||
|
||||
private static final String[] TYPES = {"/WEB-INF/content-types/com/arsdigita/cms/contenttypes/GreyLiterature.xml"};
|
||||
|
||||
public GreyLiteratureLoader() {
|
||||
super();
|
||||
}
|
||||
|
||||
public String[] getTypes() {
|
||||
return TYPES;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -42,7 +42,6 @@ public class InProceedings extends PublicationWithPublisher {
|
|||
public static final String NUMBER_OF_PAGES = "numberOfPages";
|
||||
public static final String PAGES_FROM = "pagesFrom";
|
||||
public static final String PAGES_TO = "pagesFrom";
|
||||
|
||||
public static final String BASE_DATA_OBJECT_TYPE =
|
||||
"com.arsdigita.cms.contenttypes.InProceedings";
|
||||
|
||||
|
|
@ -74,7 +73,7 @@ public class InProceedings extends PublicationWithPublisher {
|
|||
set(ORGANIZER_OF_CONFERENCE, organizerOfConference);
|
||||
}
|
||||
|
||||
public String getNameOfConference(String nameOfConference) {
|
||||
public String getNameOfConference() {
|
||||
return (String) get(NAME_OF_CONFERENCE);
|
||||
}
|
||||
|
||||
|
|
@ -98,6 +97,14 @@ public class InProceedings extends PublicationWithPublisher {
|
|||
set(DATE_TO_OF_CONFERENCE, dateToOfConference);
|
||||
}
|
||||
|
||||
public String getPlaceOfConference() {
|
||||
return (String) get(PLACE_OF_CONFERENCE);
|
||||
}
|
||||
|
||||
public void setPlaceOfConference(String place) {
|
||||
set(PLACE_OF_CONFERENCE, place);
|
||||
}
|
||||
|
||||
public Integer getVolume() {
|
||||
return (Integer) get(VOLUME);
|
||||
}
|
||||
|
|
@ -137,5 +144,4 @@ public class InProceedings extends PublicationWithPublisher {
|
|||
public void setPagesTo(Integer pagesTo) {
|
||||
set(PAGES_TO, pagesTo);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -0,0 +1,23 @@
|
|||
package com.arsdigita.cms.contenttypes;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Jens Pelzetter
|
||||
*/
|
||||
public class InProceedingsInitializer extends ContentTypeInitializer {
|
||||
|
||||
public InProceedingsInitializer() {
|
||||
super("ccm-sci-publications.pdl.mf", InProceedings.BASE_DATA_OBJECT_TYPE);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String[] getStylesheets() {
|
||||
return new String[]{"/static/content-types/com/arsdigita/cms/contenttypes/InProceedings.xsl"};
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getTraversalXML() {
|
||||
return "/WEB-INF/traversal-adapters/com/arsdigita/cms/contenttypes/InProceedings.xml";
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,19 @@
|
|||
package com.arsdigita.cms.contenttypes;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Jens Pelzetter
|
||||
*/
|
||||
public class InProceedingsLoader extends AbstractContentTypeLoader {
|
||||
|
||||
private static final String[] TYPES = {"/WEB-INF/content-types/com/arsdigita/cms/contenttypes/InProceedings.xml"};
|
||||
|
||||
public InProceedingsLoader() {
|
||||
super();
|
||||
}
|
||||
|
||||
public String[] getTypes() {
|
||||
return TYPES;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -74,7 +74,7 @@ public class InternetArticle extends Publication {
|
|||
return (GenericOrganizationalUnit) get(ORGANIZATION);
|
||||
}
|
||||
|
||||
public void setOrganziation(GenericOrganizationalUnit orga) {
|
||||
public void setOrganization(GenericOrganizationalUnit orga) {
|
||||
set(ORGANIZATION, orga);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -0,0 +1,23 @@
|
|||
package com.arsdigita.cms.contenttypes;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Jens Pelzetter
|
||||
*/
|
||||
public class InternetArticleInitializer extends ContentTypeInitializer {
|
||||
|
||||
public InternetArticleInitializer() {
|
||||
super("ccm-sci-publications.pdl.mf", InternetArticle.BASE_DATA_OBJECT_TYPE);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String[] getStylesheets() {
|
||||
return new String[]{"/static/content-types/com/arsdigita/cms/contenttypes/InternetArticle.xsl"};
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getTraversalXML() {
|
||||
return "/WEB-INF/traversal-adapters/com/arsdigita/cms/contenttypes/InternetArticle.xml";
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,19 @@
|
|||
package com.arsdigita.cms.contenttypes;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Jens Pelzetter
|
||||
*/
|
||||
public class InternetArticleLoader extends AbstractContentTypeLoader {
|
||||
|
||||
private static final String[] TYPES = {"/WEB-INF/content-types/com/arsdigita/cms/contenttypes/InternetArticle.xml"};
|
||||
|
||||
public InternetArticleLoader() {
|
||||
super();
|
||||
}
|
||||
|
||||
public String[] getTypes() {
|
||||
return TYPES;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,23 @@
|
|||
package com.arsdigita.cms.contenttypes;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Jens Pelzetter
|
||||
*/
|
||||
public class MonographInitializer extends ContentTypeInitializer {
|
||||
|
||||
public MonographInitializer() {
|
||||
super("ccm-sci-publications.pdl.mf", Monograph.BASE_DATA_OBJECT_TYPE);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String[] getStylesheets() {
|
||||
return new String[]{"/static/content-types/com/arsdigita/cms/contenttypes/Monograph.xsl"};
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getTraversalXML() {
|
||||
return "/WEB-INF/traversal-adapters/com/arsdigita/cms/contenttypes/Monograph.xml";
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,19 @@
|
|||
package com.arsdigita.cms.contenttypes;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Jens Pelzetter
|
||||
*/
|
||||
public class MonographLoader extends AbstractContentTypeLoader {
|
||||
|
||||
private static final String[] TYPES = {"/WEB-INF/content-types/com/arsdigita/cms/contenttypes/Monograph.xml"};
|
||||
|
||||
public MonographLoader() {
|
||||
super();
|
||||
}
|
||||
|
||||
public String[] getTypes() {
|
||||
return TYPES;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,23 @@
|
|||
package com.arsdigita.cms.contenttypes;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Jens Pelzetter
|
||||
*/
|
||||
public class PublicationInitializer extends ContentTypeInitializer {
|
||||
|
||||
public PublicationInitializer() {
|
||||
super("ccm-sci-publications.pdl.mf", Publication.BASE_DATA_OBJECT_TYPE);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String[] getStylesheets() {
|
||||
return new String[]{"/static/content-types/com/arsdigita/cms/contenttypes/Publication.xsl"};
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getTraversalXML() {
|
||||
return "/WEB-INF/traversal-adapters/com/arsdigita/cms/contenttypes/Publication.xml";
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,19 @@
|
|||
package com.arsdigita.cms.contenttypes;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Jens Pelzetter
|
||||
*/
|
||||
public class PublicationLoader extends AbstractContentTypeLoader {
|
||||
|
||||
private static final String[] TYPES = {"/WEB-INF/content-types/com/arsdigita/cms/contenttypes/Publication.xml"};
|
||||
|
||||
public PublicationLoader() {
|
||||
super();
|
||||
}
|
||||
|
||||
public String[] getTypes() {
|
||||
return TYPES;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,23 @@
|
|||
package com.arsdigita.cms.contenttypes;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Jens Pelzetter
|
||||
*/
|
||||
public class PublicationWithPublisherInitializer extends ContentTypeInitializer {
|
||||
|
||||
public PublicationWithPublisherInitializer() {
|
||||
super("ccm-sci-publications.pdl.mf", PublicationWithPublisher.BASE_DATA_OBJECT_TYPE);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String[] getStylesheets() {
|
||||
return new String[]{"/static/content-types/com/arsdigita/cms/contenttypes/PublicationWithPublisher.xsl"};
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getTraversalXML() {
|
||||
return "/WEB-INF/traversal-adapters/com/arsdigita/cms/contenttypes/PublicationWithPublisher.xml";
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,19 @@
|
|||
package com.arsdigita.cms.contenttypes;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Jens Pelzetter
|
||||
*/
|
||||
public class PublicationWithPublisherLoader extends AbstractContentTypeLoader {
|
||||
|
||||
private static final String[] TYPES = {"/WEB-INF/content-types/com/arsdigita/cms/contenttypes/PublicationWithPublisher.xml"};
|
||||
|
||||
public PublicationWithPublisherLoader() {
|
||||
super();
|
||||
}
|
||||
|
||||
public String[] getTypes() {
|
||||
return TYPES;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,23 @@
|
|||
package com.arsdigita.cms.contenttypes;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Jens Pelzetter
|
||||
*/
|
||||
public class PublisherInitializer extends ContentTypeInitializer {
|
||||
|
||||
public PublisherInitializer() {
|
||||
super("ccm-sci-publications.pdl.mf", Publisher.BASE_DATA_OBJECT_TYPE);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String[] getStylesheets() {
|
||||
return new String[]{"/static/content-types/com/arsdigita/cms/contenttypes/Publisher.xsl"};
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getTraversalXML() {
|
||||
return "/WEB-INF/traversal-adapters/com/arsdigita/cms/contenttypes/Publisher.xml";
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,19 @@
|
|||
package com.arsdigita.cms.contenttypes;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Jens Pelzetter
|
||||
*/
|
||||
public class PublisherLoader extends AbstractContentTypeLoader {
|
||||
|
||||
private static final String[] TYPES = {"/WEB-INF/content-types/com/arsdigita/cms/contenttypes/Publisher.xml"};
|
||||
|
||||
public PublisherLoader() {
|
||||
super();
|
||||
}
|
||||
|
||||
public String[] getTypes() {
|
||||
return TYPES;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -76,7 +76,7 @@ public class Review extends Publication {
|
|||
return (Integer) get(VOLUME);
|
||||
}
|
||||
|
||||
public void setInteger(Integer volume) {
|
||||
public void setVolume(Integer volume) {
|
||||
set(VOLUME, volume);
|
||||
}
|
||||
|
||||
|
|
@ -96,7 +96,7 @@ public class Review extends Publication {
|
|||
set(PAGES_FROM, pagesFrom);
|
||||
}
|
||||
|
||||
public Integer setPagesTo() {
|
||||
public Integer getPagesTo() {
|
||||
return (Integer) get(PAGES_TO);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -0,0 +1,23 @@
|
|||
package com.arsdigita.cms.contenttypes;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Jens Pelzetter
|
||||
*/
|
||||
public class ReviewInitializer extends ContentTypeInitializer {
|
||||
|
||||
public ReviewInitializer() {
|
||||
super("ccm-sci-publications.pdl.mf", Review.BASE_DATA_OBJECT_TYPE);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String[] getStylesheets() {
|
||||
return new String[]{"/static/content-types/com/arsdigita/cms/contenttypes/Review.xsl"};
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getTraversalXML() {
|
||||
return "/WEB-INF/traversal-adapters/com/arsdigita/cms/contenttypes/Review.xml";
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,19 @@
|
|||
package com.arsdigita.cms.contenttypes;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Jens Pelzetter
|
||||
*/
|
||||
public class ReviewLoader extends AbstractContentTypeLoader {
|
||||
|
||||
private static final String[] TYPES = {"/WEB-INF/content-types/com/arsdigita/cms/contenttypes/Review.xml"};
|
||||
|
||||
public ReviewLoader() {
|
||||
super();
|
||||
}
|
||||
|
||||
public String[] getTypes() {
|
||||
return TYPES;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -34,8 +34,8 @@ import java.util.Date;
|
|||
public class Series extends ContentPage {
|
||||
|
||||
public static final String EDITORS = "editors";
|
||||
public static final String EDITOR_FROM = "from";
|
||||
public static final String EDITOR_TO = "to";
|
||||
public static final String EDITOR_FROM = "dateFrom";
|
||||
public static final String EDITOR_TO = "dateTo";
|
||||
public static final String EDITOR_ORDER = "editor_order";
|
||||
public static final String PUBLICATIONS = "publications";
|
||||
public static final String VOLUME_OF_SERIES = "volumeOfSeries";
|
||||
|
|
|
|||
|
|
@ -0,0 +1,23 @@
|
|||
package com.arsdigita.cms.contenttypes;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Jens Pelzetter
|
||||
*/
|
||||
public class SeriesInitializer extends ContentTypeInitializer {
|
||||
|
||||
public SeriesInitializer() {
|
||||
super("ccm-sci-publications.pdl.mf", Series.BASE_DATA_OBJECT_TYPE);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String[] getStylesheets() {
|
||||
return new String[]{"/static/content-types/com/arsdigita/cms/contenttypes/Series.xsl"};
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getTraversalXML() {
|
||||
return "/WEB-INF/traversal-adapters/com/arsdigita/cms/contenttypes/Series.xml";
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,19 @@
|
|||
package com.arsdigita.cms.contenttypes;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Jens Pelzetter
|
||||
*/
|
||||
public class SeriesLoader extends AbstractContentTypeLoader {
|
||||
|
||||
private static final String[] TYPES = {"/WEB-INF/content-types/com/arsdigita/cms/contenttypes/Series.xml"};
|
||||
|
||||
public SeriesLoader() {
|
||||
super();
|
||||
}
|
||||
|
||||
public String[] getTypes() {
|
||||
return TYPES;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,23 @@
|
|||
package com.arsdigita.cms.contenttypes;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Jens Pelzetter
|
||||
*/
|
||||
public class UnPublishedInitializer extends ContentTypeInitializer {
|
||||
|
||||
public UnPublishedInitializer() {
|
||||
super("ccm-sci-publications.pdl.mf", UnPublished.BASE_DATA_OBJECT_TYPE);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String[] getStylesheets() {
|
||||
return new String[]{"/static/content-types/com/arsdigita/cms/contenttypes/UnPublished.xsl"};
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getTraversalXML() {
|
||||
return "/WEB-INF/traversal-adapters/com/arsdigita/cms/contenttypes/UnPublished.xml";
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,19 @@
|
|||
package com.arsdigita.cms.contenttypes;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Jens Pelzetter
|
||||
*/
|
||||
public class UnPublishedLoader extends AbstractContentTypeLoader {
|
||||
|
||||
private static final String[] TYPES = {"/WEB-INF/content-types/com/arsdigita/cms/contenttypes/UnPublished.xml"};
|
||||
|
||||
public UnPublishedLoader() {
|
||||
super();
|
||||
}
|
||||
|
||||
public String[] getTypes() {
|
||||
return TYPES;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,23 @@
|
|||
package com.arsdigita.cms.contenttypes;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Jens Pelzetter
|
||||
*/
|
||||
public class WorkingPaperInitializer extends ContentTypeInitializer {
|
||||
|
||||
public WorkingPaperInitializer() {
|
||||
super("ccm-sci-publications.pdl.mf", WorkingPaper.BASE_DATA_OBJECT_TYPE);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String[] getStylesheets() {
|
||||
return new String[]{"/static/content-types/com/arsdigita/cms/contenttypes/WorkingPaper.xsl"};
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getTraversalXML() {
|
||||
return "/WEB-INF/traversal-adapters/com/arsdigita/cms/contenttypes/WorkingPaper.xml";
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,19 @@
|
|||
package com.arsdigita.cms.contenttypes;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Jens Pelzetter
|
||||
*/
|
||||
public class WorkingPaperLoader extends AbstractContentTypeLoader {
|
||||
|
||||
private static final String[] TYPES = {"/WEB-INF/content-types/com/arsdigita/cms/contenttypes/WorkingPaper.xml"};
|
||||
|
||||
public WorkingPaperLoader() {
|
||||
super();
|
||||
}
|
||||
|
||||
public String[] getTypes() {
|
||||
return TYPES;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -14,15 +14,13 @@ import com.arsdigita.cms.ui.workflow.WorkflowLockedComponentAccess;
|
|||
public class ArticleInCollectedVolumePropertiesStep
|
||||
extends PublicationWithPublisherPropertiesStep {
|
||||
|
||||
public ArticleInCollectedVolumePropertiesStep(
|
||||
ItemSelectionModel itemModel,
|
||||
public ArticleInCollectedVolumePropertiesStep(ItemSelectionModel itemModel,
|
||||
AuthoringKitWizard parent) {
|
||||
super(itemModel, parent);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void addBasicProperties(
|
||||
ItemSelectionModel itemModel,
|
||||
protected void addBasicProperties(ItemSelectionModel itemModel,
|
||||
AuthoringKitWizard parent) {
|
||||
SimpleEditStep basicProperties = new SimpleEditStep(itemModel,
|
||||
parent,
|
||||
|
|
@ -36,8 +34,8 @@ public class ArticleInCollectedVolumePropertiesStep
|
|||
"publications.ui.article_in_collected_volume.edit_basic_sheet").
|
||||
localize(), new WorkflowLockedComponentAccess(editBasicSheet,
|
||||
itemModel),
|
||||
editBasicSheet.
|
||||
getSaveCancelSection().getCancelButton());
|
||||
editBasicSheet.getSaveCancelSection().
|
||||
getCancelButton());
|
||||
|
||||
basicProperties.setDisplayComponent(
|
||||
getPublicationPropertySheet(itemModel));
|
||||
|
|
|
|||
|
|
@ -13,7 +13,6 @@ import com.arsdigita.bebop.parameters.ParameterModel;
|
|||
import com.arsdigita.bebop.parameters.StringParameter;
|
||||
import com.arsdigita.cms.ItemSelectionModel;
|
||||
import com.arsdigita.cms.contenttypes.ArticleInCollectedVolume;
|
||||
import org.apache.log4j.Logger;
|
||||
|
||||
/**
|
||||
*
|
||||
|
|
@ -25,9 +24,6 @@ public class ArticleInCollectedVolumePropertyForm
|
|||
FormInitListener,
|
||||
FormSubmissionListener {
|
||||
|
||||
private static final Logger s_log =
|
||||
Logger.getLogger(
|
||||
ArticleInCollectedVolumePropertyForm.class);
|
||||
private ArticleInCollectedVolumePropertiesStep m_step;
|
||||
public static final String ID = "ArticleInCollectedVolumeEdit";
|
||||
|
||||
|
|
@ -56,7 +52,7 @@ public class ArticleInCollectedVolumePropertyForm
|
|||
add(pagesFrom);
|
||||
|
||||
add(new Label((String) PublicationGlobalizationUtil.globalize(
|
||||
"publications.ui.article_in_collected_volume.pages_from").
|
||||
"publications.ui.article_in_collected_volume.pages_to").
|
||||
localize()));
|
||||
ParameterModel toParam = new IntegerParameter(
|
||||
ArticleInCollectedVolume.PAGES_TO);
|
||||
|
|
@ -73,13 +69,13 @@ public class ArticleInCollectedVolumePropertyForm
|
|||
}
|
||||
|
||||
@Override
|
||||
public void init(FormSectionEvent fse) throws FormProcessExeception {
|
||||
public void init(FormSectionEvent fse) throws FormProcessException {
|
||||
super.init(fse);
|
||||
|
||||
FormData data = fse.getFormData();
|
||||
ArticleInCollectedVolume article =
|
||||
(ArticleInCollectedVolume) super.
|
||||
initBasicWidgets(fse);
|
||||
(ArticleInCollectedVolume) initBasicWidgets(
|
||||
fse);
|
||||
|
||||
data.put(ArticleInCollectedVolume.PAGES_FROM, article.getPagesFrom());
|
||||
data.put(ArticleInCollectedVolume.PAGES_TO, article.getPagesTo());
|
||||
|
|
@ -92,8 +88,8 @@ public class ArticleInCollectedVolumePropertyForm
|
|||
|
||||
FormData data = fse.getFormData();
|
||||
ArticleInCollectedVolume article =
|
||||
(ArticleInCollectedVolume) super.
|
||||
processBasicWidgets(fse);
|
||||
(ArticleInCollectedVolume) processBasicWidgets(
|
||||
fse);
|
||||
|
||||
if ((article != null) && getSaveCancelSection().getSaveButton().
|
||||
isSelected(fse.getPageState())) {
|
||||
|
|
|
|||
|
|
@ -0,0 +1,48 @@
|
|||
package com.arsdigita.cms.contenttypes.ui;
|
||||
|
||||
import com.arsdigita.bebop.Label;
|
||||
import com.arsdigita.cms.ItemSelectionModel;
|
||||
import com.arsdigita.cms.ui.authoring.AuthoringKitWizard;
|
||||
import com.arsdigita.cms.ui.authoring.BasicPageForm;
|
||||
import com.arsdigita.cms.ui.authoring.SimpleEditStep;
|
||||
import com.arsdigita.cms.ui.workflow.WorkflowLockedComponentAccess;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Jens Pelzetter
|
||||
*/
|
||||
public class ArticleInJournalPropertiesStep extends PublicationPropertiesStep {
|
||||
|
||||
public ArticleInJournalPropertiesStep(ItemSelectionModel itemModel,
|
||||
AuthoringKitWizard parent) {
|
||||
super(itemModel, parent);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void addBasicProperties(ItemSelectionModel itemModel,
|
||||
AuthoringKitWizard parent) {
|
||||
SimpleEditStep basicProperties = new SimpleEditStep(itemModel,
|
||||
parent,
|
||||
EDIT_SHEET_NAME);
|
||||
|
||||
BasicPageForm editBasicSheet =
|
||||
new ArticleInJournalPropertyForm(itemModel, this);
|
||||
|
||||
basicProperties.add(EDIT_SHEET_NAME,
|
||||
(String) PublicationGlobalizationUtil.globalize(
|
||||
"publications.ui.articleinjournal.edit_basic_sheet").
|
||||
localize(),
|
||||
new WorkflowLockedComponentAccess(editBasicSheet,
|
||||
itemModel),
|
||||
editBasicSheet.getSaveCancelSection().
|
||||
getCancelButton());
|
||||
|
||||
basicProperties.setDisplayComponent(
|
||||
getPublicationPropertySheet(itemModel));
|
||||
|
||||
getSegmentedPanel().addSegment(
|
||||
new Label((String) PublicationGlobalizationUtil.globalize(
|
||||
"publications.ui.publication.basic_properties").localize()),
|
||||
basicProperties);
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,156 @@
|
|||
package com.arsdigita.cms.contenttypes.ui;
|
||||
|
||||
import com.arsdigita.bebop.FormData;
|
||||
import com.arsdigita.bebop.FormProcessException;
|
||||
import com.arsdigita.bebop.Label;
|
||||
import com.arsdigita.bebop.event.FormInitListener;
|
||||
import com.arsdigita.bebop.event.FormProcessListener;
|
||||
import com.arsdigita.bebop.event.FormSectionEvent;
|
||||
import com.arsdigita.bebop.event.FormSubmissionListener;
|
||||
import com.arsdigita.bebop.form.TextField;
|
||||
import com.arsdigita.bebop.parameters.DateParameter;
|
||||
import com.arsdigita.bebop.parameters.IntegerParameter;
|
||||
import com.arsdigita.bebop.parameters.ParameterModel;
|
||||
import com.arsdigita.bebop.parameters.StringParameter;
|
||||
import com.arsdigita.cms.ItemSelectionModel;
|
||||
import com.arsdigita.cms.contenttypes.ArticleInJournal;
|
||||
import java.util.Calendar;
|
||||
import java.util.Date;
|
||||
import java.util.GregorianCalendar;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author jensp
|
||||
*/
|
||||
public class ArticleInJournalPropertyForm
|
||||
extends PublicationPropertyForm
|
||||
implements FormInitListener,
|
||||
FormProcessListener,
|
||||
FormSubmissionListener {
|
||||
|
||||
private ArticleInJournalPropertiesStep m_step;
|
||||
public static final String ID = "ArticleInJournalEdit";
|
||||
|
||||
public ArticleInJournalPropertyForm(ItemSelectionModel itemModel) {
|
||||
this(itemModel, null);
|
||||
}
|
||||
|
||||
public ArticleInJournalPropertyForm(ItemSelectionModel itemModel,
|
||||
ArticleInJournalPropertiesStep step) {
|
||||
super(itemModel, step);
|
||||
m_step = step;
|
||||
addSubmissionListener(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void addWidgets() {
|
||||
super.addWidgets();
|
||||
|
||||
add(new Label((String) PublicationGlobalizationUtil.globalize(
|
||||
"publications.ui.articleinjournal.journal").localize()));
|
||||
ParameterModel journalParam =
|
||||
new StringParameter(ArticleInJournal.JOURNAL);
|
||||
TextField journal = new TextField(journalParam);
|
||||
add(journal);
|
||||
|
||||
add(new Label((String) PublicationGlobalizationUtil.globalize(
|
||||
"publications.ui.articleinjournal.volume").localize()));
|
||||
ParameterModel volumeParam =
|
||||
new IntegerParameter(ArticleInJournal.VOLUME);
|
||||
TextField volume = new TextField(volumeParam);
|
||||
add(volume);
|
||||
|
||||
add(new Label((String) PublicationGlobalizationUtil.globalize(
|
||||
"publications.ui.articleinjournal.issue").localize()));
|
||||
ParameterModel issueParam = new StringParameter(ArticleInJournal.ISSUE);
|
||||
TextField issue = new TextField(issueParam);
|
||||
add(issue);
|
||||
|
||||
add(new Label((String) PublicationGlobalizationUtil.globalize(
|
||||
"publications.ui.articleinjournal.pages_from").localize()));
|
||||
ParameterModel pagesFromParam =
|
||||
new IntegerParameter(ArticleInJournal.PAGES_FROM);
|
||||
TextField pagesFrom = new TextField(pagesFromParam);
|
||||
add(pagesFrom);
|
||||
|
||||
add(new Label((String) PublicationGlobalizationUtil.globalize(
|
||||
"publications.ui.articleinjournal.pages_to").localize()));
|
||||
ParameterModel pagesToParam =
|
||||
new IntegerParameter(ArticleInJournal.PAGES_TO);
|
||||
TextField pagesTo = new TextField(pagesToParam);
|
||||
add(pagesTo);
|
||||
|
||||
add(new Label((String) PublicationGlobalizationUtil.globalize(
|
||||
"publications.ui.articleinjournal.issn").localize()));
|
||||
ParameterModel issnParam = new StringParameter(ArticleInJournal.ISSN);
|
||||
TextField issn = new TextField(issnParam);
|
||||
add(issn);
|
||||
|
||||
add(new Label((String) PublicationGlobalizationUtil.globalize(
|
||||
"publications.ui.articleinjournal.url").localize()));
|
||||
ParameterModel urlParam = new StringParameter(ArticleInJournal.URL);
|
||||
TextField url = new TextField(urlParam);
|
||||
add(url);
|
||||
|
||||
Calendar today = new GregorianCalendar();
|
||||
add(new Label((String) PublicationGlobalizationUtil.globalize(
|
||||
"publications.ui.articleinjournal.publicationDate").
|
||||
localize()));
|
||||
ParameterModel pubDateParam =
|
||||
new DateParameter(ArticleInJournal.PUBLICATION_DATE);
|
||||
com.arsdigita.bebop.form.Date pubDate =
|
||||
new com.arsdigita.bebop.form.Date(
|
||||
pubDateParam);
|
||||
pubDate.setYearRange(1900, today.get(Calendar.YEAR) + 2);
|
||||
add(pubDate);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void init(FormSectionEvent fse) throws FormProcessException {
|
||||
super.init(fse);
|
||||
|
||||
FormData data = fse.getFormData();
|
||||
ArticleInJournal article = (ArticleInJournal) initBasicWidgets(fse);
|
||||
|
||||
data.put(ArticleInJournal.JOURNAL, article.getJournal());
|
||||
data.put(ArticleInJournal.VOLUME, article.getVolume());
|
||||
data.put(ArticleInJournal.ISSUE, article.getIssue());
|
||||
data.put(ArticleInJournal.PAGES_FROM, article.getPagesFrom());
|
||||
data.put(ArticleInJournal.PAGES_TO, article.getPagesTo());
|
||||
data.put(ArticleInJournal.ISSN, article.getISSN());
|
||||
data.put(ArticleInJournal.URL, article.getUrl());
|
||||
data.put(ArticleInJournal.PUBLICATION_DATE,
|
||||
article.getPublicationDate());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void process(FormSectionEvent fse) throws FormProcessException {
|
||||
super.process(fse);
|
||||
|
||||
FormData data = fse.getFormData();
|
||||
ArticleInJournal article = (ArticleInJournal) initBasicWidgets(fse);
|
||||
|
||||
if ((article != null) && getSaveCancelSection().getSaveButton().
|
||||
isSelected(fse.getPageState())) {
|
||||
article.setJournal((String) data.get(ArticleInJournal.JOURNAL));
|
||||
article.setVolume((Integer) data.get(ArticleInJournal.VOLUME));
|
||||
article.setIssue((String) data.get(ArticleInJournal.ISSUE));
|
||||
article.setPagesFrom(
|
||||
(Integer) data.get(ArticleInJournal.PAGES_FROM));
|
||||
article.setPagesTo(
|
||||
(Integer) data.get(ArticleInJournal.PAGES_TO));
|
||||
article.setISSN(
|
||||
(String) data.get(ArticleInJournal.ISSN));
|
||||
article.setUrl(
|
||||
(String) data.get(ArticleInJournal.URL));
|
||||
article.setPublicationDate(
|
||||
(Date) data.get(ArticleInJournal.PUBLICATION_DATE));
|
||||
|
||||
article.save();
|
||||
|
||||
if (m_step != null) {
|
||||
m_step.maybeForwardToNextStep(fse.getPageState());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,47 @@
|
|||
package com.arsdigita.cms.contenttypes.ui;
|
||||
|
||||
import com.arsdigita.bebop.Label;
|
||||
import com.arsdigita.cms.ItemSelectionModel;
|
||||
import com.arsdigita.cms.ui.authoring.AuthoringKitWizard;
|
||||
import com.arsdigita.cms.ui.authoring.BasicPageForm;
|
||||
import com.arsdigita.cms.ui.authoring.SimpleEditStep;
|
||||
import com.arsdigita.cms.ui.workflow.WorkflowLockedComponentAccess;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Jens Pelzetter
|
||||
*/
|
||||
public class ExpertisePropertiesStep extends PublicationPropertiesStep {
|
||||
|
||||
public ExpertisePropertiesStep(ItemSelectionModel itemModel,
|
||||
AuthoringKitWizard parent) {
|
||||
super(itemModel, parent);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void addBasicProperties(ItemSelectionModel itemModel,
|
||||
AuthoringKitWizard parent) {
|
||||
SimpleEditStep basicProperties = new SimpleEditStep(itemModel,
|
||||
parent,
|
||||
EDIT_SHEET_NAME);
|
||||
|
||||
BasicPageForm editBasicSheet =
|
||||
new ExpertisePropertyForm(itemModel, this);
|
||||
|
||||
basicProperties.add(EDIT_SHEET_NAME,
|
||||
(String) PublicationGlobalizationUtil.globalize(
|
||||
"publications.ui.expertise.edit_basic_sheet").
|
||||
localize(), new WorkflowLockedComponentAccess(editBasicSheet,
|
||||
itemModel),
|
||||
editBasicSheet.getSaveCancelSection().
|
||||
getCancelButton());
|
||||
|
||||
basicProperties.setDisplayComponent(
|
||||
getPublicationPropertySheet(itemModel));
|
||||
|
||||
getSegmentedPanel().addSegment(
|
||||
new Label((String) PublicationGlobalizationUtil.globalize(
|
||||
"publications.ui.publication.basic_properties").
|
||||
localize()), basicProperties);
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,128 @@
|
|||
package com.arsdigita.cms.contenttypes.ui;
|
||||
|
||||
import com.arsdigita.bebop.FormData;
|
||||
import com.arsdigita.bebop.FormProcessException;
|
||||
import com.arsdigita.bebop.Label;
|
||||
import com.arsdigita.bebop.event.FormInitListener;
|
||||
import com.arsdigita.bebop.event.FormProcessListener;
|
||||
import com.arsdigita.bebop.event.FormSectionEvent;
|
||||
import com.arsdigita.bebop.event.FormSubmissionListener;
|
||||
import com.arsdigita.bebop.form.TextField;
|
||||
import com.arsdigita.bebop.parameters.IntegerParameter;
|
||||
import com.arsdigita.bebop.parameters.ParameterModel;
|
||||
import com.arsdigita.bebop.parameters.StringParameter;
|
||||
import com.arsdigita.cms.ContentType;
|
||||
import com.arsdigita.cms.ItemSelectionModel;
|
||||
import com.arsdigita.cms.contenttypes.Expertise;
|
||||
import com.arsdigita.cms.contenttypes.GenericOrganizationalUnit;
|
||||
import com.arsdigita.cms.ui.ItemSearchWidget;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Jens Pelzetter
|
||||
*/
|
||||
public class ExpertisePropertyForm
|
||||
extends PublicationPropertyForm
|
||||
implements FormInitListener,
|
||||
FormProcessListener,
|
||||
FormSubmissionListener {
|
||||
|
||||
private ExpertisePropertiesStep m_step;
|
||||
private ItemSearchWidget m_itemSearchOrga;
|
||||
private final String ITEM_SEARCH_ORGA = "organization";
|
||||
private ItemSearchWidget m_itemSearchOrderer;
|
||||
private final String ITEM_SEARCH_ORDERER = "orderer";
|
||||
public static final String ID = "ExpertiseEdit";
|
||||
|
||||
public ExpertisePropertyForm(ItemSelectionModel itemModel) {
|
||||
this(itemModel, null);
|
||||
}
|
||||
|
||||
public ExpertisePropertyForm(ItemSelectionModel itemModel,
|
||||
ExpertisePropertiesStep step) {
|
||||
super(itemModel, step);
|
||||
m_step = step;
|
||||
addSubmissionListener(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void addWidgets() {
|
||||
super.addWidgets();
|
||||
|
||||
add(new Label((String) PublicationGlobalizationUtil.globalize(
|
||||
"publications.ui.expertise.place").localize()));
|
||||
ParameterModel placeParam = new StringParameter(Expertise.PLACE);
|
||||
TextField place = new TextField(placeParam);
|
||||
add(place);
|
||||
|
||||
add(new Label((String) PublicationGlobalizationUtil.globalize(
|
||||
"publications.ui.expertise.organization").localize()));
|
||||
m_itemSearchOrga = new ItemSearchWidget(ITEM_SEARCH_ORGA,
|
||||
ContentType.
|
||||
findByAssociatedObjectType(
|
||||
GenericOrganizationalUnit.class.getName()));
|
||||
add(m_itemSearchOrga);
|
||||
|
||||
add(new Label((String) PublicationGlobalizationUtil.globalize(
|
||||
"publications.ui.expertise.number_of_pages").localize()));
|
||||
ParameterModel numberOfPagesParam =
|
||||
new IntegerParameter(Expertise.NUMBER_OF_PAGES);
|
||||
TextField numberOfPages = new TextField(numberOfPagesParam);
|
||||
add(numberOfPages);
|
||||
|
||||
add(new Label((String) PublicationGlobalizationUtil.globalize(
|
||||
"publications.ui.expertise.url").localize()));
|
||||
ParameterModel urlParam =
|
||||
new StringParameter(Expertise.URL);
|
||||
TextField url = new TextField(urlParam);
|
||||
add(url);
|
||||
|
||||
add(new Label((String) PublicationGlobalizationUtil.globalize(
|
||||
"publications.ui.expertise.orderer").localize()));
|
||||
m_itemSearchOrderer = new ItemSearchWidget(ITEM_SEARCH_ORDERER,
|
||||
ContentType.
|
||||
findByAssociatedObjectType(
|
||||
GenericOrganizationalUnit.class.getName()));
|
||||
add(m_itemSearchOrderer);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void init(FormSectionEvent fse) throws FormProcessException {
|
||||
super.init(fse);
|
||||
|
||||
FormData data = fse.getFormData();
|
||||
Expertise expertise = (Expertise) initBasicWidgets(fse);
|
||||
|
||||
data.put(Expertise.PLACE, expertise.getPlace());
|
||||
data.put(ITEM_SEARCH_ORGA, expertise.getOrganization());
|
||||
data.put(Expertise.NUMBER_OF_PAGES, expertise.getNumberOfPages());
|
||||
data.put(Expertise.URL, expertise.getUrl());
|
||||
data.put(ITEM_SEARCH_ORDERER, expertise.getOrderer());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void process(FormSectionEvent fse) throws FormProcessException {
|
||||
super.process(fse);
|
||||
|
||||
FormData data = fse.getFormData();
|
||||
Expertise expertise = (Expertise) processBasicWidgets(fse);
|
||||
|
||||
if ((expertise != null) && getSaveCancelSection().getSaveButton().
|
||||
isSelected(fse.getPageState())) {
|
||||
expertise.setPlace((String) data.get(Expertise.PLACE));
|
||||
expertise.setOrganization(
|
||||
(GenericOrganizationalUnit) data.get(ITEM_SEARCH_ORGA));
|
||||
expertise.setNumberOfPages(
|
||||
(Integer) data.get(Expertise.NUMBER_OF_PAGES));
|
||||
expertise.setUrl((String) data.get(Expertise.URL));
|
||||
expertise.setOrderer(
|
||||
(GenericOrganizationalUnit) data.get(ITEM_SEARCH_ORDERER));
|
||||
|
||||
expertise.save();
|
||||
|
||||
if (m_step != null) {
|
||||
m_step.maybeForwardToNextStep(fse.getPageState());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,47 @@
|
|||
package com.arsdigita.cms.contenttypes.ui;
|
||||
|
||||
import com.arsdigita.bebop.Label;
|
||||
import com.arsdigita.cms.ItemSelectionModel;
|
||||
import com.arsdigita.cms.ui.authoring.AuthoringKitWizard;
|
||||
import com.arsdigita.cms.ui.authoring.BasicPageForm;
|
||||
import com.arsdigita.cms.ui.authoring.SimpleEditStep;
|
||||
import com.arsdigita.cms.ui.authoring.WorkflowLockedComponentAccess;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Jens Pelzetter
|
||||
*/
|
||||
public class GreyLiteraturePropertiesStep extends UnPublishedPropertiesStep {
|
||||
|
||||
public GreyLiteraturePropertiesStep(ItemSelectionModel itemModel,
|
||||
AuthoringKitWizard parent) {
|
||||
super(itemModel, parent);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void addBasicProperties(ItemSelectionModel itemModel,
|
||||
AuthoringKitWizard parent) {
|
||||
SimpleEditStep basicProperties = new SimpleEditStep(itemModel,
|
||||
parent,
|
||||
EDIT_SHEET_NAME);
|
||||
|
||||
BasicPageForm editBasicSheet =
|
||||
new GreyLiteraturePropertyForm(itemModel, this);
|
||||
|
||||
basicProperties.add(EDIT_SHEET_NAME,
|
||||
(String) PublicationGlobalizationUtil.globalize(
|
||||
"publications.ui.greyliterature.edit_basic_sheet").
|
||||
localize(), new WorkflowLockedComponentAccess(editBasicSheet,
|
||||
itemModel),
|
||||
editBasicSheet.getSaveCancelSection().
|
||||
getCancelButton());
|
||||
|
||||
basicProperties.setDisplayComponent(
|
||||
getPublicationPropertySheet(itemModel));
|
||||
|
||||
getSegmentedPanel().addSegment(
|
||||
new Label((String) PublicationGlobalizationUtil.globalize(
|
||||
"publications.ui.publication.basic_properties").
|
||||
localize()), basicProperties);
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,101 @@
|
|||
package com.arsdigita.cms.contenttypes.ui;
|
||||
|
||||
import com.arsdigita.bebop.FormData;
|
||||
import com.arsdigita.bebop.FormProcessException;
|
||||
import com.arsdigita.bebop.Label;
|
||||
import com.arsdigita.bebop.event.FormInitListener;
|
||||
import com.arsdigita.bebop.event.FormProcessListener;
|
||||
import com.arsdigita.bebop.event.FormSectionEvent;
|
||||
import com.arsdigita.bebop.event.FormSubmissionListener;
|
||||
import com.arsdigita.bebop.form.TextField;
|
||||
import com.arsdigita.bebop.parameters.IntegerParameter;
|
||||
import com.arsdigita.bebop.parameters.ParameterModel;
|
||||
import com.arsdigita.bebop.parameters.StringParameter;
|
||||
import com.arsdigita.cms.ItemSelectionModel;
|
||||
import com.arsdigita.cms.contenttypes.GreyLiterature;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Jens Pelzetter
|
||||
*/
|
||||
public class GreyLiteraturePropertyForm
|
||||
extends UnPublishedPropertyForm
|
||||
implements FormInitListener,
|
||||
FormProcessListener,
|
||||
FormSubmissionListener {
|
||||
|
||||
private GreyLiteraturePropertiesStep m_step;
|
||||
public static final String ID = "GreyLiteratureEdit";
|
||||
|
||||
public GreyLiteraturePropertyForm(ItemSelectionModel itemModel) {
|
||||
this(itemModel, null);
|
||||
}
|
||||
|
||||
public GreyLiteraturePropertyForm(ItemSelectionModel itemModel,
|
||||
GreyLiteraturePropertiesStep step) {
|
||||
super(itemModel, step);
|
||||
m_step = step;
|
||||
addSubmissionListener(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void addWidgets() {
|
||||
super.addWidgets();
|
||||
|
||||
add(new Label((String) PublicationGlobalizationUtil.globalize(
|
||||
"publications.ui.greyliterature.pages_from").
|
||||
localize()));
|
||||
ParameterModel fromParam = new IntegerParameter(
|
||||
GreyLiterature.PAGES_FROM);
|
||||
TextField pagesFrom = new TextField(fromParam);
|
||||
add(pagesFrom);
|
||||
|
||||
add(new Label((String) PublicationGlobalizationUtil.globalize(
|
||||
"publications.ui.greyliterature.pages_to").
|
||||
localize()));
|
||||
ParameterModel toParam = new IntegerParameter(
|
||||
GreyLiterature.PAGES_TO);
|
||||
TextField pagesTo = new TextField(toParam);
|
||||
add(pagesTo);
|
||||
|
||||
add(new Label((String) PublicationGlobalizationUtil.globalize(
|
||||
"publications.ui.greyliterature.url").localize()));
|
||||
ParameterModel urlParam = new StringParameter(
|
||||
GreyLiterature.URL);
|
||||
TextField url = new TextField(urlParam);
|
||||
add(url);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void init(FormSectionEvent fse) throws FormProcessException {
|
||||
super.init(fse);
|
||||
|
||||
FormData data = fse.getFormData();
|
||||
GreyLiterature grey = (GreyLiterature) initBasicWidgets(fse);
|
||||
|
||||
data.put(GreyLiterature.PAGES_FROM, grey.getPagesFrom());
|
||||
data.put(GreyLiterature.PAGES_TO, grey.getPagesTo());
|
||||
data.put(GreyLiterature.URL, grey.getUrl());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void process(FormSectionEvent fse) throws FormProcessException {
|
||||
super.process(fse);
|
||||
|
||||
FormData data = fse.getFormData();
|
||||
GreyLiterature grey = (GreyLiterature) processBasicWidgets(fse);
|
||||
|
||||
if ((grey != null) && getSaveCancelSection().getSaveButton().isSelected(fse.
|
||||
getPageState())) {
|
||||
grey.setPagesFrom((Integer) data.get(GreyLiterature.PAGES_FROM));
|
||||
grey.setPagesTo((Integer) data.get(GreyLiterature.PAGES_TO));
|
||||
grey.setUrl((String) data.get(GreyLiterature.URL));
|
||||
|
||||
grey.save();
|
||||
}
|
||||
|
||||
if (m_step != null) {
|
||||
m_step.maybeForwardToNextStep(fse.getPageState());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,48 @@
|
|||
package com.arsdigita.cms.contenttypes.ui;
|
||||
|
||||
import com.arsdigita.bebop.Label;
|
||||
import com.arsdigita.cms.ItemSelectionModel;
|
||||
import com.arsdigita.cms.ui.authoring.AuthoringKitWizard;
|
||||
import com.arsdigita.cms.ui.authoring.BasicPageForm;
|
||||
import com.arsdigita.cms.ui.authoring.SimpleEditStep;
|
||||
import com.arsdigita.cms.ui.workflow.WorkflowLockedComponentAccess;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Jens Pelzetter
|
||||
*/
|
||||
public class InProceedingsPropertiesStep
|
||||
extends PublicationWithPublisherPropertiesStep {
|
||||
|
||||
public InProceedingsPropertiesStep(ItemSelectionModel itemModel,
|
||||
AuthoringKitWizard parent) {
|
||||
super(itemModel, parent);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void addBasicProperties(ItemSelectionModel itemModel,
|
||||
AuthoringKitWizard parent) {
|
||||
SimpleEditStep basicProperties = new SimpleEditStep(itemModel,
|
||||
parent,
|
||||
EDIT_SHEET_NAME);
|
||||
|
||||
BasicPageForm editBasicSheet = new InProceedingsPropertyForm(itemModel,
|
||||
this);
|
||||
|
||||
basicProperties.add(EDIT_SHEET_NAME,
|
||||
(String) PublicationGlobalizationUtil.globalize(
|
||||
"publications.ui.inproceedings.edit_basic_sheet").localize(),
|
||||
new WorkflowLockedComponentAccess(editBasicSheet,
|
||||
itemModel),
|
||||
editBasicSheet.getSaveCancelSection().
|
||||
getCancelButton());
|
||||
|
||||
basicProperties.setDisplayComponent(
|
||||
getPublicationPropertySheet(itemModel));
|
||||
|
||||
getSegmentedPanel().addSegment(
|
||||
new Label((String) PublicationGlobalizationUtil.globalize(
|
||||
"publication.ui.publications.basic_properties").localize()),
|
||||
basicProperties);
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,199 @@
|
|||
package com.arsdigita.cms.contenttypes.ui;
|
||||
|
||||
import com.arsdigita.bebop.FormData;
|
||||
import com.arsdigita.bebop.FormProcessException;
|
||||
import com.arsdigita.bebop.Label;
|
||||
import com.arsdigita.bebop.event.FormInitListener;
|
||||
import com.arsdigita.bebop.event.FormProcessListener;
|
||||
import com.arsdigita.bebop.event.FormSectionEvent;
|
||||
import com.arsdigita.bebop.event.FormSubmissionListener;
|
||||
import com.arsdigita.bebop.form.TextField;
|
||||
import com.arsdigita.bebop.parameters.DateParameter;
|
||||
import com.arsdigita.bebop.parameters.IntegerParameter;
|
||||
import com.arsdigita.bebop.parameters.ParameterModel;
|
||||
import com.arsdigita.bebop.parameters.StringParameter;
|
||||
import com.arsdigita.cms.ItemSelectionModel;
|
||||
import com.arsdigita.cms.contenttypes.InProceedings;
|
||||
import java.util.Calendar;
|
||||
import java.util.Date;
|
||||
import java.util.GregorianCalendar;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Jens Pelzetter
|
||||
*/
|
||||
public class InProceedingsPropertyForm
|
||||
extends PublicationWithPublisherPropertyForm
|
||||
implements FormProcessListener,
|
||||
FormInitListener,
|
||||
FormSubmissionListener {
|
||||
|
||||
private InProceedingsPropertiesStep m_step;
|
||||
public static final String ID = "InProceedingsEdit";
|
||||
|
||||
public InProceedingsPropertyForm(ItemSelectionModel itemModel) {
|
||||
this(itemModel, null);
|
||||
}
|
||||
|
||||
public InProceedingsPropertyForm(ItemSelectionModel itemModel,
|
||||
InProceedingsPropertiesStep step) {
|
||||
super(itemModel, step);
|
||||
m_step = step;
|
||||
addSubmissionListener(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void addWidgets() {
|
||||
super.addWidgets();
|
||||
|
||||
add(new Label((String) PublicationGlobalizationUtil.globalize(
|
||||
"publications.ui.inproceedings.organizer_of_conference").
|
||||
localize()));
|
||||
ParameterModel organizerParam =
|
||||
new StringParameter(InProceedings.ORGANIZER_OF_CONFERENCE);
|
||||
TextField organizer = new TextField(organizerParam);
|
||||
add(organizer);
|
||||
|
||||
add(new Label((String) PublicationGlobalizationUtil.globalize(
|
||||
"publications.ui.inproceedings.name_of_conference").
|
||||
localize()));
|
||||
ParameterModel nameOfConferenceParam =
|
||||
new StringParameter(InProceedings.NAME_OF_CONFERENCE);
|
||||
TextField nameOfConference = new TextField(nameOfConferenceParam);
|
||||
add(nameOfConference);
|
||||
|
||||
Calendar today = new GregorianCalendar();
|
||||
add(new Label((String) PublicationGlobalizationUtil.globalize(
|
||||
"publications.ui.inproccedings.date_to_of_conference").
|
||||
localize()));
|
||||
ParameterModel dateToParam =
|
||||
new DateParameter(InProceedings.DATE_TO_OF_CONFERENCE);
|
||||
com.arsdigita.bebop.form.Date dateTo =
|
||||
new com.arsdigita.bebop.form.Date(
|
||||
dateToParam);
|
||||
dateTo.setYearRange(1900, today.get(Calendar.YEAR) + 3);
|
||||
add(dateTo);
|
||||
|
||||
add(new Label((String) PublicationGlobalizationUtil.globalize(
|
||||
"publications.ui.inproceedings.data_form_of_conference").
|
||||
localize()));
|
||||
ParameterModel dateFromParam =
|
||||
new DateParameter(InProceedings.DATE_FROM_OF_CONFERENCE);
|
||||
com.arsdigita.bebop.form.Date dateFrom =
|
||||
new com.arsdigita.bebop.form.Date(
|
||||
dateFromParam);
|
||||
dateFrom.setYearRange(1900, today.get(Calendar.YEAR) + 3);
|
||||
add(dateFrom);
|
||||
|
||||
add(new Label((String) PublicationGlobalizationUtil.globalize(
|
||||
"publications.ui.inproceedings.place_of_conference").
|
||||
localize()));
|
||||
ParameterModel placeParam = new StringParameter(
|
||||
InProceedings.PLACE_OF_CONFERENCE);
|
||||
TextField place = new TextField(placeParam);
|
||||
add(place);
|
||||
|
||||
add(new Label((String) PublicationGlobalizationUtil.globalize(
|
||||
"publications.ui.inproceedings.volume").localize()));
|
||||
ParameterModel volumeParam = new IntegerParameter(InProceedings.VOLUME);
|
||||
TextField volume = new TextField(volumeParam);
|
||||
add(volume);
|
||||
|
||||
add(new Label((String) PublicationGlobalizationUtil.globalize(
|
||||
"publications.ui.inproceedings.number_of_volumes").localize()));
|
||||
ParameterModel numberOfVolumesParam =
|
||||
new IntegerParameter(InProceedings.NUMBER_OF_VOLUMES);
|
||||
TextField numberOfVolumes = new TextField(numberOfVolumesParam);
|
||||
add(numberOfVolumes);
|
||||
|
||||
add(new Label((String) PublicationGlobalizationUtil.globalize(
|
||||
"publications.ui.inproceedings.number_of_pages").localize()));
|
||||
ParameterModel numberOfPagesParam =
|
||||
new IntegerParameter(InProceedings.NUMBER_OF_PAGES);
|
||||
TextField numberOfPages = new TextField(numberOfPagesParam);
|
||||
add(numberOfPages);
|
||||
|
||||
add(new Label((String) PublicationGlobalizationUtil.globalize(
|
||||
"publications.ui.inproceedings.pages_from").localize()));
|
||||
ParameterModel pagesFromParam =
|
||||
new IntegerParameter(InProceedings.PAGES_FROM);
|
||||
TextField pagesFrom = new TextField(pagesFromParam);
|
||||
add(pagesFrom);
|
||||
|
||||
add(new Label((String) PublicationGlobalizationUtil.globalize(
|
||||
"publications.ui.inproceedings.pages_from").localize()));
|
||||
ParameterModel pagesToParam =
|
||||
new IntegerParameter(InProceedings.PAGES_FROM);
|
||||
TextField pagesTo = new TextField(pagesToParam);
|
||||
add(pagesTo);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void init(FormSectionEvent fse) throws FormProcessException {
|
||||
super.init(fse);
|
||||
|
||||
FormData data = fse.getFormData();
|
||||
InProceedings inProceedings =
|
||||
(InProceedings) super.initBasicWidgets(fse);
|
||||
|
||||
data.put(InProceedings.ORGANIZER_OF_CONFERENCE,
|
||||
inProceedings.getOrganizerOfConference());
|
||||
data.put(InProceedings.NAME_OF_CONFERENCE,
|
||||
inProceedings.getNameOfConference());
|
||||
data.put(InProceedings.DATE_FROM_OF_CONFERENCE,
|
||||
inProceedings.getDateFromOfConference());
|
||||
data.put(InProceedings.DATE_TO_OF_CONFERENCE,
|
||||
inProceedings.getDateToOfConference());
|
||||
data.put(InProceedings.PLACE_OF_CONFERENCE,
|
||||
inProceedings.getPlaceOfConference());
|
||||
data.put(InProceedings.VOLUME,
|
||||
inProceedings.getVolume());
|
||||
data.put(InProceedings.NUMBER_OF_VOLUMES,
|
||||
inProceedings.getNumberOfVolumes());
|
||||
data.put(InProceedings.NUMBER_OF_PAGES,
|
||||
inProceedings.getNumberOfPages());
|
||||
data.put(InProceedings.PAGES_FROM,
|
||||
inProceedings.getPagesFrom());
|
||||
data.put(InProceedings.PAGES_TO,
|
||||
inProceedings.getPagesTo());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void process(FormSectionEvent fse) throws FormProcessException {
|
||||
super.process(fse);
|
||||
|
||||
FormData data = fse.getFormData();
|
||||
InProceedings inProceedings =
|
||||
(InProceedings) super.processBasicWidgets(fse);
|
||||
|
||||
if ((inProceedings != null) && getSaveCancelSection().getSaveButton().
|
||||
isSelected(fse.getPageState())) {
|
||||
inProceedings.setOrganizerOfConference(
|
||||
(String) data.get(InProceedings.ORGANIZER_OF_CONFERENCE));
|
||||
inProceedings.setNameOfConference(
|
||||
(String) data.get(InProceedings.NAME_OF_CONFERENCE));
|
||||
inProceedings.setDateFromOfConference(
|
||||
(Date) data.get(InProceedings.DATE_FROM_OF_CONFERENCE));
|
||||
inProceedings.setDateToOfConference(
|
||||
(Date) data.get(InProceedings.DATE_TO_OF_CONFERENCE));
|
||||
inProceedings.setPlaceOfConference(
|
||||
(String) data.get(InProceedings.PLACE_OF_CONFERENCE));
|
||||
inProceedings.setVolume(
|
||||
(Integer) data.get(InProceedings.VOLUME));
|
||||
inProceedings.setNumberOfVolumes(
|
||||
(Integer) data.get(InProceedings.NUMBER_OF_VOLUMES));
|
||||
inProceedings.setNumberOfPages(
|
||||
(Integer) data.get(InProceedings.NUMBER_OF_PAGES));
|
||||
inProceedings.setPagesFrom(
|
||||
(Integer) data.get(InProceedings.PAGES_FROM));
|
||||
inProceedings.setPagesTo(
|
||||
(Integer) data.get(InProceedings.PAGES_TO));
|
||||
|
||||
inProceedings.save();
|
||||
}
|
||||
|
||||
if (m_step != null) {
|
||||
m_step.maybeForwardToNextStep(fse.getPageState());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,48 @@
|
|||
package com.arsdigita.cms.contenttypes.ui;
|
||||
|
||||
import com.arsdigita.bebop.Label;
|
||||
import com.arsdigita.cms.ItemSelectionModel;
|
||||
import com.arsdigita.cms.ui.authoring.AuthoringKitWizard;
|
||||
import com.arsdigita.cms.ui.authoring.BasicPageForm;
|
||||
import com.arsdigita.cms.ui.authoring.SimpleEditStep;
|
||||
import com.arsdigita.cms.ui.workflow.WorkflowLockedComponentAccess;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Jens Pelzetter
|
||||
*/
|
||||
public class InternetArticlePropertiesStep extends PublicationPropertiesStep {
|
||||
|
||||
public InternetArticlePropertiesStep(ItemSelectionModel itemModel,
|
||||
AuthoringKitWizard parent) {
|
||||
super(itemModel, parent);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void addBasicProperties(ItemSelectionModel itemModel,
|
||||
AuthoringKitWizard parent) {
|
||||
SimpleEditStep basicProperties = new SimpleEditStep(itemModel,
|
||||
parent,
|
||||
EDIT_SHEET_NAME);
|
||||
|
||||
BasicPageForm editBasicSheet =
|
||||
new InternetArticlePropertyForm(itemModel, this);
|
||||
|
||||
basicProperties.add(EDIT_SHEET_NAME,
|
||||
(String) PublicationGlobalizationUtil.globalize(
|
||||
"publications.ui.internetarticle.edit_basic_sheet").
|
||||
localize(),
|
||||
new WorkflowLockedComponentAccess(editBasicSheet,
|
||||
itemModel),
|
||||
editBasicSheet.getSaveCancelSection().
|
||||
getCancelButton());
|
||||
|
||||
basicProperties.setDisplayComponent(
|
||||
getPublicationPropertySheet(itemModel));
|
||||
|
||||
getSegmentedPanel().addSegment(
|
||||
new Label((String) PublicationGlobalizationUtil.globalize(
|
||||
"publications.ui.publication.basic_properties").localize()),
|
||||
basicProperties);
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,154 @@
|
|||
package com.arsdigita.cms.contenttypes.ui;
|
||||
|
||||
import com.arsdigita.bebop.FormData;
|
||||
import com.arsdigita.bebop.FormProcessException;
|
||||
import com.arsdigita.bebop.Label;
|
||||
import com.arsdigita.bebop.event.FormInitListener;
|
||||
import com.arsdigita.bebop.event.FormProcessListener;
|
||||
import com.arsdigita.bebop.event.FormSectionEvent;
|
||||
import com.arsdigita.bebop.event.FormSubmissionListener;
|
||||
import com.arsdigita.bebop.form.TextField;
|
||||
import com.arsdigita.bebop.parameters.DateParameter;
|
||||
import com.arsdigita.bebop.parameters.IntegerParameter;
|
||||
import com.arsdigita.bebop.parameters.ParameterModel;
|
||||
import com.arsdigita.bebop.parameters.StringParameter;
|
||||
import com.arsdigita.cms.ContentType;
|
||||
import com.arsdigita.cms.ItemSelectionModel;
|
||||
import com.arsdigita.cms.contenttypes.GenericOrganizationalUnit;
|
||||
import com.arsdigita.cms.contenttypes.InternetArticle;
|
||||
import com.arsdigita.cms.ui.ItemSearchWidget;
|
||||
import java.util.Calendar;
|
||||
import java.util.Date;
|
||||
import java.util.GregorianCalendar;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Jens Pelzeter
|
||||
*/
|
||||
public class InternetArticlePropertyForm
|
||||
extends PublicationPropertyForm
|
||||
implements FormInitListener,
|
||||
FormProcessListener,
|
||||
FormSubmissionListener {
|
||||
|
||||
private InternetArticlePropertiesStep m_step;
|
||||
private ItemSearchWidget m_itemSearch;
|
||||
private final String ITEM_SEARCH = "organization";
|
||||
public static final String ID = "InternetArticleEdit";
|
||||
|
||||
public InternetArticlePropertyForm(ItemSelectionModel itemModel) {
|
||||
this(itemModel, null);
|
||||
}
|
||||
|
||||
public InternetArticlePropertyForm(ItemSelectionModel itemModel,
|
||||
InternetArticlePropertiesStep step) {
|
||||
super(itemModel, step);
|
||||
m_step = step;
|
||||
addSubmissionListener(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void addWidgets() {
|
||||
super.addWidgets();
|
||||
|
||||
add(new Label((String) PublicationGlobalizationUtil.globalize(
|
||||
"publications.ui.internetarticle.place").localize()));
|
||||
ParameterModel placeParam =
|
||||
new StringParameter(InternetArticle.PLACE);
|
||||
TextField place = new TextField(placeParam);
|
||||
add(place);
|
||||
|
||||
add(new Label((String) PublicationGlobalizationUtil.globalize(
|
||||
"publications.ui.internetarticle.organization").localize()));
|
||||
m_itemSearch = new ItemSearchWidget(ITEM_SEARCH,
|
||||
ContentType.
|
||||
findByAssociatedObjectType(
|
||||
GenericOrganizationalUnit.class.getName()));
|
||||
add(m_itemSearch);
|
||||
|
||||
add(new Label((String) PublicationGlobalizationUtil.globalize(
|
||||
"publications.ui.internetarticle.number").localize()));
|
||||
ParameterModel numberParam =
|
||||
new StringParameter(InternetArticle.NUMBER);
|
||||
TextField number = new TextField(numberParam);
|
||||
add(number);
|
||||
|
||||
add(new Label((String) PublicationGlobalizationUtil.globalize(
|
||||
"publications.ui.internetarticle.number_of_pages").localize()));
|
||||
ParameterModel numberOfPagesParam =
|
||||
new IntegerParameter(InternetArticle.NUMBER_OF_PAGES);
|
||||
TextField numberOfPages = new TextField(numberOfPagesParam);
|
||||
add(numberOfPages);
|
||||
|
||||
add(new Label((String) PublicationGlobalizationUtil.globalize(
|
||||
"publications.ui.internetarticle.edition").localize()));
|
||||
ParameterModel editionParam =
|
||||
new StringParameter(InternetArticle.EDITION);
|
||||
TextField edition = new TextField(editionParam);
|
||||
add(edition);
|
||||
|
||||
add(new Label((String) PublicationGlobalizationUtil.globalize(
|
||||
"publicatons.ui.internetarticle.issn").localize()));
|
||||
ParameterModel issnParam =
|
||||
new StringParameter(InternetArticle.ISSN);
|
||||
TextField issn = new TextField(issnParam);
|
||||
add(issn);
|
||||
|
||||
Calendar today = new GregorianCalendar();
|
||||
add(new Label((String) PublicationGlobalizationUtil.globalize(
|
||||
"publications.ui.internetarticle.publicationdate").
|
||||
localize()));
|
||||
ParameterModel pubDateParam =
|
||||
new DateParameter(InternetArticle.PUBLICATION_DATE);
|
||||
com.arsdigita.bebop.form.Date pubDate =
|
||||
new com.arsdigita.bebop.form.Date(
|
||||
pubDateParam);
|
||||
pubDate.setYearRange(1900, today.get(Calendar.YEAR) + 2);
|
||||
add(pubDate);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void init(FormSectionEvent fse) throws FormProcessException {
|
||||
super.init(fse);
|
||||
|
||||
FormData data = fse.getFormData();
|
||||
InternetArticle article = (InternetArticle) initBasicWidgets(fse);
|
||||
|
||||
data.put(InternetArticle.PLACE, article.getPlace());
|
||||
data.put(ITEM_SEARCH, article.getOrganization());
|
||||
data.put(InternetArticle.NUMBER, article.getNumber());
|
||||
data.put(InternetArticle.NUMBER_OF_PAGES, article.getNumberOfPages());
|
||||
data.put(InternetArticle.EDITION, article.getEdition());
|
||||
data.put(InternetArticle.ISSN, article.getISSN());
|
||||
data.put(InternetArticle.PUBLICATION_DATE,
|
||||
article.getPublicationDate());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void process(FormSectionEvent fse) throws FormProcessException {
|
||||
super.process(fse);
|
||||
|
||||
FormData data = fse.getFormData();
|
||||
InternetArticle article = (InternetArticle) processBasicWidgets(fse);
|
||||
|
||||
if ((article != null) && getSaveCancelSection().getSaveButton().
|
||||
isSelected(fse.getPageState())) {
|
||||
article.setPlace((String) data.get(InternetArticle.PLACE));
|
||||
article.setOrganization(
|
||||
(GenericOrganizationalUnit) data.get(ITEM_SEARCH));
|
||||
article.setNumber((String) data.get(InternetArticle.NUMBER));
|
||||
article.setNumberOfPages(
|
||||
(Integer) data.get(InternetArticle.NUMBER_OF_PAGES));
|
||||
article.setEdition((String) data.get(InternetArticle.EDITION));
|
||||
article.setISSN((String) data.get(InternetArticle.ISSN));
|
||||
article.setPublicationDate(
|
||||
(Date) data.get(InternetArticle.PUBLICATION_DATE));
|
||||
|
||||
article.save();
|
||||
|
||||
if (m_step != null) {
|
||||
m_step.maybeForwardToNextStep(fse.getPageState());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,72 @@
|
|||
package com.arsdigita.cms.contenttypes.ui;
|
||||
|
||||
import com.arsdigita.bebop.Component;
|
||||
import com.arsdigita.bebop.Label;
|
||||
import com.arsdigita.cms.ItemSelectionModel;
|
||||
import com.arsdigita.cms.contenttypes.Monograph;
|
||||
import com.arsdigita.cms.ui.authoring.AuthoringKitWizard;
|
||||
import com.arsdigita.cms.ui.authoring.BasicPageForm;
|
||||
import com.arsdigita.cms.ui.authoring.SimpleEditStep;
|
||||
import com.arsdigita.cms.ui.workflow.WorkflowLockedComponentAccess;
|
||||
import com.arsdigita.toolbox.ui.DomainObjectPropertySheet;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Jens Pelzetter
|
||||
*/
|
||||
public class MonographPropertiesStep
|
||||
extends PublicationWithPublisherPropertiesStep {
|
||||
|
||||
public MonographPropertiesStep(ItemSelectionModel itemModel,
|
||||
AuthoringKitWizard parent) {
|
||||
super(itemModel, parent);
|
||||
}
|
||||
|
||||
public static Component getMonographPropertiesStep(
|
||||
ItemSelectionModel itemModel) {
|
||||
DomainObjectPropertySheet sheet = (DomainObjectPropertySheet) PublicationWithPublisherPropertiesStep.
|
||||
getPublicationWithPublisherPropertySheet(itemModel);
|
||||
|
||||
sheet.add(PublicationGlobalizationUtil.globalize(
|
||||
"publications.ui.monograph.volume"),
|
||||
Monograph.VOLUME);
|
||||
sheet.add(PublicationGlobalizationUtil.globalize(
|
||||
"publications.ui.monograph.numberOfVolumes"),
|
||||
Monograph.NUMBER_OF_VOLUMES);
|
||||
sheet.add(PublicationGlobalizationUtil.globalize(
|
||||
"publications.ui.monograph.numberOfPages"),
|
||||
Monograph.NUMBER_OF_PAGES);
|
||||
sheet.add(PublicationGlobalizationUtil.globalize(
|
||||
"publications.ui.monograph.edition"),
|
||||
Monograph.EDITION);
|
||||
|
||||
return sheet;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void addBasicProperties(ItemSelectionModel itemModel,
|
||||
AuthoringKitWizard parent) {
|
||||
SimpleEditStep basicProperties = new SimpleEditStep(itemModel,
|
||||
parent,
|
||||
EDIT_SHEET_NAME);
|
||||
|
||||
BasicPageForm editBasicSheet =
|
||||
new MonographPropertyForm(itemModel, this);
|
||||
|
||||
basicProperties.add(EDIT_SHEET_NAME,
|
||||
(String) PublicationGlobalizationUtil.globalize(
|
||||
"publications.ui.monography.edit_basic_sheet").localize(),
|
||||
new WorkflowLockedComponentAccess(editBasicSheet,
|
||||
itemModel),
|
||||
editBasicSheet.getSaveCancelSection().
|
||||
getCancelButton());
|
||||
|
||||
basicProperties.setDisplayComponent(
|
||||
getPublicationPropertySheet(itemModel));
|
||||
|
||||
getSegmentedPanel().addSegment(
|
||||
new Label((String) PublicationGlobalizationUtil.globalize(
|
||||
"publications.ui.publication.basic_properties").localize()),
|
||||
basicProperties);
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,109 @@
|
|||
package com.arsdigita.cms.contenttypes.ui;
|
||||
|
||||
import com.arsdigita.bebop.FormData;
|
||||
import com.arsdigita.bebop.FormProcessException;
|
||||
import com.arsdigita.bebop.Label;
|
||||
import com.arsdigita.bebop.event.FormInitListener;
|
||||
import com.arsdigita.bebop.event.FormProcessListener;
|
||||
import com.arsdigita.bebop.event.FormSectionEvent;
|
||||
import com.arsdigita.bebop.event.FormSubmissionListener;
|
||||
import com.arsdigita.bebop.form.TextField;
|
||||
import com.arsdigita.bebop.parameters.IntegerParameter;
|
||||
import com.arsdigita.bebop.parameters.ParameterModel;
|
||||
import com.arsdigita.bebop.parameters.StringParameter;
|
||||
import com.arsdigita.cms.ItemSelectionModel;
|
||||
import com.arsdigita.cms.contenttypes.Monograph;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Jens Pelzetter
|
||||
*/
|
||||
public class MonographPropertyForm
|
||||
extends PublicationWithPublisherPropertyForm
|
||||
implements FormProcessListener,
|
||||
FormInitListener,
|
||||
FormSubmissionListener {
|
||||
|
||||
private MonographPropertiesStep m_step;
|
||||
public static final String ID = "MonographEdit";
|
||||
|
||||
public MonographPropertyForm(ItemSelectionModel itemModel) {
|
||||
this(itemModel, null);
|
||||
}
|
||||
|
||||
public MonographPropertyForm(ItemSelectionModel itemModel,
|
||||
MonographPropertiesStep step) {
|
||||
super(itemModel, step);
|
||||
m_step = step;
|
||||
addSubmissionListener(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void addWidgets() {
|
||||
super.addWidgets();
|
||||
|
||||
add(new Label((String) PublicationGlobalizationUtil.globalize(
|
||||
"publications.ui.monograph.volume").
|
||||
localize()));
|
||||
ParameterModel volumeParam = new IntegerParameter(Monograph.VOLUME);
|
||||
TextField volume = new TextField(volumeParam);
|
||||
add(volume);
|
||||
|
||||
add(new Label((String) PublicationGlobalizationUtil.globalize(
|
||||
"publications.ui.monograph.numberOfVolumes").localize()));
|
||||
ParameterModel numberOfVolumesParam = new IntegerParameter(
|
||||
Monograph.NUMBER_OF_VOLUMES);
|
||||
TextField numberOfVolumes = new TextField(numberOfVolumesParam);
|
||||
add(numberOfVolumes);
|
||||
|
||||
add(new Label((String) PublicationGlobalizationUtil.globalize(
|
||||
"publications.ui.monograph.numberOfPages").localize()));
|
||||
ParameterModel numberOfPagesParam = new IntegerParameter(
|
||||
Monograph.NUMBER_OF_PAGES);
|
||||
TextField numberOfPages = new TextField(numberOfPagesParam);
|
||||
add(numberOfPages);
|
||||
|
||||
add(new Label((String) PublicationGlobalizationUtil.globalize(
|
||||
"publications.ui.monograph.edition").localize()));
|
||||
ParameterModel editionParam = new StringParameter(Monograph.EDITION);
|
||||
TextField edition = new TextField(editionParam);
|
||||
add(edition);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void init(FormSectionEvent fse) throws FormProcessException {
|
||||
super.init(fse);
|
||||
|
||||
FormData data = fse.getFormData();
|
||||
Monograph monograph = (Monograph) super.initBasicWidgets(fse);
|
||||
|
||||
data.put(Monograph.VOLUME, monograph.getVolume());
|
||||
data.put(Monograph.NUMBER_OF_VOLUMES, monograph.getNumberOfVolumes());
|
||||
data.put(Monograph.NUMBER_OF_PAGES, monograph.getNumberOfPages());
|
||||
data.put(Monograph.EDITION, monograph.getEdition());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void process(FormSectionEvent fse) throws FormProcessException {
|
||||
super.process(fse);
|
||||
|
||||
FormData data = fse.getFormData();
|
||||
Monograph monograph = (Monograph) super.processBasicWidgets(fse);
|
||||
|
||||
if ((monograph != null) && getSaveCancelSection().getSaveButton().
|
||||
isSelected(fse.getPageState())) {
|
||||
monograph.setVolume((Integer) data.get(Monograph.VOLUME));
|
||||
monograph.setNumberOfVolumes((Integer) data.get(
|
||||
Monograph.NUMBER_OF_VOLUMES));
|
||||
monograph.setNumberOfPages((Integer) data.get(
|
||||
Monograph.NUMBER_OF_PAGES));
|
||||
monograph.setEdition((String) data.get(Monograph.EDITION));
|
||||
|
||||
monograph.save();
|
||||
}
|
||||
|
||||
if (m_step != null) {
|
||||
m_step.maybeForwardToNextStep(fse.getPageState());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1,6 +1,7 @@
|
|||
package com.arsdigita.cms.contenttypes.ui;
|
||||
|
||||
import com.arsdigita.cms.ItemSelectionModel;
|
||||
import com.arsdigita.cms.ui.authoring.AuthoringKitWizard;
|
||||
import com.arsdigita.cms.ui.authoring.BasicItemForm;
|
||||
import com.arsdigita.cms.ui.authoring.SimpleEditStep;
|
||||
import com.arsdigita.cms.ui.workflow.WorkflowLockedComponentAccess;
|
||||
|
|
|
|||
|
|
@ -81,7 +81,7 @@ public class PublicationPropertiesStep extends SimpleEditStep {
|
|||
return sheet;
|
||||
}
|
||||
|
||||
protected SegementedPanel getSegmentedPanel() {
|
||||
protected SegmentedPanel getSegmentedPanel() {
|
||||
return segmentedPanel;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,13 +1,14 @@
|
|||
package com.arsdigita.cms.contenttypes.ui;
|
||||
|
||||
import com.arsdigita.bebop.Component;
|
||||
import com.arsdigita.bebop.Label;
|
||||
import com.arsdigita.cms.ItemSelectionModel;
|
||||
import com.arsdigita.cms.contenttypes.PublicationWithPublisher;
|
||||
import com.arsdigita.cms.ui.authoring.AuthoringKitWizard;
|
||||
import com.arsdigita.cms.ui.authoring.BasicPageForm;
|
||||
import com.arsdigita.cms.ui.authoring.SimpleEditStep;
|
||||
import com.arsdigita.cms.ui.workflow.WorkflowLockedComponentAccess;
|
||||
|
||||
|
||||
import com.arsdigita.toolbox.ui.DomainObjectPropertySheet;
|
||||
|
||||
/**
|
||||
*
|
||||
|
|
@ -22,6 +23,18 @@ public class PublicationWithPublisherPropertiesStep
|
|||
super(itemModel, parent);
|
||||
}
|
||||
|
||||
public static Component getPublicationWithPublisherPropertySheet(
|
||||
ItemSelectionModel itemModel) {
|
||||
DomainObjectPropertySheet sheet = (DomainObjectPropertySheet) PublicationPropertiesStep.
|
||||
getPublicationPropertySheet(itemModel);
|
||||
|
||||
sheet.add(PublicationGlobalizationUtil.globalize(
|
||||
"publications.ui.with_publisher.isbn"),
|
||||
PublicationWithPublisher.ISBN);
|
||||
|
||||
return sheet;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void addBasicProperties(
|
||||
ItemSelectionModel itemModel,
|
||||
|
|
@ -33,14 +46,16 @@ public class PublicationWithPublisherPropertiesStep
|
|||
BasicPageForm editBasicSheet =
|
||||
new PublicationWithPublisherPropertyForm(itemModel, this);
|
||||
|
||||
basicProperties.add(EDIT_SHEET_NAME, (String) PublicationGlobalizationUtil.
|
||||
globalize("publications.ui.publication.edit_basic_sheet").
|
||||
basicProperties.add(EDIT_SHEET_NAME,
|
||||
(String) PublicationGlobalizationUtil.globalize(
|
||||
"publications.ui.publication.edit_basic_sheet").
|
||||
localize(), new WorkflowLockedComponentAccess(editBasicSheet,
|
||||
itemModel),
|
||||
editBasicSheet.
|
||||
getSaveCancelSection().getCancelButton());
|
||||
editBasicSheet.getSaveCancelSection().
|
||||
getCancelButton());
|
||||
|
||||
basicProperties.setDisplayComponent(getPublicationPropertySheet(
|
||||
basicProperties.setDisplayComponent(
|
||||
getPublicationWithPublisherPropertySheet(
|
||||
itemModel));
|
||||
|
||||
getSegmentedPanel().addSegment(
|
||||
|
|
|
|||
|
|
@ -77,8 +77,7 @@ public class PublicationWithPublisherPropertyForm
|
|||
(PublicationWithPublisher) super.
|
||||
initBasicWidgets(fse);
|
||||
|
||||
data.put(ITEM_SEARCH,
|
||||
publication.getPublisher());
|
||||
data.put(ITEM_SEARCH, publication.getPublisher());
|
||||
data.put(PublicationWithPublisher.ISBN, publication.getISBN());
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -0,0 +1,47 @@
|
|||
package com.arsdigita.cms.contenttypes.ui;
|
||||
|
||||
import com.arsdigita.bebop.Label;
|
||||
import com.arsdigita.cms.ItemSelectionModel;
|
||||
import com.arsdigita.cms.ui.authoring.AuthoringKitWizard;
|
||||
import com.arsdigita.cms.ui.authoring.BasicPageForm;
|
||||
import com.arsdigita.cms.ui.authoring.SimpleEditStep;
|
||||
import com.arsdigita.cms.ui.workflow.WorkflowLockedComponentAccess;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Jens Pelzetter
|
||||
*/
|
||||
public class ReviewPropertiesStep extends PublicationPropertiesStep {
|
||||
|
||||
public ReviewPropertiesStep(ItemSelectionModel itemModel,
|
||||
AuthoringKitWizard parent) {
|
||||
super(itemModel, parent);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void addBasicProperties(ItemSelectionModel itemModel,
|
||||
AuthoringKitWizard parent) {
|
||||
SimpleEditStep basicProperties = new SimpleEditStep(itemModel,
|
||||
parent,
|
||||
EDIT_SHEET_NAME);
|
||||
|
||||
BasicPageForm editBasicSheet =
|
||||
new ReviewPropertyForm(itemModel, this);
|
||||
|
||||
basicProperties.add(EDIT_SHEET_NAME,
|
||||
(String) PublicationGlobalizationUtil.globalize(
|
||||
"publications.ui.review.edit_basic_sheet").
|
||||
localize(), new WorkflowLockedComponentAccess(editBasicSheet,
|
||||
itemModel),
|
||||
editBasicSheet.getSaveCancelSection().
|
||||
getCancelButton());
|
||||
|
||||
basicProperties.setDisplayComponent(
|
||||
getPublicationPropertySheet(itemModel));
|
||||
|
||||
getSegmentedPanel().addSegment(
|
||||
new Label((String) PublicationGlobalizationUtil.globalize(
|
||||
"publications.ui.publication.basic_properties").
|
||||
localize()), basicProperties);
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,147 @@
|
|||
package com.arsdigita.cms.contenttypes.ui;
|
||||
|
||||
import com.arsdigita.bebop.FormData;
|
||||
import com.arsdigita.bebop.FormProcessException;
|
||||
import com.arsdigita.bebop.Label;
|
||||
import com.arsdigita.bebop.event.FormInitListener;
|
||||
import com.arsdigita.bebop.event.FormProcessListener;
|
||||
import com.arsdigita.bebop.event.FormSectionEvent;
|
||||
import com.arsdigita.bebop.event.FormSubmissionListener;
|
||||
import com.arsdigita.bebop.form.TextField;
|
||||
import com.arsdigita.bebop.parameters.DateParameter;
|
||||
import com.arsdigita.bebop.parameters.IntegerParameter;
|
||||
import com.arsdigita.bebop.parameters.ParameterModel;
|
||||
import com.arsdigita.bebop.parameters.StringParameter;
|
||||
import com.arsdigita.cms.ItemSelectionModel;
|
||||
import com.arsdigita.cms.contenttypes.Review;
|
||||
import java.util.Calendar;
|
||||
import java.util.Date;
|
||||
import java.util.GregorianCalendar;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Jens Pelzetter
|
||||
*/
|
||||
public class ReviewPropertyForm
|
||||
extends PublicationPropertyForm
|
||||
implements FormProcessListener,
|
||||
FormInitListener,
|
||||
FormSubmissionListener {
|
||||
|
||||
private ReviewPropertiesStep m_step;
|
||||
public static final String ID = "ReviewEdit";
|
||||
|
||||
public ReviewPropertyForm(ItemSelectionModel itemModel) {
|
||||
this(itemModel, null);
|
||||
}
|
||||
|
||||
public ReviewPropertyForm(ItemSelectionModel itemModel,
|
||||
ReviewPropertiesStep step) {
|
||||
super(itemModel, step);
|
||||
m_step = step;
|
||||
addSubmissionListener(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void addWidgets() {
|
||||
super.addWidgets();
|
||||
|
||||
add(new Label((String) PublicationGlobalizationUtil.globalize(
|
||||
"publications.ui.review.journal").localize()));
|
||||
ParameterModel journalParam = new StringParameter(Review.JOURNAL);
|
||||
TextField journal = new TextField(journalParam);
|
||||
add(journal);
|
||||
|
||||
add(new Label((String) PublicationGlobalizationUtil.globalize(
|
||||
"publications.ui.review.volume").localize()));
|
||||
ParameterModel volumeParam = new IntegerParameter(Review.VOLUME);
|
||||
TextField volume = new TextField(volumeParam);
|
||||
add(volume);
|
||||
|
||||
add(new Label((String) PublicationGlobalizationUtil.globalize(
|
||||
"publications.ui.review.issue").localize()));
|
||||
ParameterModel issueParam = new StringParameter(Review.ISSUE);
|
||||
TextField issue = new TextField(issueParam);
|
||||
add(issue);
|
||||
|
||||
add(new Label((String) PublicationGlobalizationUtil.globalize(
|
||||
"publications.ui.review.pagesFrom").localize()));
|
||||
ParameterModel pagesFromParam = new IntegerParameter(Review.PAGES_FROM);
|
||||
TextField pagesFrom = new TextField(pagesFromParam);
|
||||
add(pagesFrom);
|
||||
|
||||
add(new Label((String) PublicationGlobalizationUtil.globalize(
|
||||
"publcations.ui.review.pagesTo").localize()));
|
||||
ParameterModel pagesToParam = new IntegerParameter(Review.PAGES_TO);
|
||||
TextField pagesTo = new TextField(pagesToParam);
|
||||
add(pagesTo);
|
||||
|
||||
add(new Label((String) PublicationGlobalizationUtil.globalize(
|
||||
"publications.ui.review.issn").localize()));
|
||||
ParameterModel issnParam = new StringParameter(Review.ISSN);
|
||||
TextField issn = new TextField(issnParam);
|
||||
add(issn);
|
||||
|
||||
add(new Label((String) PublicationGlobalizationUtil.globalize(
|
||||
"publications.ui.review.url").localize()));
|
||||
ParameterModel urlParam = new StringParameter(Review.URL);
|
||||
TextField url = new TextField(urlParam);
|
||||
add(url);
|
||||
|
||||
Calendar today = new GregorianCalendar();
|
||||
add(new Label((String) PublicationGlobalizationUtil.globalize(
|
||||
"publications.ui.review.publicationdate").
|
||||
localize()));
|
||||
ParameterModel pubDateParam =
|
||||
new DateParameter(Review.PUBLICATION_DATE);
|
||||
com.arsdigita.bebop.form.Date pubDate =
|
||||
new com.arsdigita.bebop.form.Date(
|
||||
pubDateParam);
|
||||
pubDate.setYearRange(1900, today.get(Calendar.YEAR) + 2);
|
||||
add(pubDate);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void init(FormSectionEvent fse) throws FormProcessException {
|
||||
super.init(fse);
|
||||
|
||||
FormData data = fse.getFormData();
|
||||
Review review = (Review) initBasicWidgets(fse);
|
||||
|
||||
data.put(Review.JOURNAL, review.getJournal());
|
||||
data.put(Review.VOLUME, review.getVolume());
|
||||
data.put(Review.ISSUE, review.getIssue());
|
||||
data.put(Review.PAGES_FROM, review.getPagesFrom());
|
||||
data.put(Review.PAGES_TO, review.getPagesTo());
|
||||
data.put(Review.ISSN, review.getISSN());
|
||||
data.put(Review.URL, review.getUrl());
|
||||
data.put(Review.PUBLICATION_DATE, review.getPublicationDate());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void process(FormSectionEvent fse) throws FormProcessException {
|
||||
super.process(fse);
|
||||
|
||||
FormData data = fse.getFormData();
|
||||
Review review = (Review) processBasicWidgets(fse);
|
||||
|
||||
if ((review != null) && getSaveCancelSection().getSaveButton().
|
||||
isSelected(fse.getPageState())) {
|
||||
review.setJournal((String) data.get(Review.JOURNAL));
|
||||
review.setVolume((Integer) data.get(Review.VOLUME));
|
||||
review.setIssue((String) data.get(Review.ISSUE));
|
||||
review.setPagesFrom((Integer) data.get(Review.PAGES_FROM));
|
||||
review.setPagesTo((Integer) data.get(Review.PAGES_TO));
|
||||
review.setISSN((String) data.get(Review.ISSN));
|
||||
review.setUrl((String) data.get(Review.URL));
|
||||
review.setPublicationDate((Date) data.get(Review.PUBLICATION_DATE));
|
||||
|
||||
review.save();
|
||||
}
|
||||
|
||||
if (m_step != null) {
|
||||
m_step.maybeForwardToNextStep(fse.getPageState());
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,48 @@
|
|||
package com.arsdigita.cms.contenttypes.ui;
|
||||
|
||||
import com.arsdigita.bebop.Label;
|
||||
import com.arsdigita.cms.ItemSelectionModel;
|
||||
import com.arsdigita.cms.ui.authoring.AuthoringKitWizard;
|
||||
import com.arsdigita.cms.ui.authoring.BasicPageForm;
|
||||
import com.arsdigita.cms.ui.authoring.SimpleEditStep;
|
||||
import com.arsdigita.cms.ui.workflow.WorkflowLockedComponentAccess;
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Jens Pelzetter
|
||||
*/
|
||||
public class UnPublishedPropertiesStep extends PublicationPropertiesStep {
|
||||
|
||||
public UnPublishedPropertiesStep(ItemSelectionModel itemModel,
|
||||
AuthoringKitWizard parent) {
|
||||
super(itemModel, parent);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void addBasicProperties(ItemSelectionModel itemModel,
|
||||
AuthoringKitWizard parent) {
|
||||
SimpleEditStep basicProperties = new SimpleEditStep(itemModel,
|
||||
parent,
|
||||
EDIT_SHEET_NAME);
|
||||
|
||||
BasicPageForm editBasicSheet = new UnPublishedPropertyForm(itemModel,
|
||||
this);
|
||||
|
||||
basicProperties.add(EDIT_SHEET_NAME,
|
||||
(String) PublicationGlobalizationUtil.globalize(
|
||||
"publications.ui.unpublished.edit_basic_sheet").
|
||||
localize(), new WorkflowLockedComponentAccess(editBasicSheet,
|
||||
itemModel),
|
||||
editBasicSheet.getSaveCancelSection().
|
||||
getCancelButton());
|
||||
|
||||
basicProperties.setDisplayComponent(
|
||||
getPublicationPropertySheet(itemModel));
|
||||
|
||||
getSegmentedPanel().addSegment(
|
||||
new Label((String) PublicationGlobalizationUtil.globalize(
|
||||
"publications.ui.publication.basic_properties").
|
||||
localize()), basicProperties);
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,117 @@
|
|||
package com.arsdigita.cms.contenttypes.ui;
|
||||
|
||||
import com.arsdigita.bebop.FormData;
|
||||
import com.arsdigita.bebop.FormProcessException;
|
||||
import com.arsdigita.bebop.Label;
|
||||
import com.arsdigita.bebop.event.FormInitListener;
|
||||
import com.arsdigita.bebop.event.FormProcessListener;
|
||||
import com.arsdigita.bebop.event.FormSectionEvent;
|
||||
import com.arsdigita.bebop.event.FormSubmissionListener;
|
||||
import com.arsdigita.bebop.form.TextField;
|
||||
import com.arsdigita.bebop.parameters.IntegerParameter;
|
||||
import com.arsdigita.bebop.parameters.ParameterModel;
|
||||
import com.arsdigita.bebop.parameters.StringParameter;
|
||||
import com.arsdigita.cms.ContentType;
|
||||
import com.arsdigita.cms.ItemSelectionModel;
|
||||
import com.arsdigita.cms.contenttypes.GenericOrganizationalUnit;
|
||||
import com.arsdigita.cms.contenttypes.InternetArticle;
|
||||
import com.arsdigita.cms.contenttypes.UnPublished;
|
||||
import com.arsdigita.cms.ui.ItemSearchWidget;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Jens Pelzetter
|
||||
*/
|
||||
public class UnPublishedPropertyForm
|
||||
extends PublicationPropertyForm
|
||||
implements FormInitListener,
|
||||
FormProcessListener,
|
||||
FormSubmissionListener {
|
||||
|
||||
private UnPublishedPropertiesStep m_step;
|
||||
private ItemSearchWidget m_itemSearch;
|
||||
private final String ITEM_SEARCH = "organization";
|
||||
public static final String ID = "UnPublishedEdit";
|
||||
|
||||
public UnPublishedPropertyForm(ItemSelectionModel itemModel) {
|
||||
this(itemModel, null);
|
||||
}
|
||||
|
||||
public UnPublishedPropertyForm(ItemSelectionModel itemModel,
|
||||
UnPublishedPropertiesStep step) {
|
||||
super(itemModel, step);
|
||||
m_step = step;
|
||||
addSubmissionListener(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void addWidgets() {
|
||||
super.addWidgets();
|
||||
|
||||
add(new Label((String) PublicationGlobalizationUtil.globalize(
|
||||
"publications.ui.unpublished.place").localize()));
|
||||
ParameterModel placeParam =
|
||||
new StringParameter(InternetArticle.PLACE);
|
||||
TextField place = new TextField(placeParam);
|
||||
add(place);
|
||||
|
||||
add(new Label((String) PublicationGlobalizationUtil.globalize(
|
||||
"publications.ui.unpublished.organization").localize()));
|
||||
m_itemSearch = new ItemSearchWidget(ITEM_SEARCH,
|
||||
ContentType.
|
||||
findByAssociatedObjectType(
|
||||
GenericOrganizationalUnit.class.getName()));
|
||||
add(m_itemSearch);
|
||||
|
||||
add(new Label((String) PublicationGlobalizationUtil.globalize(
|
||||
"publications.ui.unpublished.number").localize()));
|
||||
ParameterModel numberParam =
|
||||
new StringParameter(UnPublished.NUMBER);
|
||||
TextField number = new TextField(numberParam);
|
||||
add(number);
|
||||
|
||||
add(new Label((String) PublicationGlobalizationUtil.globalize(
|
||||
"publications.ui.unpublished.number_of_pages").localize()));
|
||||
ParameterModel numberOfPagesParam =
|
||||
new IntegerParameter(UnPublished.NUMBER_OF_PAGES);
|
||||
TextField numberOfPages = new TextField(numberOfPagesParam);
|
||||
add(numberOfPages);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void init(FormSectionEvent fse) throws FormProcessException {
|
||||
super.init(fse);
|
||||
|
||||
FormData data = fse.getFormData();
|
||||
UnPublished unpublished = (UnPublished) initBasicWidgets(fse);
|
||||
|
||||
data.put(UnPublished.PLACE, unpublished.getPlace());
|
||||
data.put(ITEM_SEARCH, unpublished.getOrganization());
|
||||
data.put(UnPublished.NUMBER, unpublished.getNumber());
|
||||
data.put(UnPublished.NUMBER_OF_PAGES, unpublished.getNumberOfPages());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void process(FormSectionEvent fse) throws FormProcessException {
|
||||
super.process(fse);
|
||||
|
||||
FormData data = fse.getFormData();
|
||||
UnPublished unpublished = (UnPublished) processBasicWidgets(fse);
|
||||
|
||||
if ((unpublished != null) && getSaveCancelSection().getSaveButton().
|
||||
isSelected(fse.getPageState())) {
|
||||
unpublished.setPlace((String) data.get(UnPublished.PLACE));
|
||||
unpublished.setOrganization(
|
||||
(GenericOrganizationalUnit) data.get(ITEM_SEARCH));
|
||||
unpublished.setNumber((String) data.get(UnPublished.NUMBER));
|
||||
unpublished.setNumberOfPages(
|
||||
(Integer) data.get(UnPublished.NUMBER_OF_PAGES));
|
||||
|
||||
unpublished.save();
|
||||
|
||||
if (m_step != null) {
|
||||
m_step.maybeForwardToNextStep(fse.getPageState());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,48 @@
|
|||
package com.arsdigita.cms.contenttypes.ui;
|
||||
|
||||
import com.arsdigita.bebop.Label;
|
||||
import com.arsdigita.cms.ItemSelectionModel;
|
||||
import com.arsdigita.cms.ui.authoring.AuthoringKitWizard;
|
||||
import com.arsdigita.cms.ui.authoring.BasicPageForm;
|
||||
import com.arsdigita.cms.ui.authoring.SimpleEditStep;
|
||||
import com.arsdigita.cms.ui.workflow.WorkflowLockedComponentAccess;
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Jens Pelzetter
|
||||
*/
|
||||
public class WorkingPaperPropertiesStep extends UnPublishedPropertiesStep {
|
||||
|
||||
public WorkingPaperPropertiesStep(ItemSelectionModel itemModel,
|
||||
AuthoringKitWizard parent) {
|
||||
super(itemModel, parent);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void addBasicProperties(ItemSelectionModel itemModel,
|
||||
AuthoringKitWizard parent) {
|
||||
SimpleEditStep basicProperties = new SimpleEditStep(itemModel,
|
||||
parent,
|
||||
EDIT_SHEET_NAME);
|
||||
|
||||
BasicPageForm editBasicSheet =
|
||||
new WorkingPaperPropertyForm(itemModel, this);
|
||||
|
||||
basicProperties.add(EDIT_SHEET_NAME,
|
||||
(String) PublicationGlobalizationUtil.globalize(
|
||||
"publications.ui.workingpaper.edit_basic_sheet").
|
||||
localize(), new WorkflowLockedComponentAccess(editBasicSheet,
|
||||
itemModel),
|
||||
editBasicSheet.getSaveCancelSection().
|
||||
getCancelButton());
|
||||
|
||||
basicProperties.setDisplayComponent(
|
||||
getPublicationPropertySheet(itemModel));
|
||||
|
||||
getSegmentedPanel().addSegment(
|
||||
new Label((String) PublicationGlobalizationUtil.globalize(
|
||||
"publications.ui.publication.basic_properties").
|
||||
localize()), basicProperties);
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,48 @@
|
|||
package com.arsdigita.cms.contenttypes.ui;
|
||||
|
||||
import com.arsdigita.bebop.FormProcessException;
|
||||
import com.arsdigita.bebop.event.FormInitListener;
|
||||
import com.arsdigita.bebop.event.FormProcessListener;
|
||||
import com.arsdigita.bebop.event.FormSectionEvent;
|
||||
import com.arsdigita.bebop.event.FormSubmissionListener;
|
||||
import com.arsdigita.cms.ItemSelectionModel;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Jens Pelzetter
|
||||
*/
|
||||
public class WorkingPaperPropertyForm
|
||||
extends UnPublishedPropertyForm
|
||||
implements FormInitListener,
|
||||
FormProcessListener,
|
||||
FormSubmissionListener {
|
||||
|
||||
private WorkingPaperPropertiesStep m_step;
|
||||
public static final String ID = "WorkingPaperEdit";
|
||||
|
||||
public WorkingPaperPropertyForm(ItemSelectionModel itemModel) {
|
||||
this(itemModel, null);
|
||||
}
|
||||
|
||||
public WorkingPaperPropertyForm(ItemSelectionModel itemModel,
|
||||
WorkingPaperPropertiesStep step) {
|
||||
super(itemModel, step);
|
||||
m_step = step;
|
||||
addSubmissionListener(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void addWidgets() {
|
||||
super.addWidgets();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void init(FormSectionEvent fse) throws FormProcessException {
|
||||
super.init(fse);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void process(FormSectionEvent fse) throws FormProcessException {
|
||||
super.process(fse);
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,19 @@
|
|||
<!DOCTYPE stylesheet [
|
||||
<!ENTITY nbsp " " ><!-- 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.ArticleInCollectedVolume']" mode="cms:CT_graphics"
|
||||
name="cms:CT_graphics_com_arsdigita_cms_contenttypes_ArticleInCollectedVolume">
|
||||
<p><xsl:value-of select="./name"/></p>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="cms:item[objectType='com.arsdigita.cms.contenttypes.ArticleInCollectedVolume']" mode="cms:CT_text"
|
||||
name="cms:CT_text_com_arsdigita_cms_contenttypes_ArticleInCollectedVolume">
|
||||
<p><xsl:value-of select="./name"/></p>
|
||||
</xsl:template>
|
||||
|
||||
</xsl:stylesheet>
|
||||
|
|
@ -0,0 +1,19 @@
|
|||
<!DOCTYPE stylesheet [
|
||||
<!ENTITY nbsp " " ><!-- 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.ArticleInJournal']" mode="cms:CT_graphics"
|
||||
name="cms:CT_graphics_com_arsdigita_cms_contenttypes_ArticleInJournal">
|
||||
<p><xsl:value-of select="./name"/></p>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="cms:item[objectType='com.arsdigita.cms.contenttypes.ArticleInJournal']" mode="cms:CT_text"
|
||||
name="cms:CT_text_com_arsdigita_cms_contenttypes_ArticleInJournal">
|
||||
<p><xsl:value-of select="./name"/></p>
|
||||
</xsl:template>
|
||||
|
||||
</xsl:stylesheet>
|
||||
|
|
@ -0,0 +1,19 @@
|
|||
<!DOCTYPE stylesheet [
|
||||
<!ENTITY nbsp " " ><!-- 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.CollectedVolume']" mode="cms:CT_graphics"
|
||||
name="cms:CT_graphics_com_arsdigita_cms_contenttypes_CollectedVolume">
|
||||
<p><xsl:value-of select="./name"/></p>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="cms:item[objectType='com.arsdigita.cms.contenttypes.CollectedVolume']" mode="cms:CT_text"
|
||||
name="cms:CT_text_com_arsdigita_cms_contenttypes_CollectedVolume">
|
||||
<p><xsl:value-of select="./name"/></p>
|
||||
</xsl:template>
|
||||
|
||||
</xsl:stylesheet>
|
||||
|
|
@ -0,0 +1,19 @@
|
|||
<!DOCTYPE stylesheet [
|
||||
<!ENTITY nbsp " " ><!-- 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.Expertise']" mode="cms:CT_graphics"
|
||||
name="cms:CT_graphics_com_arsdigita_cms_contenttypes_Expertise">
|
||||
<p><xsl:value-of select="./name"/></p>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="cms:item[objectType='com.arsdigita.cms.contenttypes.Expertise']" mode="cms:CT_text"
|
||||
name="cms:CT_text_com_arsdigita_cms_contenttypes_Expertise">
|
||||
<p><xsl:value-of select="./name"/></p>
|
||||
</xsl:template>
|
||||
|
||||
</xsl:stylesheet>
|
||||
|
|
@ -0,0 +1,19 @@
|
|||
<!DOCTYPE stylesheet [
|
||||
<!ENTITY nbsp " " ><!-- 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.GreyLiterature.xsl']" mode="cms:CT_graphics"
|
||||
name="cms:CT_graphics_com_arsdigita_cms_contenttypes_GreyLiterature.xsl">
|
||||
<p><xsl:value-of select="./name"/></p>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="cms:item[objectType='com.arsdigita.cms.contenttypes.GreyLiterature.xsl']" mode="cms:CT_text"
|
||||
name="cms:CT_text_com_arsdigita_cms_contenttypes_GreyLiterature.xsl">
|
||||
<p><xsl:value-of select="./name"/></p>
|
||||
</xsl:template>
|
||||
|
||||
</xsl:stylesheet>
|
||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue