Created a new application ccm-cms-portletdataprovider

git-svn-id: https://svn.libreccm.org/ccm/trunk@2524 8810af33-2d31-482b-a856-94f89814c4df
master
jensp 2014-02-15 15:17:27 +00:00
parent 7aacf4d071
commit ddff90e199
8 changed files with 131 additions and 4 deletions

View File

@ -0,0 +1,27 @@
<?xml version="1.0"?>
<ccm:application xmlns:ccm="http://ccm.redhat.com/ccm-project"
name="ccm-cms-portletdataprovider"
prettyName="LibreCCM Portlet Data Provider"
version="6.6.0"
release="1"
webapp="ROOT">
<ccm:dependencies>
<ccm:requires name="ccm-core" version="6.6.0" release="ge"/>
<ccm:requires name="ccm-cms" version="6.6.0" release="ge"/>
<ccm:requires name="ccm-navigation" version="6.6.0" release="ge"/>
</ccm:dependencies>
<ccm:directories>
<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>
Provides a data for JSR-286 compatible portlets (and other consumers) running on another
server or in another context.
</ccm:description>
</ccm:application>

View File

@ -0,0 +1,12 @@
<load>
<requires>
<table name="inits"/>
<table name="acs_objects"/>
<table name="cms_items"/>
<initalizer class="com.arsdigita.cms.Initializer"/>
<initalizer class="com.arsdigita.navigation.Initalizer"/>
</requires>
<provides>
<initalizer class="com.arsdigita.cms.portletdataprovider.Initializer"/>
</provides>
</load>

View File

@ -0,0 +1,49 @@
/*
* Copyright (c) 2014 Jens Pelzetter
*
* 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
*
*/package com.arsdigita.cms.portletdataprovider;
import com.arsdigita.db.DbHelper;
import com.arsdigita.persistence.pdl.ManifestSource;
import com.arsdigita.persistence.pdl.NameFilter;
import com.arsdigita.runtime.CompoundInitializer;
import com.arsdigita.runtime.DomainInitEvent;
import com.arsdigita.runtime.PDLInitializer;
import com.arsdigita.runtime.RuntimeConfig;
/**
*
* @author Jens Pelzetter <jens@jp-digital.de>
* @version $Id$
*/
public class Initalizer extends CompoundInitializer {
public Initalizer() {
final String jdbcUrl = RuntimeConfig.getConfig().getJDBCURL();
final int database = DbHelper.getDatabaseFromURL(jdbcUrl);
add(new PDLInitializer(new ManifestSource("empty.pdl.mf",
new NameFilter(DbHelper.
getDatabaseSuffix(database), "pdl"))));
}
@Override
public void init(final DomainInitEvent event) {
super.init(event);
}
}

View File

@ -0,0 +1,36 @@
/*
* Copyright (c) 2013 Jens Pelzetter
*
* 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
*
*/
package com.arsdigita.cms.portletdataprovider;
import com.arsdigita.loader.PackageLoader;
import com.arsdigita.runtime.ScriptContext;
/**
*
* @author Jens Pelzetter <jens@jp-digital.de>
* @version $Id$
*/
public class Loader extends PackageLoader {
@Override
public void run(final ScriptContext ctx) {
//Nothing to do.
}
}

View File

@ -41,7 +41,7 @@
<line id="SciPublicationsListyearOfPublication">Erscheinungsjahr</line> <line id="SciPublicationsListyearOfPublication">Erscheinungsjahr</line>
<line id="SciPublicationsListyearOfPublicationAll">Alle</line> <line id="SciPublicationsListyearOfPublicationAll">Alle</line>
<line id="SciPublicationsListSortBy">Sortieren nach</line> <line id="SciPublicationsListSortBy">Sortieren nach</line>
s<line id="SciPublicationsListSortBytitle">Titel</line> <line id="SciPublicationsListSortBytitle">Titel</line>
<line id="SciPublicationsListSortByyearAsc">Jahr (aufsteigend)</line> <line id="SciPublicationsListSortByyearAsc">Jahr (aufsteigend)</line>
<line id="SciPublicationsListSortByyearDesc">Jahr (absteigend)</line> <line id="SciPublicationsListSortByyearDesc">Jahr (absteigend)</line>
<line id="SciPublicationsListSortByauthors">Autoren</line> <line id="SciPublicationsListSortByauthors">Autoren</line>

View File

@ -116,9 +116,6 @@
</xsl:when> </xsl:when>
<xsl:otherwise> <xsl:otherwise>
<xsl:text>Nicht unterstützt</xsl:text> <xsl:text>Nicht unterstützt</xsl:text>
<!--
<xsl:call-template name="mandalay:fallbackEntryPoint"/>
-->
</xsl:otherwise> </xsl:otherwise>
</xsl:choose> </xsl:choose>
</xsl:template> </xsl:template>

View File

@ -49,6 +49,12 @@
</xsl:template> </xsl:template>
--> -->
<xsl:template name="fragmentLayout">
<div class="ccmFragment">
<xsl:apply-templates/>
</div>
</xsl:template>
<xsl:template match="showDynamicImage"> <xsl:template match="showDynamicImage">
<div> <div>
<xsl:call-template name="mandalay:setIdAndClass"/> <xsl:call-template name="mandalay:setIdAndClass"/>