Createstep für Publikationen
git-svn-id: https://svn.libreccm.org/ccm/trunk@1570 8810af33-2d31-482b-a856-94f89814c4dfmaster
parent
9a06f75faa
commit
674402d624
|
|
@ -10,7 +10,7 @@
|
||||||
objectType="com.arsdigita.cms.contenttypes.ArticleInCollectedVolume"
|
objectType="com.arsdigita.cms.contenttypes.ArticleInCollectedVolume"
|
||||||
classname="com.arsdigita.cms.contenttypes.ArticleInCollectedVolume">
|
classname="com.arsdigita.cms.contenttypes.ArticleInCollectedVolume">
|
||||||
|
|
||||||
<ctd:authoring-kit createComponent="com.arsdigita.cms.ui.authoring.PageCreate">
|
<ctd:authoring-kit createComponent="com.arsdigita.cms.contenttypes.ui.PublicationCreate">
|
||||||
|
|
||||||
<ctd:authoring-step
|
<ctd:authoring-step
|
||||||
labelKey="publications.ui.articleInCollectedVolume_properties.title"
|
labelKey="publications.ui.articleInCollectedVolume_properties.title"
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@
|
||||||
objectType="com.arsdigita.cms.contenttypes.ArticleInJournal"
|
objectType="com.arsdigita.cms.contenttypes.ArticleInJournal"
|
||||||
classname="com.arsdigita.cms.contenttypes.ArticleInJournal">
|
classname="com.arsdigita.cms.contenttypes.ArticleInJournal">
|
||||||
|
|
||||||
<ctd:authoring-kit createComponent="com.arsdigita.cms.ui.authoring.PageCreate">
|
<ctd:authoring-kit createComponent="com.arsdigita.cms.contenttypes.ui.PublicationCreate">
|
||||||
|
|
||||||
<ctd:authoring-step
|
<ctd:authoring-step
|
||||||
labelKey="publications.ui.articleInJournal_properties.title"
|
labelKey="publications.ui.articleInJournal_properties.title"
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@
|
||||||
objectType="com.arsdigita.cms.contenttypes.CollectedVolume"
|
objectType="com.arsdigita.cms.contenttypes.CollectedVolume"
|
||||||
classname="com.arsdigita.cms.contenttypes.CollectedVolume">
|
classname="com.arsdigita.cms.contenttypes.CollectedVolume">
|
||||||
|
|
||||||
<ctd:authoring-kit createComponent="com.arsdigita.cms.ui.authoring.PageCreate">
|
<ctd:authoring-kit createComponent="com.arsdigita.cms.contenttypes.ui.PublicationCreate">
|
||||||
|
|
||||||
<ctd:authoring-step
|
<ctd:authoring-step
|
||||||
labelKey="publications.ui.collectedVolume_properties.title"
|
labelKey="publications.ui.collectedVolume_properties.title"
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@
|
||||||
objectType="com.arsdigita.cms.contenttypes.Expertise"
|
objectType="com.arsdigita.cms.contenttypes.Expertise"
|
||||||
classname="com.arsdigita.cms.contenttypes.Expertise">
|
classname="com.arsdigita.cms.contenttypes.Expertise">
|
||||||
|
|
||||||
<ctd:authoring-kit createComponent="com.arsdigita.cms.ui.authoring.PageCreate">
|
<ctd:authoring-kit createComponent="com.arsdigita.cms.contenttypes.ui.PublicationCreate">
|
||||||
|
|
||||||
<ctd:authoring-step
|
<ctd:authoring-step
|
||||||
labelKey="publications.ui.expertise_properties.title"
|
labelKey="publications.ui.expertise_properties.title"
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@
|
||||||
objectType="com.arsdigita.cms.contenttypes.GreyLiterature"
|
objectType="com.arsdigita.cms.contenttypes.GreyLiterature"
|
||||||
classname="com.arsdigita.cms.contenttypes.GreyLiterature">
|
classname="com.arsdigita.cms.contenttypes.GreyLiterature">
|
||||||
|
|
||||||
<ctd:authoring-kit createComponent="com.arsdigita.cms.ui.authoring.PageCreate">
|
<ctd:authoring-kit createComponent="com.arsdigita.cms.contenttypes.ui.PublicationCreate">
|
||||||
|
|
||||||
<ctd:authoring-step
|
<ctd:authoring-step
|
||||||
labelKey="publications.ui.greyLiterature_properties.title"
|
labelKey="publications.ui.greyLiterature_properties.title"
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@
|
||||||
objectType="com.arsdigita.cms.contenttypes.InProceedings"
|
objectType="com.arsdigita.cms.contenttypes.InProceedings"
|
||||||
classname="com.arsdigita.cms.contenttypes.InProceedings">
|
classname="com.arsdigita.cms.contenttypes.InProceedings">
|
||||||
|
|
||||||
<ctd:authoring-kit createComponent="com.arsdigita.cms.ui.authoring.PageCreate">
|
<ctd:authoring-kit createComponent="com.arsdigita.cms.contenttypes.ui.PublicationCreate">
|
||||||
|
|
||||||
<ctd:authoring-step
|
<ctd:authoring-step
|
||||||
labelKey="publications.ui.inProceedings_properties.title"
|
labelKey="publications.ui.inProceedings_properties.title"
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@
|
||||||
objectType="com.arsdigita.cms.contenttypes.InternetArticle"
|
objectType="com.arsdigita.cms.contenttypes.InternetArticle"
|
||||||
classname="com.arsdigita.cms.contenttypes.InternetArticle">
|
classname="com.arsdigita.cms.contenttypes.InternetArticle">
|
||||||
|
|
||||||
<ctd:authoring-kit createComponent="com.arsdigita.cms.ui.authoring.PageCreate">
|
<ctd:authoring-kit createComponent="com.arsdigita.cms.contenttypes.ui.PublicationCreate">
|
||||||
|
|
||||||
<ctd:authoring-step
|
<ctd:authoring-step
|
||||||
labelKey="publications.ui.InternetArticle_properties.title"
|
labelKey="publications.ui.InternetArticle_properties.title"
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@
|
||||||
objectType="com.arsdigita.cms.contenttypes.Journal"
|
objectType="com.arsdigita.cms.contenttypes.Journal"
|
||||||
classname="com.arsdigita.cms.contenttypes.Journal">
|
classname="com.arsdigita.cms.contenttypes.Journal">
|
||||||
|
|
||||||
<ctd:authoring-kit createComponent="com.arsdigita.cms.ui.authoring.PageCreate">
|
<ctd:authoring-kit createComponent="com.arsdigita.cms.contenttypes.ui.PublicationCreate">
|
||||||
|
|
||||||
<ctd:authoring-step
|
<ctd:authoring-step
|
||||||
labelKey="publications.ui.articleInJournal_properties.title"
|
labelKey="publications.ui.articleInJournal_properties.title"
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@
|
||||||
objectType="com.arsdigita.cms.contenttypes.Monograph"
|
objectType="com.arsdigita.cms.contenttypes.Monograph"
|
||||||
classname="com.arsdigita.cms.contenttypes.Monograph">
|
classname="com.arsdigita.cms.contenttypes.Monograph">
|
||||||
|
|
||||||
<ctd:authoring-kit createComponent="com.arsdigita.cms.ui.authoring.PageCreate">
|
<ctd:authoring-kit createComponent="com.arsdigita.cms.contenttypes.ui.PublicationCreate">
|
||||||
|
|
||||||
<ctd:authoring-step
|
<ctd:authoring-step
|
||||||
labelKey="publications.ui.monograph_properties.title"
|
labelKey="publications.ui.monograph_properties.title"
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@
|
||||||
objectType="com.arsdigita.cms.contenttypes.Proceedings"
|
objectType="com.arsdigita.cms.contenttypes.Proceedings"
|
||||||
classname="com.arsdigita.cms.contenttypes.Proceedings">
|
classname="com.arsdigita.cms.contenttypes.Proceedings">
|
||||||
|
|
||||||
<ctd:authoring-kit createComponent="com.arsdigita.cms.ui.authoring.PageCreate">
|
<ctd:authoring-kit createComponent="com.arsdigita.cms.contenttypes.ui.PublicationCreate">
|
||||||
|
|
||||||
<ctd:authoring-step
|
<ctd:authoring-step
|
||||||
labelKey="publications.ui.proceedings_properties.title"
|
labelKey="publications.ui.proceedings_properties.title"
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@
|
||||||
classname="com.arsdigita.cms.contenttypes.Publication"
|
classname="com.arsdigita.cms.contenttypes.Publication"
|
||||||
mode="hidden">
|
mode="hidden">
|
||||||
|
|
||||||
<ctd:authoring-kit createComponent="com.arsdigita.cms.ui.authoring.PageCreate">
|
<ctd:authoring-kit createComponent="com.arsdigita.cms.contenttypes.ui.PublicationCreate">
|
||||||
|
|
||||||
<ctd:authoring-step
|
<ctd:authoring-step
|
||||||
labelKey="publications.ui.publication_properties.title"
|
labelKey="publications.ui.publication_properties.title"
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@
|
||||||
classname="com.arsdigita.cms.contenttypes.PublicationWithPublisher"
|
classname="com.arsdigita.cms.contenttypes.PublicationWithPublisher"
|
||||||
mode="hidden">
|
mode="hidden">
|
||||||
|
|
||||||
<ctd:authoring-kit createComponent="com.arsdigita.cms.ui.authoring.PageCreate">
|
<ctd:authoring-kit createComponent="com.arsdigita.cms.contenttypes.ui.PublicationCreate">
|
||||||
|
|
||||||
<ctd:authoring-step
|
<ctd:authoring-step
|
||||||
labelKey="publications.ui.publication_with_publishers_properties.title"
|
labelKey="publications.ui.publication_with_publishers_properties.title"
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@
|
||||||
objectType="com.arsdigita.cms.contenttypes.Review"
|
objectType="com.arsdigita.cms.contenttypes.Review"
|
||||||
classname="com.arsdigita.cms.contenttypes.Review">
|
classname="com.arsdigita.cms.contenttypes.Review">
|
||||||
|
|
||||||
<ctd:authoring-kit createComponent="com.arsdigita.cms.ui.authoring.PageCreate">
|
<ctd:authoring-kit createComponent="com.arsdigita.cms.contenttypes.ui.PublicationCreate">
|
||||||
|
|
||||||
<ctd:authoring-step
|
<ctd:authoring-step
|
||||||
labelKey="publications.ui.review_properties.title"
|
labelKey="publications.ui.review_properties.title"
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@
|
||||||
classname="com.arsdigita.cms.contenttypes.UnPublished"
|
classname="com.arsdigita.cms.contenttypes.UnPublished"
|
||||||
mode="hidden">
|
mode="hidden">
|
||||||
|
|
||||||
<ctd:authoring-kit createComponent="com.arsdigita.cms.ui.authoring.PageCreate">
|
<ctd:authoring-kit createComponent="com.arsdigita.cms.contenttypes.ui.PublicationCreate">
|
||||||
|
|
||||||
<ctd:authoring-step
|
<ctd:authoring-step
|
||||||
labelKey="publications.ui.unPublished_properties.title"
|
labelKey="publications.ui.unPublished_properties.title"
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@
|
||||||
objectType="com.arsdigita.cms.contenttypes.WorkingPaper"
|
objectType="com.arsdigita.cms.contenttypes.WorkingPaper"
|
||||||
classname="com.arsdigita.cms.contenttypes.WorkingPaper">
|
classname="com.arsdigita.cms.contenttypes.WorkingPaper">
|
||||||
|
|
||||||
<ctd:authoring-kit createComponent="com.arsdigita.cms.ui.authoring.PageCreate">
|
<ctd:authoring-kit createComponent="com.arsdigita.cms.contenttypes.ui.PublicationCreate">
|
||||||
|
|
||||||
<ctd:authoring-step
|
<ctd:authoring-step
|
||||||
labelKey="publications.ui.workingPaper_properties.title"
|
labelKey="publications.ui.workingPaper_properties.title"
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,58 @@
|
||||||
|
package com.arsdigita.cms.contenttypes.ui;
|
||||||
|
|
||||||
|
import com.arsdigita.bebop.FormData;
|
||||||
|
import com.arsdigita.bebop.FormProcessException;
|
||||||
|
import com.arsdigita.bebop.PageState;
|
||||||
|
import com.arsdigita.bebop.event.FormSectionEvent;
|
||||||
|
import com.arsdigita.cms.ContentItem;
|
||||||
|
import com.arsdigita.cms.ContentPage;
|
||||||
|
import com.arsdigita.cms.ContentSection;
|
||||||
|
import com.arsdigita.cms.Folder;
|
||||||
|
import com.arsdigita.cms.ItemSelectionModel;
|
||||||
|
import com.arsdigita.cms.contenttypes.PublicationBundle;
|
||||||
|
import com.arsdigita.cms.ui.authoring.CreationSelector;
|
||||||
|
import com.arsdigita.cms.ui.authoring.PageCreate;
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @author Jens Pelzetter
|
||||||
|
* @version $Id$
|
||||||
|
*/
|
||||||
|
public class PublicationCreate extends PageCreate {
|
||||||
|
|
||||||
|
public PublicationCreate(final ItemSelectionModel itemModel,
|
||||||
|
final CreationSelector parent) {
|
||||||
|
super(itemModel, parent);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void process(final FormSectionEvent fse) throws FormProcessException {
|
||||||
|
final FormData data = fse.getFormData();
|
||||||
|
final PageState state = fse.getPageState();
|
||||||
|
final ContentSection section = m_parent.getContentSection(state);
|
||||||
|
final Folder folder = m_parent.getFolder(state);
|
||||||
|
|
||||||
|
final ContentPage item = createContentPage(state);
|
||||||
|
item.setLanguage((String) data.get(LANGUAGE));
|
||||||
|
item.setName((String) data.get(NAME));
|
||||||
|
item.setTitle((String) data.get(TITLE));
|
||||||
|
if (!ContentSection.getConfig().getHideLaunchDate()) {
|
||||||
|
item.setLaunchDate((Date) data.get(LAUNCH_DATE));
|
||||||
|
}
|
||||||
|
|
||||||
|
final PublicationBundle bundle = createBundle(item);
|
||||||
|
bundle.setParent(folder);
|
||||||
|
bundle.setContentSection(section);
|
||||||
|
bundle.save();
|
||||||
|
|
||||||
|
m_workflowSection.applyWorkflow(state, item);
|
||||||
|
|
||||||
|
m_parent.editItem(state, item);
|
||||||
|
}
|
||||||
|
|
||||||
|
protected PublicationBundle createBundle(final ContentItem primary) {
|
||||||
|
return new PublicationBundle(primary);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue