From 8d2841c5731da57eb55dc29f201e36df80ecbd5b Mon Sep 17 00:00:00 2001 From: jensp Date: Wed, 17 Nov 2010 16:09:26 +0000 Subject: [PATCH] =?UTF-8?q?Fehlende=20XSL-Template=20(Platzhalter)=20f?= =?UTF-8?q?=C3=BCr=20Journal;=20Formatierungen=20in=20ArticleSectionPanel.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: https://svn.libreccm.org/ccm/trunk@616 8810af33-2d31-482b-a856-94f89814c4df --- .../ui/mparticle/ArticleSectionPanel.java | 12 +++++++++--- .../arsdigita/cms/contenttypes/Journal.xsl | 19 +++++++++++++++++++ 2 files changed, 28 insertions(+), 3 deletions(-) create mode 100644 ccm-sci-publications/web/static/content-types/com/arsdigita/cms/contenttypes/Journal.xsl diff --git a/ccm-cms-types-mparticle/src/com/arsdigita/cms/contenttypes/ui/mparticle/ArticleSectionPanel.java b/ccm-cms-types-mparticle/src/com/arsdigita/cms/contenttypes/ui/mparticle/ArticleSectionPanel.java index 0939d37de..1f3906d42 100755 --- a/ccm-cms-types-mparticle/src/com/arsdigita/cms/contenttypes/ui/mparticle/ArticleSectionPanel.java +++ b/ccm-cms-types-mparticle/src/com/arsdigita/cms/contenttypes/ui/mparticle/ArticleSectionPanel.java @@ -21,7 +21,6 @@ package com.arsdigita.cms.contenttypes.ui.mparticle; import com.arsdigita.bebop.Page; import com.arsdigita.bebop.PageState; import com.arsdigita.bebop.SimpleComponent; -import com.arsdigita.bebop.parameters.BigDecimalParameter; import com.arsdigita.bebop.parameters.ParameterModel; import com.arsdigita.cms.CMS; import com.arsdigita.cms.CMSContext; @@ -29,12 +28,10 @@ import com.arsdigita.cms.CMSExcursion; import com.arsdigita.cms.ContentItem; import com.arsdigita.cms.ContentSection; import com.arsdigita.cms.ExtraXMLGenerator; -import com.arsdigita.cms.ItemSelectionModel; import com.arsdigita.cms.contenttypes.ArticleSection; import com.arsdigita.cms.contenttypes.ArticleSectionCollection; import com.arsdigita.cms.contenttypes.MultiPartArticle; import com.arsdigita.cms.dispatcher.XMLGenerator; -import com.arsdigita.domain.DomainObjectXMLRenderer; import com.arsdigita.util.UncheckedWrapperException; import com.arsdigita.xml.Element; @@ -70,6 +67,7 @@ public class ArticleSectionPanel extends SimpleComponent implements ExtraXMLGene m_page = new PageParameter(PAGE_NUMBER_PARAM); } + @Override public void register(Page p) { super.register(p); @@ -84,6 +82,9 @@ public class ArticleSectionPanel extends SimpleComponent implements ExtraXMLGene * Try to get the section from the context * if there isn't (eg if we are looking at an index * item on a category), guess the section from the item + * @param state + * @param item + * @return */ protected XMLGenerator getXMLGenerator(PageState state, ContentItem item) { ContentSection section = null; @@ -228,6 +229,7 @@ public class ArticleSectionPanel extends SimpleComponent implements ExtraXMLGene * @param parent The parent DOM element * @see com.arsdigita.cms.dispatcher.XMLGenerator */ + @Override public void generateXML(final PageState state, final Element parent) { ContentItem item = getContentItem(state); @@ -248,7 +250,11 @@ public class ArticleSectionPanel extends SimpleComponent implements ExtraXMLGene /** * Specify the XML for a given content item. + * @param item + * @param element + * @param state */ + @Override public void generateXML(ContentItem item, Element element, PageState state) { Element content = element.newChildElement("cms:articleSectionPanel", CMS.CMS_XML_NS); diff --git a/ccm-sci-publications/web/static/content-types/com/arsdigita/cms/contenttypes/Journal.xsl b/ccm-sci-publications/web/static/content-types/com/arsdigita/cms/contenttypes/Journal.xsl new file mode 100644 index 000000000..a4786cd72 --- /dev/null +++ b/ccm-sci-publications/web/static/content-types/com/arsdigita/cms/contenttypes/Journal.xsl @@ -0,0 +1,19 @@ + +]> + + + + +

+
+ + +

+
+ +
\ No newline at end of file