Changed Content Center colours to the new bluish style

git-svn-id: https://svn.libreccm.org/ccm/trunk@2635 8810af33-2d31-482b-a856-94f89814c4df
master
jensp 2014-05-19 13:10:20 +00:00
parent ee43570f8e
commit 0c492b9aaf
8 changed files with 1209 additions and 1119 deletions

View File

@ -73,6 +73,10 @@ h2 {
border: none;
}
table.htmlarea td.toolbarElement {
padding: 0px;
}
.tableCell, span.key, span.value {
display: table-cell;
width: auto;
@ -95,8 +99,8 @@ h2 {
}
#cmsPage .headerHeight {
height: 100px;
top: 100px;
height: 70px;
top: 70px;
}
/*-----CMS Header-----*/
@ -105,17 +109,17 @@ h2 {
top: auto !important;
padding-bottom: 35px;
color: #ffffff;
background-color:#75051d;
background-image: linear-gradient(top, #75051d 25%, #2f020c 75%);
background-image: -o-linear-gradient(top, #75051d 25%, #2f020c 75%);
background-image: -ie-linear-gradient(top, #75051d 25%, #2f020c 75%);
background-image: -moz-linear-gradient(top, #75051d 25%, #2f020c 75%);
background-image: -webkit-linear-gradient(top, #75051d 25%, #2f020c 75%);
background-color:#56a1bd;
background-image: linear-gradient(top, #56a1bd 5%, #024C68 95%);
background-image: -o-linear-gradient(top, #56a1bd 5%, #024C68 95%);
background-image: -ie-linear-gradient(top, #56a1bd 5%, #024C68 95%);
background-image: -moz-linear-gradient(top, #56a1bd 5%, #024C68 95%);
background-image: -webkit-linear-gradient(top, #56a1bd 5%, #024C68 95%);
/*Compatibility IE- es fuktioniert noch nicht ganz*/
filter: progid:DXImageTransform.Microsoft.gradient(enabled='true',gradientType='0',startColorstr='#75051d',
endColorstr='#2f020c'); /* IE6 & IE7 */
-ms-filter: progid:DXImageTransform.Microsoft.gradient(enabled='true',gradientType='0',startColorstr='#75051d',
endColorstr='#2f020c'); /* IE8 */
filter: progid:DXImageTransform.Microsoft.gradient(enabled='true',gradientType='0',startColorstr='#56a1bd',
endColorstr='#024C68'); /* IE6 & IE7 */
-ms-filter: progid:DXImageTransform.Microsoft.gradient(enabled='true',gradientType='0',startColorstr='#56a1bd',
endColorstr='#024C68'); /* IE8 */
font-size: 0.8em;
}
@ -188,7 +192,7 @@ span.bebopTab {
border-top-right-radius: 0.5em;
padding: 0.4em;
white-space: nowrap;
background-color: #2c2b2d;
background-color: #4a4a4a;
transition: all 0.5s ease;
-o-transition: all 0.5s ease;
-ie-transition: all 0.5s ease;
@ -438,7 +442,7 @@ div#right{
div#right div.columnHead {
font-weight: bold;
background-color: #75051d;
background-color: #0776a0;
}
div#right div.columnContent{
@ -503,7 +507,7 @@ a, a:visited {
a:hover {
text-decoration: none;
color: #a75b3b;
color: #FF9200;
}
a img {
@ -539,7 +543,7 @@ table * table ,form table {
}
table thead tr th {
padding-left: 0.9em;
padding-lef t: 0.9em;
color: #999999;
text-align: left;
background-color: #eeeeee;
@ -671,7 +675,7 @@ div.actionLink span {
margin-right: 1.5em;
border-radius: 0.3em;
padding: 0.3em 2em;
background-color: #75051d;
background-color: #0776A0;
box-shadow: inset 5px 5px 10px rgba(255,255,255,0.3),inset -5px -5px 10px rgba(0,0,0,0.3);
}
@ -682,7 +686,7 @@ div.actionLink a {
}
div.actionLink span:hover {
background-color: #cc0033 ;
background-color: #07698e ;
}
div.actionLink span:active {
@ -1075,7 +1079,7 @@ div.cmsSummarySection div.cmsSummaryHeading {
}
div.cmsSummarySection .cmsSummaryHeading {
color: #75051d;
color: #0776A0;
}
div.cmsSummaryBody {
@ -1084,6 +1088,14 @@ div.cmsSummaryBody {
border-bottom: 1px solid rgba(102, 102, 102, 0.5);
}
div.cmsSummaryBody ul.categoryList li{
padding-left: 30px;
}
div.cmsSummarySection ul {
text-indent: -2.5em;
}
span.cmsCurrentRevision {
font-style:italic;
font-weight:bold;
@ -1221,7 +1233,7 @@ div#cmsFooter{
width: 100%;
height: 30px;
color: #a4a4a4;
background-color: #1c1b1d;
background-color: #29272a;
font-size: 0.8em;
}
@ -1365,6 +1377,24 @@ input#draft_search:active {
background-color: #ffffff;
}
#content form fieldset {
border: none;
margin: 0.5em 0em 1em 0.3em;
border-top: 1px dotted #0776A0;
border-bottom: 1px dotted #0776A0;
padding: 0.3em 0em;
color: #0776A0;
font-weight: bold;
}
#content span.optionGroup input[value="externalLink"]:checked ~ fieldset[class="internalLink"]{
display:none;
}
#content span.optionGroup input[value="internalLink"]:checked ~ fieldset[class="externalLink"]{
display:none;
}
#content form select {
padding: 0.25em;
min-width: 11.4em;
@ -1383,7 +1413,7 @@ input#draft_search:active {
border: none;
padding: 0 2em;
color: #ffffff;
background-color: #75051d;
background-color: #0776a0;
background-image: none;
height: 1.8em;
box-shadow: inset 5px 5px 10px rgba(255,255,255,0.3),inset -5px -5px
@ -1399,7 +1429,7 @@ input#file_upload{
box-shadow: inset 5px 5px 10px rgba(255,255,255,0.3),inset -5px -5px 10px rgba(0,0,0,0.3);
}
#content form input[type="submit"]:hover {
background-color: #cc0033 ;
background-color: #07698e ;
background-image: none;
}
@ -1452,3 +1482,6 @@ div.bebopGridPanel{
background-image: -o-linear-gradient(top, #eeeeee, #cccccc);
}
ul.bebopTree li a[type="control"] {
padding: 5px;
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

View File

@ -58,7 +58,7 @@
<!-- DE Titel (wird das noch verwendet?) -->
<!-- EN Title (is this still used?) -->
<xsl:template match="bebop:title">
<h1>
<h1 class="bebopTitle">
<xsl:value-of select="."/>
</h1>
</xsl:template>

View File

@ -31,471 +31,471 @@
<!-- Autor: Sören Bernstein -->
<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:bebop="http://www.arsdigita.com/bebop/1.0"
xmlns:cms="http://www.arsdigita.com/cms/1.0"
xmlns:nav="http://ccm.redhat.com/navigation"
xmlns:ui="http://www.arsdigita.com/ui/1.0"
xmlns:mandalay="http://mandalay.quasiweb.de"
xmlns:forum="http://www.arsdigita.com/forum/1.0"
xmlns:math="java://java.lang.Math"
exclude-result-prefixes="xsl bebop cms forum nav mandalay"
version="1.0">
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:bebop="http://www.arsdigita.com/bebop/1.0"
xmlns:cms="http://www.arsdigita.com/cms/1.0"
xmlns:nav="http://ccm.redhat.com/navigation"
xmlns:ui="http://www.arsdigita.com/ui/1.0"
xmlns:mandalay="http://mandalay.quasiweb.de"
xmlns:forum="http://www.arsdigita.com/forum/1.0"
xmlns:math="java://java.lang.Math"
exclude-result-prefixes="xsl bebop cms forum nav mandalay"
version="1.0">
<xsl:template name="mandalay:breadcrumbs">
<xsl:param name="layoutTree" select="."/>
<xsl:template name="mandalay:breadcrumbs">
<xsl:param name="layoutTree" select="."/>
<!-- DE Hole alle benötigten Einstellungen-->
<!-- EN Getting all needed setting-->
<xsl:variable name="separator">
<xsl:call-template name="mandalay:getSetting">
<xsl:with-param name="node" select="$layoutTree/separator" />
<xsl:with-param name="module" select="'breadcrumbs'" />
<xsl:with-param name="setting" select="'separator'" />
<xsl:with-param name="default" select="' -> '" />
</xsl:call-template>
</xsl:variable>
<!-- DE Hole alle benötigten Einstellungen-->
<!-- EN Getting all needed setting-->
<xsl:variable name="separator">
<xsl:call-template name="mandalay:getSetting">
<xsl:with-param name="node" select="$layoutTree/separator" />
<xsl:with-param name="module" select="'breadcrumbs'" />
<xsl:with-param name="setting" select="'separator'" />
<xsl:with-param name="default" select="' -> '" />
</xsl:call-template>
</xsl:variable>
<div id="breadcrumbs">
<span class="breadPath">
<span class="breadPrefix">
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'breadcrumbs'"/>
<xsl:with-param name="id" select="'prefix'"/>
</xsl:call-template>
<div id="breadcrumbs">
<span class="breadPath">
<span class="breadPrefix">
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'breadcrumbs'"/>
<xsl:with-param name="id" select="'prefix'"/>
</xsl:call-template>
&nbsp;
</span>
<xsl:choose>
<xsl:when test="count($resultTree//nav:categoryPath/nav:category) > 1 or not($resultTree/bebop:title = 'Navigation')">
<a>
<xsl:attribute name="href">
<xsl:choose>
<xsl:when test="$resultTree/nav:categoryPath/nav:category/@url">
<xsl:value-of select="$resultTree/nav:categoryPath/nav:category/@url"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$resultTree/ui:userBanner/@workspaceURL"/>
</xsl:otherwise>
</xsl:choose>
</xsl:attribute>
<xsl:attribute name="title">
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'breadcrumbs'"/>
<xsl:with-param name="id" select="'root'"/>
</xsl:call-template>
</xsl:attribute>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'breadcrumbs'"/>
<xsl:with-param name="id" select="'root'"/>
</xsl:call-template>
</a>
<span class="breadArrow">
<xsl:value-of select="$separator"/>
</span>
</xsl:when>
<xsl:otherwise>
<span class="breadHi">
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'breadcrumbs'"/>
<xsl:with-param name="id" select="'root'"/>
</xsl:call-template>
</span>
</xsl:otherwise>
</xsl:choose>
<!-- DE Behandle Sonderfälle -->
<!-- EN Special cases-->
<xsl:choose>
<xsl:when test="count($resultTree//nav:categoryPath/nav:category) &lt; 2 and not($resultTree/bebop:title = 'Navigation')">
<!-- DE Unterscheide die Sonderfälle -->
<!-- EN choose special case -->
<xsl:choose>
<!-- DE Wenn Application = AtoZ, dann zeige das an -->
<!-- EN if application = AtoZ, then set breadcrumb to AtoZ -->
<xsl:when test="$resultTree/bebop:title = 'AtoZ'">
<span class="breadHi">
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'breadcrumbs'"/>
<xsl:with-param name="id" select="'atoz'"/>
</xsl:call-template>
</span>
</xsl:when>
<!-- DE Wenn Application = Suche, dann zeige das an -->
<!-- EN If application = Search, then set breadcrumb to search -->
<xsl:when test="$resultTree/bebop:title = 'Search'">
<span class="breadHi">
<xsl:choose>
<xsl:when test="$resultTree/@id='search'">
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'breadcrumbs'"/>
<xsl:with-param name="id" select="'search'"/>
</xsl:call-template>
</xsl:when>
<xsl:when test="$resultTree/@id='advanced'">
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'breadcrumbs'"/>
<xsl:with-param name="id" select="'advsearch'"/>
</xsl:call-template>
</xsl:when>
<xsl:otherwise/>
</xsl:choose>
</span>
</xsl:when>
<!-- DE Wenn Application = Sitemap, dann zeige das an -->
<!-- EN If application = Sitemap, then set breadcrumb to sitemap -->
<xsl:when test="$resultTree/@id = 'sitemapPage'">
<span class="breadHi">
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'breadcrumbs'"/>
<xsl:with-param name="id" select="'sitemap'"/>
</xsl:call-template>
</span>
</xsl:when>
<!-- DE Wenn Title = Log In, dann zeige das an -->
<!-- EN If title = Log In, then set breadcrumb to login -->
<xsl:when test="$resultTree/bebop:title = 'Log in'">
<span class="breadHi">
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'breadcrumbs'"/>
<xsl:with-param name="id" select="'login'"/>
</xsl:call-template>
</span>
</xsl:when>
<!-- DE Wenn Application = forum, dann zeige das an -->
<!-- EN If application = forum, then set breadcrumb to login -->
<xsl:when test="$resultTree/@id = 'forumPage'">
<span class="breadHi">
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'breadcrumbs'"/>
<xsl:with-param name="id" select="'forum'"/>
</xsl:call-template>
<xsl:value-of select="$resultTree//forum:name"/>
</span>
</xsl:when>
<xsl:when test="$resultTree/@id = 'forumThreadPage'">
<a>
<xsl:attribute name="href">
<xsl:value-of select="'index.jsp'"/>
</xsl:attribute>
<xsl:attribute name="title">
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'breadcrumbs'"/>
<xsl:with-param name="id" select="'forum'"/>
</xsl:call-template>
<xsl:value-of select="$resultTree//forum:name"/>
</xsl:attribute>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'breadcrumbs'"/>
<xsl:with-param name="id" select="'forum'"/>
</xsl:call-template>
<xsl:value-of select="$resultTree//forum:name"/>
</a>
<span class="breadArrow">
<xsl:value-of select="$separator"/>
</span>
<span class="breadHi">
<xsl:call-template name="mandalay:breadcrumbText">
<xsl:with-param name="text">
<xsl:value-of select="$resultTree//forum:threadDisplay/forum:message/subject"/>
</xsl:with-param>
<xsl:with-param name="mode">mark</xsl:with-param>
</xsl:call-template>
</span>
</xsl:when>
<!-- DE ContentItem in der Root-Ebene-->
<xsl:otherwise>
<span class="breadHi">
<xsl:call-template name="mandalay:breadcrumbText">
<xsl:with-param name="text">
<xsl:value-of select="$resultTree//cms:contentPanel/cms:item/title"/>
</xsl:with-param>
<xsl:with-param name="mode">mark</xsl:with-param>
</xsl:call-template>
</span>
</xsl:otherwise>
</xsl:choose>
</xsl:when>
<!-- DE Standardbehandlung -->
<!-- EN Default -->
<xsl:otherwise>
<xsl:for-each select="$resultTree//nav:categoryPath/nav:category[not(position()=1)]">
<xsl:choose>
<xsl:when test="not(position()=last())">
<a>
<xsl:attribute name="href">
<xsl:value-of select="@url"/>
</xsl:attribute>
<xsl:attribute name="title">
<xsl:value-of select="concat(@title, ' : ', @description)"/>
</xsl:attribute>
<xsl:call-template name="mandalay:breadcrumbText">
<xsl:with-param name="text">
<xsl:value-of select="@title"/>
</xsl:with-param>
</xsl:call-template>
</a>
<span class="breadArrow">
<xsl:value-of select="$separator"/>
</span>
</xsl:when>
<xsl:otherwise>
<!-- DE Zeige auch die ContentItems in den Breadcrumbs an -->
<!-- EN Show contentitems in breadcrumb -->
<xsl:choose>
<!-- DE Wenn es eine Navigationsseite ist, dann ist die Liste damit zu Ende -->
<!-- EN If indexpage, stop list here -->
<xsl:when test="$resultTree/bebop:title = 'Navigation' or $resultTree/@application = 'PublicPersonalProfile'">
<span class="breadHi">
<xsl:call-template name="mandalay:breadcrumbText">
<xsl:with-param name="text">
<xsl:call-template name="mandalay:shying">
<xsl:with-param name="title">
<xsl:value-of select="@title"/>
</xsl:with-param>
<xsl:with-param name="mode">dynamic</xsl:with-param>
</xsl:call-template>
</xsl:with-param>
<xsl:with-param name="mode">mark</xsl:with-param>
</xsl:call-template>
</span>
</xsl:when>
<!-- DE Sonst wird der letzte Navigationspunkt auch ein Link und der Content wird angehängt -->
<!-- EN else set last navpoint as link and append name of contentitem-->
<xsl:otherwise>
<a>
<xsl:attribute name="href">
<xsl:value-of select="@url"/>
</xsl:attribute>
<xsl:attribute name="title">
<xsl:call-template name="mandalay:shying">
<xsl:with-param name="title">
<xsl:value-of select="concat(@title, ' : ', @description)"/>
</xsl:with-param>
<xsl:with-param name="mode">dynamic</xsl:with-param>
</xsl:call-template>
</xsl:attribute>
<xsl:call-template name="mandalay:breadcrumbText">
<xsl:with-param name="text">
<xsl:call-template name="mandalay:shying">
<xsl:with-param name="title">
<xsl:value-of select="@title"/>
</xsl:with-param>
<xsl:with-param name="mode">dynamic</xsl:with-param>
</xsl:call-template>
</xsl:with-param>
<xsl:with-param name="mode">mark</xsl:with-param>
</xsl:call-template>
</a>
<span class="breadArrow">
<xsl:value-of select="$separator"/>
</span>
<span class="breadHi">
<!-- DE Kürze letzten Eintrag beim ersten Satzzeichen -->
<!-- EN Cut last entry to first occurrence of a punctuation mark -->
<xsl:call-template name="mandalay:breadcrumbText">
<xsl:with-param name="text">
<xsl:call-template name="mandalay:shying">
<xsl:with-param name="title">
<xsl:value-of select="$resultTree//cms:contentPanel/cms:item/title"/>
</xsl:with-param>
<xsl:with-param name="mode">dynamic</xsl:with-param>
</xsl:call-template>
</xsl:with-param>
<xsl:with-param name="mode">mark</xsl:with-param>
</xsl:call-template>
</span>
</xsl:otherwise>
<xsl:when test="count($resultTree//nav:categoryPath/nav:category) > 1 or not($resultTree/bebop:title = 'Navigation')">
<a>
<xsl:attribute name="href">
<xsl:choose>
<xsl:when test="$resultTree/nav:categoryPath/nav:category/@url">
<xsl:value-of select="$resultTree/nav:categoryPath/nav:category/@url"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$resultTree/ui:userBanner/@workspaceURL"/>
</xsl:otherwise>
</xsl:choose>
</xsl:attribute>
<xsl:attribute name="title">
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'breadcrumbs'"/>
<xsl:with-param name="id" select="'root'"/>
</xsl:call-template>
</xsl:attribute>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'breadcrumbs'"/>
<xsl:with-param name="id" select="'root'"/>
</xsl:call-template>
</a>
<span class="breadArrow">
<xsl:value-of select="$separator"/>
</span>
</xsl:when>
<xsl:otherwise>
<span class="breadHi">
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'breadcrumbs'"/>
<xsl:with-param name="id" select="'root'"/>
</xsl:call-template>
</span>
</xsl:otherwise>
</xsl:choose>
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>
</xsl:otherwise>
</xsl:choose>
</span>
</div>
</xsl:template>
<!-- DE Behandle Sonderfälle -->
<!-- EN Special cases-->
<xsl:choose>
<xsl:when test="count($resultTree//nav:categoryPath/nav:category) &lt; 2 and not($resultTree/bebop:title = 'Navigation')">
<xsl:template name="mandalay:breadcrumbText">
<xsl:param name="layoutTree" select="."/>
<xsl:param name="mode" select="'center'"/> <!-- mark, center, end -->
<xsl:param name="text"/>
<!-- DE Unterscheide die Sonderfälle -->
<!-- EN choose special case -->
<xsl:choose>
<xsl:variable name="limit">
<xsl:call-template name="mandalay:getSetting">
<xsl:with-param name="node" select="$layoutTree/limit" />
<xsl:with-param name="module" select="'breadcrumbs'" />
<xsl:with-param name="setting" select="'limit'" />
<xsl:with-param name="default" select="'15'" />
</xsl:call-template>
</xsl:variable>
<xsl:variable name="minOmit">
<xsl:call-template name="mandalay:getSetting">
<xsl:with-param name="node" select="$layoutTree/minOmit" />
<xsl:with-param name="module" select="'breadcrumbs'" />
<xsl:with-param name="setting" select="'minOmit'" />
<xsl:with-param name="default" select="'5'" />
</xsl:call-template>
</xsl:variable>
<!-- DE Wenn Application = AtoZ, dann zeige das an -->
<!-- EN if application = AtoZ, then set breadcrumb to AtoZ -->
<xsl:when test="$resultTree/bebop:title = 'AtoZ'">
<span class="breadHi">
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'breadcrumbs'"/>
<xsl:with-param name="id" select="'atoz'"/>
</xsl:call-template>
</span>
</xsl:when>
<xsl:variable name="length">
<xsl:value-of select="string-length($text)"/>
</xsl:variable>
<!-- DE Wenn Application = Suche, dann zeige das an -->
<!-- EN If application = Search, then set breadcrumb to search -->
<xsl:when test="$resultTree/bebop:title = 'Search'">
<span class="breadHi">
<xsl:choose>
<xsl:when test="$resultTree/@id='search'">
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module"
select="'breadcrumbs'"/>
<xsl:with-param name="id" select="'search'"/>
</xsl:call-template>
</xsl:when>
<xsl:when test="$resultTree/@id='advanced'">
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'breadcrumbs'"/>
<xsl:with-param name="id" select="'advsearch'"/>
</xsl:call-template>
</xsl:when>
<xsl:otherwise/>
</xsl:choose>
</span>
</xsl:when>
<!-- DE Wenn Application = Sitemap, dann zeige das an -->
<!-- EN If application = Sitemap, then set breadcrumb to sitemap -->
<xsl:when test="$resultTree/@id = 'sitemapPage'">
<span class="breadHi">
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'breadcrumbs'"/>
<xsl:with-param name="id" select="'sitemap'"/>
</xsl:call-template>
</span>
</xsl:when>
<!-- DE Wenn Title = Log In, dann zeige das an -->
<!-- EN If title = Log In, then set breadcrumb to login -->
<xsl:when test="$resultTree/bebop:title = 'Log in'">
<span class="breadHi">
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'breadcrumbs'"/>
<xsl:with-param name="id" select="'login'"/>
</xsl:call-template>
</span>
</xsl:when>
<!-- DE Wenn Application = forum, dann zeige das an -->
<!-- EN If application = forum, then set breadcrumb to login -->
<xsl:when test="$resultTree/@id = 'forumPage'">
<span class="breadHi">
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'breadcrumbs'"/>
<xsl:with-param name="id" select="'forum'"/>
</xsl:call-template>
<xsl:value-of select="$resultTree//forum:name"/>
</span>
</xsl:when>
<xsl:when test="$resultTree/@id = 'forumThreadPage'">
<a>
<xsl:attribute name="href">
<xsl:value-of select="'index.jsp'"/>
</xsl:attribute>
<xsl:attribute name="title">
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'breadcrumbs'"/>
<xsl:with-param name="id" select="'forum'"/>
</xsl:call-template>
<xsl:value-of select="$resultTree//forum:name"/>
</xsl:attribute>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'breadcrumbs'"/>
<xsl:with-param name="id" select="'forum'"/>
</xsl:call-template>
<xsl:value-of select="$resultTree//forum:name"/>
</a>
<span class="breadArrow">
<xsl:value-of select="$separator"/>
</span>
<span class="breadHi">
<xsl:call-template name="mandalay:breadcrumbText">
<xsl:with-param name="text">
<xsl:value-of select="$resultTree//forum:threadDisplay/forum:message/subject"/>
</xsl:with-param>
<xsl:with-param name="mode">mark</xsl:with-param>
</xsl:call-template>
</span>
</xsl:when>
<!-- DE ContentItem in der Root-Ebene-->
<xsl:otherwise>
<span class="breadHi">
<xsl:call-template name="mandalay:breadcrumbText">
<xsl:with-param name="text">
<xsl:value-of select="$resultTree//cms:contentPanel/cms:item/title"/>
</xsl:with-param>
<xsl:with-param name="mode">mark</xsl:with-param>
</xsl:call-template>
</span>
</xsl:otherwise>
</xsl:choose>
</xsl:when>
<!-- DE Standardbehandlung -->
<!-- EN Default -->
<xsl:otherwise>
<xsl:for-each select="$resultTree//nav:categoryPath/nav:category[not(position()=1)]">
<xsl:choose>
<xsl:when test="not(position()=last())">
<a>
<xsl:attribute name="href">
<xsl:value-of select="@url"/>
</xsl:attribute>
<xsl:attribute name="title">
<xsl:value-of select="concat(@title, ' : ', @description)"/>
</xsl:attribute>
<xsl:call-template name="mandalay:breadcrumbText">
<xsl:with-param name="text">
<xsl:value-of select="@title"/>
</xsl:with-param>
</xsl:call-template>
</a>
<span class="breadArrow">
<xsl:value-of select="$separator"/>
</span>
</xsl:when>
<xsl:otherwise>
<!-- DE Zeige auch die ContentItems in den Breadcrumbs an -->
<!-- EN Show contentitems in breadcrumb -->
<xsl:choose>
<!-- DE Wenn es eine Navigationsseite ist, dann ist die Liste damit zu Ende -->
<!-- EN If indexpage, stop list here -->
<xsl:when test="$resultTree/bebop:title = 'Navigation' or $resultTree/@application = 'PublicPersonalProfile'">
<span class="breadHi">
<xsl:call-template name="mandalay:breadcrumbText">
<xsl:with-param name="text">
<xsl:call-template name="mandalay:shying">
<xsl:with-param name="title">
<xsl:value-of select="@title"/>
</xsl:with-param>
<xsl:with-param name="mode">dynamic</xsl:with-param>
</xsl:call-template>
</xsl:with-param>
<xsl:with-param name="mode">mark</xsl:with-param>
</xsl:call-template>
</span>
</xsl:when>
<!-- DE Sonst wird der letzte Navigationspunkt auch ein Link und der Content wird angehängt -->
<!-- EN else set last navpoint as link and append name of contentitem-->
<xsl:otherwise>
<a>
<xsl:attribute name="href">
<xsl:value-of select="@url"/>
</xsl:attribute>
<xsl:attribute name="title">
<xsl:call-template name="mandalay:shying">
<xsl:with-param name="title">
<xsl:value-of select="concat(@title, ' : ', @description)"/>
</xsl:with-param>
<xsl:with-param name="mode">dynamic</xsl:with-param>
</xsl:call-template>
</xsl:attribute>
<xsl:call-template name="mandalay:breadcrumbText">
<xsl:with-param name="text">
<xsl:call-template name="mandalay:shying">
<xsl:with-param name="title">
<xsl:value-of select="@title"/>
</xsl:with-param>
<xsl:with-param name="mode">dynamic</xsl:with-param>
</xsl:call-template>
</xsl:with-param>
<xsl:with-param name="mode">mark</xsl:with-param>
</xsl:call-template>
</a>
<span class="breadArrow">
<xsl:value-of select="$separator"/>
</span>
<span class="breadHi">
<!-- DE Kürze letzten Eintrag beim ersten Satzzeichen -->
<!-- EN Cut last entry to first occurrence of a punctuation mark -->
<xsl:call-template name="mandalay:breadcrumbText">
<xsl:with-param name="text">
<xsl:call-template name="mandalay:shying">
<xsl:with-param name="title">
<xsl:value-of select="$resultTree//cms:contentPanel/cms:item/title"/>
</xsl:with-param>
<xsl:with-param name="mode">dynamic</xsl:with-param>
</xsl:call-template>
</xsl:with-param>
<xsl:with-param name="mode">mark</xsl:with-param>
</xsl:call-template>
</span>
</xsl:otherwise>
</xsl:choose>
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>
</xsl:otherwise>
</xsl:choose>
</span>
</div>
</xsl:template>
<xsl:template name="mandalay:breadcrumbText">
<xsl:param name="layoutTree" select="."/>
<xsl:param name="mode" select="'center'"/> <!-- mark, center, end -->
<xsl:param name="text"/>
<xsl:variable name="limit">
<xsl:call-template name="mandalay:getSetting">
<xsl:with-param name="node" select="$layoutTree/limit" />
<xsl:with-param name="module" select="'breadcrumbs'" />
<xsl:with-param name="setting" select="'limit'" />
<xsl:with-param name="default" select="'15'" />
</xsl:call-template>
</xsl:variable>
<xsl:variable name="minOmit">
<xsl:call-template name="mandalay:getSetting">
<xsl:with-param name="node" select="$layoutTree/minOmit" />
<xsl:with-param name="module" select="'breadcrumbs'" />
<xsl:with-param name="setting" select="'minOmit'" />
<xsl:with-param name="default" select="'5'" />
</xsl:call-template>
</xsl:variable>
<xsl:variable name="length">
<xsl:value-of select="string-length($text)"/>
</xsl:variable>
<xsl:choose>
<!-- DE Kürze Text am ersten Satzzeichen -->
<!-- EN Shorten text at first punctiation mark -->
<xsl:when test="$mode = 'mark'">
<xsl:choose>
<xsl:when test="$length > 2 * $limit">
<xsl:variable name="mark_dot">
<xsl:choose>
<xsl:when test="contains($text, '.')">
<xsl:value-of select="string-length(substring-before($text, '.'))"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$length"/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="mark_quest">
<xsl:choose>
<xsl:when test="contains($text, '?')">
<xsl:value-of select="string-length(substring-before($text, '?'))"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$length"/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="mark_exclam">
<xsl:choose>
<xsl:when test="contains($text, '!')">
<xsl:value-of select="string-length(substring-before($text, '!'))"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$length"/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="mark_dash">
<xsl:choose>
<xsl:when test="contains($text, ' - ')">
<xsl:value-of select="string-length(substring-before($text, ' - '))"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$length"/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="mark_longdash">
<xsl:choose>
<xsl:when test="contains($text, ' ')">
<xsl:value-of select="string-length(substring-before($text, ' '))"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$length"/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="mark_colon">
<xsl:choose>
<xsl:when test="contains($text, ': ')">
<xsl:value-of select="string-length(substring-before($text, ': '))"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$length"/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<!-- DE Kürze Text am ersten Satzzeichen -->
<!-- EN Shorten text at first punctiation mark -->
<xsl:when test="$mode = 'mark'">
<xsl:choose>
<xsl:when test="$length > 2 * $limit">
<xsl:variable name="mark_dot">
<xsl:choose>
<xsl:when test="contains($text, '.')">
<xsl:value-of select="string-length(substring-before($text, '.'))"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$length"/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="mark_quest">
<xsl:choose>
<xsl:when test="contains($text, '?')">
<xsl:value-of select="string-length(substring-before($text, '?'))"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$length"/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="mark_exclam">
<xsl:choose>
<xsl:when test="contains($text, '!')">
<xsl:value-of select="string-length(substring-before($text, '!'))"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$length"/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="mark_dash">
<xsl:choose>
<xsl:when test="contains($text, ' - ')">
<xsl:value-of select="string-length(substring-before($text, ' - '))"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$length"/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="mark_longdash">
<xsl:choose>
<xsl:when test="contains($text, ' ')">
<xsl:value-of select="string-length(substring-before($text, ' '))"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$length"/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="mark_colon">
<xsl:choose>
<xsl:when test="contains($text, ': ')">
<xsl:value-of select="string-length(substring-before($text, ': '))"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$length"/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="mark">
<xsl:value-of select="math:min(math:min(math:min(math:min(math:min($mark_dot, $mark_quest), $mark_exclam), $mark_dash), $mark_longdash), $mark_colon)"/>
</xsl:variable>
<xsl:choose>
<xsl:when test="$mark &lt; 2 * $limit">
<xsl:value-of select="substring($text, 1, $mark)"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="concat(substring($text, 1, (2 * $limit) - 3), '...')"/>
</xsl:otherwise>
</xsl:choose>
</xsl:when>
<!-- DE Text muß micht gekürzt werden -->
<!-- EN No need to shorten the text -->
<xsl:otherwise>
<xsl:value-of select="$text"/>
</xsl:otherwise>
<xsl:variable name="mark">
<xsl:value-of select="math:min(math:min(math:min(math:min(math:min($mark_dot, $mark_quest), $mark_exclam), $mark_dash), $mark_longdash), $mark_colon)"/>
</xsl:variable>
<xsl:choose>
<xsl:when test="$mark &lt; 2 * $limit">
<xsl:value-of select="substring($text, 1, $mark)"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="concat(substring($text, 1, (2 * $limit) - 3), '...')"/>
</xsl:otherwise>
</xsl:choose>
</xsl:when>
<!-- DE Text muß micht gekürzt werden -->
<!-- EN No need to shorten the text -->
<xsl:otherwise>
<xsl:value-of select="$text"/>
</xsl:otherwise>
</xsl:choose>
</xsl:when>
<!-- DE Kürze Text in der Mitte der Zeile -->
<!-- EN Shorten text in the middle of the line -->
<xsl:when test="$mode = 'center'">
<xsl:choose>
<!-- DE Text muß auf length - minOmit gekürzt werden -->
<!-- EN Shorten text to length - minOmit -->
<xsl:when test="($length > $limit) and ($length - $limit &lt; $minOmit)">
<xsl:variable name="partLength">
<xsl:value-of select="(($length - $minOmit) div 2) - 1"/>
</xsl:variable>
<xsl:value-of select="substring($text, 1, ceiling($partLength))"/>
...
<xsl:value-of select="substring($text, $length - floor($partLength))"/>
</xsl:when>
<!-- DE Text muß auf limit gekürzt werden -->
<!-- EN Shorten text to limit-->
<xsl:when test="$length - $limit > $minOmit">
<xsl:variable name="partLength">
<xsl:value-of select="(($limit - 3) div 2) - 1"/>
</xsl:variable>
<xsl:value-of select="substring($text, 1, floor($partLength))"/>
...
<xsl:value-of select="substring($text, $length - ceiling($partLength))"/>
</xsl:when>
<!-- DE Text muß micht gekürzt werden -->
<!-- EN No need to shorten the text -->
<xsl:otherwise>
<xsl:value-of select="$text"/>
</xsl:otherwise>
</xsl:choose>
</xsl:when>
<!-- DE Kürze Text am Ende der Zeile -->
<!-- EN Shorten text at the end of the line -->
<xsl:otherwise>
<xsl:choose>
<!-- DE Text muß auf length - minOmit gekürzt werden -->
<!-- EN Shorten text to length - minOmit -->
<xsl:when test="($length > $limit) and ($length - $limit &lt; $minOmit)">
<xsl:value-of select="substring($text, 1, $length - $minOmit)"/>
</xsl:when>
<!-- DE Text muß auf limit gekürzt werden -->
<!-- EN Shorten text to limit-->
<xsl:when test="$length - $limit > $minOmit">
<xsl:value-of select="substring($text, 1, $limit)"/>
</xsl:when>
<!-- DE Text muß micht gekürzt werden -->
<!-- EN No need to shorten the text -->
<xsl:otherwise>
<xsl:value-of select="$text"/>
</xsl:otherwise>
</xsl:choose>
</xsl:otherwise>
</xsl:choose>
</xsl:when>
<!-- DE Kürze Text in der Mitte der Zeile -->
<!-- EN Shorten text in the middle of the line -->
<xsl:when test="$mode = 'center'">
<xsl:choose>
<!-- DE Text muß auf length - minOmit gekürzt werden -->
<!-- EN Shorten text to length - minOmit -->
<xsl:when test="($length > $limit) and ($length - $limit &lt; $minOmit)">
<xsl:variable name="partLength">
<xsl:value-of select="(($length - $minOmit) div 2) - 1"/>
</xsl:variable>
<xsl:value-of select="substring($text, 1, ceiling($partLength))"/>
...
<xsl:value-of select="substring($text, $length - floor($partLength))"/>
</xsl:when>
<!-- DE Text muß auf limit gekürzt werden -->
<!-- EN Shorten text to limit-->
<xsl:when test="$length - $limit > $minOmit">
<xsl:variable name="partLength">
<xsl:value-of select="(($limit - 3) div 2) - 1"/>
</xsl:variable>
<xsl:value-of select="substring($text, 1, floor($partLength))"/>
...
<xsl:value-of select="substring($text, $length - ceiling($partLength))"/>
</xsl:when>
<!-- DE Text muß micht gekürzt werden -->
<!-- EN No need to shorten the text -->
<xsl:otherwise>
<xsl:value-of select="$text"/>
</xsl:otherwise>
</xsl:choose>
</xsl:when>
<!-- DE Kürze Text am Ende der Zeile -->
<!-- EN Shorten text at the end of the line -->
<xsl:otherwise>
<xsl:choose>
<!-- DE Text muß auf length - minOmit gekürzt werden -->
<!-- EN Shorten text to length - minOmit -->
<xsl:when test="($length > $limit) and ($length - $limit &lt; $minOmit)">
<xsl:value-of select="substring($text, 1, $length - $minOmit)"/>
</xsl:when>
<!-- DE Text muß auf limit gekürzt werden -->
<!-- EN Shorten text to limit-->
<xsl:when test="$length - $limit > $minOmit">
<xsl:value-of select="substring($text, 1, $limit)"/>
</xsl:when>
<!-- DE Text muß micht gekürzt werden -->
<!-- EN No need to shorten the text -->
<xsl:otherwise>
<xsl:value-of select="$text"/>
</xsl:otherwise>
</xsl:choose>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
</xsl:template>
</xsl:stylesheet>

View File

@ -21,346 +21,368 @@
-->
<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:bebop="http://www.arsdigita.com/bebop/1.0"
xmlns:cms="http://www.arsdigita.com/cms/1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:bebop="http://www.arsdigita.com/bebop/1.0"
xmlns:cms="http://www.arsdigita.com/cms/1.0"
xmlns:nav="http://ccm.redhat.com/navigation"
xmlns:mandalay="http://mandalay.quasiweb.de"
exclude-result-prefixes="xsl bebop cms"
version="1.0">
xmlns:mandalay="http://mandalay.quasiweb.de"
exclude-result-prefixes="xsl bebop cms"
version="1.0">
<!-- DE Leadtext -->
<!-- EN lead text view -->
<xsl:template match="cms:item[objectType='com.arsdigita.cms.contenttypes.Address']" mode="lead">
<xsl:variable name="setShowKeys">
<xsl:call-template name="mandalay:getSetting">
<xsl:with-param name="module" select="'Address'"/>
<xsl:with-param name="setting" select="'setShowKeys'"/>
<xsl:with-param name="default" select="'true'"/>
</xsl:call-template>
</xsl:variable>
<xsl:variable name="setLeadText">
<xsl:call-template name="mandalay:getSetting">
<xsl:with-param name="module" select="'Address'"/>
<xsl:with-param name="setting" select="'setLeadText'"/>
<xsl:with-param name="default" select="'true'"/>
</xsl:call-template>
</xsl:variable>
<!-- DE Leadtext -->
<!-- EN lead text view -->
<xsl:template match="cms:item[objectType='com.arsdigita.cms.contenttypes.Address']"
mode="lead">
<xsl:variable name="setShowKeys">
<xsl:call-template name="mandalay:getSetting">
<xsl:with-param name="module" select="'Address'"/>
<xsl:with-param name="setting" select="'setShowKeys'"/>
<xsl:with-param name="default" select="'true'"/>
</xsl:call-template>
</xsl:variable>
<xsl:variable name="setLeadText">
<xsl:call-template name="mandalay:getSetting">
<xsl:with-param name="module" select="'Address'"/>
<xsl:with-param name="setting" select="'setLeadText'"/>
<xsl:with-param name="default" select="'true'"/>
</xsl:call-template>
</xsl:variable>
<xsl:call-template name="CT_GenericAddress_details">
<xsl:with-param name="setShowKeys" select="$setShowKeys"/>
</xsl:call-template>
<xsl:call-template name="CT_GenericAddress_details">
<xsl:with-param name="setShowKeys" select="$setShowKeys"/>
</xsl:call-template>
<xsl:if test="./lead and $setLeadText = 'true'">
<div class="lead">
<xsl:value-of disable-output-escaping="yes" select="./lead"/>
</div>
</xsl:if>
</xsl:template>
<xsl:if test="./lead and $setLeadText = 'true'">
<div class="lead">
<xsl:value-of disable-output-escaping="yes" select="./lead"/>
</div>
</xsl:if>
</xsl:template>
<!-- DE Bild -->
<!-- EN image -->
<xsl:template match="cms:item[objectType='com.arsdigita.cms.contenttypes.Address']" mode="image">
<!-- DE Bild -->
<!-- EN image -->
<xsl:template match="cms:item[objectType='com.arsdigita.cms.contenttypes.Address']"
mode="image">
<!-- DE Hole alle benötigten Einstellungen-->
<!-- EN Getting all needed setting-->
<xsl:variable name="setImage">
<xsl:call-template name="mandalay:getSetting">
<xsl:with-param name="module" select="'Address'"/>
<xsl:with-param name="setting" select="'setImage'"/>
<xsl:with-param name="default" select="'true'"/>
</xsl:call-template>
</xsl:variable>
<xsl:variable name="setImageMaxHeight">
<xsl:call-template name="mandalay:getSetting">
<xsl:with-param name="module" select="'Address'"/>
<xsl:with-param name="setting" select="'setImageMaxHeight'"/>
<xsl:with-param name="default" select="''"/>
</xsl:call-template>
</xsl:variable>
<xsl:variable name="setImageMaxWidth">
<xsl:call-template name="mandalay:getSetting">
<xsl:with-param name="module" select="'Address'"/>
<xsl:with-param name="setting" select="'setImageMaxWidth'"/>
<xsl:with-param name="default" select="''"/>
</xsl:call-template>
</xsl:variable>
<xsl:variable name="setImageCaption">
<xsl:call-template name="mandalay:getSetting">
<xsl:with-param name="module" select="'Address'"/>
<xsl:with-param name="setting" select="'setImageCaption'"/>
<xsl:with-param name="default" select="'true'"/>
</xsl:call-template>
</xsl:variable>
<!-- DE Hole alle benötigten Einstellungen-->
<!-- EN Getting all needed setting-->
<xsl:variable name="setImage">
<xsl:call-template name="mandalay:getSetting">
<xsl:with-param name="module" select="'Address'"/>
<xsl:with-param name="setting" select="'setImage'"/>
<xsl:with-param name="default" select="'true'"/>
</xsl:call-template>
</xsl:variable>
<xsl:variable name="setImageMaxHeight">
<xsl:call-template name="mandalay:getSetting">
<xsl:with-param name="module" select="'Address'"/>
<xsl:with-param name="setting" select="'setImageMaxHeight'"/>
<xsl:with-param name="default" select="''"/>
</xsl:call-template>
</xsl:variable>
<xsl:variable name="setImageMaxWidth">
<xsl:call-template name="mandalay:getSetting">
<xsl:with-param name="module" select="'Address'"/>
<xsl:with-param name="setting" select="'setImageMaxWidth'"/>
<xsl:with-param name="default" select="''"/>
</xsl:call-template>
</xsl:variable>
<xsl:variable name="setImageCaption">
<xsl:call-template name="mandalay:getSetting">
<xsl:with-param name="module" select="'Address'"/>
<xsl:with-param name="setting" select="'setImageCaption'"/>
<xsl:with-param name="default" select="'true'"/>
</xsl:call-template>
</xsl:variable>
<xsl:if test="$setImage = 'true'">
<xsl:call-template name="mandalay:imageAttachment">
<xsl:with-param name="showCaption" select="$setImageCaption"/>
<xsl:with-param name="maxHeight" select="$setImageMaxHeight" />
<xsl:with-param name="maxWidth" select="$setImageMaxWidth" />
</xsl:call-template>
</xsl:if>
</xsl:template>
<xsl:if test="$setImage = 'true'">
<xsl:call-template name="mandalay:imageAttachment">
<xsl:with-param name="showCaption" select="$setImageCaption"/>
<xsl:with-param name="maxHeight" select="$setImageMaxHeight" />
<xsl:with-param name="maxWidth" select="$setImageMaxWidth" />
</xsl:call-template>
</xsl:if>
</xsl:template>
<!-- DE Vollansicht -->
<!-- EN Detailed view -->
<xsl:template name="CT_Address_graphics" match="cms:item[objectType='com.arsdigita.cms.contenttypes.Address']" mode="detailed_view">
<!-- DE Vollansicht -->
<!-- EN Detailed view -->
<xsl:template name="CT_Address_graphics"
match="cms:item[objectType='com.arsdigita.cms.contenttypes.Address']"
mode="detailed_view">
<!-- DE Hole alle benötigten Einstellungen-->
<!-- EN Getting all needed setting-->
<xsl:variable name="setShowKeys">
<xsl:call-template name="mandalay:getSetting">
<xsl:with-param name="module" select="'Address'"/>
<xsl:with-param name="setting" select="'setShowKeys'"/>
<xsl:with-param name="default" select="'true'"/>
</xsl:call-template>
</xsl:variable>
<!-- DE Hole alle benötigten Einstellungen-->
<!-- EN Getting all needed setting-->
<xsl:variable name="setShowKeys">
<xsl:call-template name="mandalay:getSetting">
<xsl:with-param name="module" select="'Address'"/>
<xsl:with-param name="setting" select="'setShowKeys'"/>
<xsl:with-param name="default" select="'true'"/>
</xsl:call-template>
</xsl:variable>
<div id="mainBody">
<xsl:call-template name="CT_GenericAddress_details">
<xsl:with-param name="setShowKeys" select="$setShowKeys"/>
</xsl:call-template>
<xsl:value-of disable-output-escaping="yes" select="./textAsset/content"/>
<div class="endFloat"/>
</div>
<div class="endFloat"/>
</xsl:template>
<!-- DE Listenansicht -->
<!-- EN List view -->
<xsl:template name="CT_Address_List" match="nav:item[nav:attribute[@name='objectType'] = 'com.arsdigita.cms.contenttypes.Address']" mode="list_view">
<!-- DE Hole alle benötigten Einstellungen-->
<!-- EN Getting all needed setting-->
<xsl:variable name="setLeadText">
<xsl:call-template name="mandalay:getSetting">
<xsl:with-param name="module" select="'Address'"/>
<xsl:with-param name="setting" select="'listView/setLeadText'"/>
<xsl:with-param name="default" select="'true'"/>
</xsl:call-template>
</xsl:variable>
<xsl:variable name="setLeadTextLength">
<xsl:call-template name="mandalay:getSetting">
<xsl:with-param name="module" select="'Address'"/>
<xsl:with-param name="setting" select="'listView/setLeadTextLength'"/>
<xsl:with-param name="default" select="'0'"/>
</xsl:call-template>
</xsl:variable>
<xsl:variable name="setImage">
<xsl:call-template name="mandalay:getSetting">
<xsl:with-param name="module" select="'Address'"/>
<xsl:with-param name="setting" select="'listView/setImage'"/>
<xsl:with-param name="default" select="'true'"/>
</xsl:call-template>
</xsl:variable>
<xsl:variable name="setMoreButton">
<xsl:call-template name="mandalay:getSetting">
<xsl:with-param name="module" select="'Address'"/>
<xsl:with-param name="setting" select="'listView/setMoreButton'"/>
<xsl:with-param name="default" select="'auto'"/>
</xsl:call-template>
</xsl:variable>
<xsl:if test="$setImage = 'true' and nav:attribute[@name='imageAttachments.image.id']">
<a>
<xsl:attribute name="href"><xsl:value-of select="nav:path"/></xsl:attribute>
<xsl:attribute name="title">
<xsl:call-template name="mandalay:shying">
<xsl:with-param name="title">
<xsl:value-of select="nav:attribute[@name='title']"/>
</xsl:with-param>
<xsl:with-param name="mode">dynamic</xsl:with-param>
</xsl:call-template>
</xsl:attribute>
<div class="image">
<img>
<xsl:attribute name="src">/ccm/cms-service/stream/image/?image_id=<xsl:value-of select="nav:attribute[@name='imageAttachments.image.id']"/>&amp;maxWidth=150&amp;maxHeight=100</xsl:attribute>
<xsl:if test="nav:attribute[@name='imageAttachments.caption']">
<xsl:attribute name="alt"><xsl:value-of select="nav:attribute[@name='imageAttachments.caption']"/></xsl:attribute>
<xsl:attribute name="title"><xsl:value-of select="nav:attribute[@name='imageAttachments.caption']"/></xsl:attribute>
</xsl:if>
</img>
<div id="mainBody">
<xsl:call-template name="CT_GenericAddress_details">
<xsl:with-param name="setShowKeys" select="$setShowKeys"/>
</xsl:call-template>
<xsl:value-of disable-output-escaping="yes" select="./textAsset/content"/>
<div class="endFloat"/>
</div>
</a>
</xsl:if>
<div class="endFloat"/>
</xsl:template>
<a class="CIname">
<xsl:attribute name="href"><xsl:value-of select="nav:path"/></xsl:attribute>
<xsl:attribute name="title">
<xsl:call-template name="mandalay:shying">
<xsl:with-param name="title">
<xsl:value-of select="nav:attribute[@name='title']"/>
</xsl:with-param>
<xsl:with-param name="mode">dynamic</xsl:with-param>
</xsl:call-template>
</xsl:attribute>
<xsl:call-template name="mandalay:shying">
<xsl:with-param name="title">
<xsl:value-of disable-output-escaping="yes" select="nav:attribute[@name='title']"/>
</xsl:with-param>
<xsl:with-param name="mode">dynamic</xsl:with-param>
</xsl:call-template>
</a>
<!-- DE Listenansicht -->
<!-- EN List view -->
<xsl:template name="CT_Address_List"
match="nav:item[nav:attribute[@name='objectType'] = 'com.arsdigita.cms.contenttypes.Address']"
mode="list_view">
<xsl:if test="nav:attribute[@name='lead'] and $setLeadText = 'true'">
<br />
<span class="intro">
<xsl:choose>
<xsl:when test="$setLeadTextLength = '0'">
<xsl:value-of disable-output-escaping="yes" select="nav:attribute[@name='lead']" />
</xsl:when>
<xsl:otherwise>
<xsl:value-of disable-output-escaping="yes" select="substring(nav:attribute[@name='lead'], 1, $setLeadTextLength)" />
<xsl:if test="string-length(nav:attribute[@name='lead']) > $setLeadTextLength">
<xsl:text>...</xsl:text>
<xsl:if test="$setMoreButton = 'auto'">
<xsl:call-template name="mandalay:moreButton">
<xsl:with-param name="href" select="nav:path"/>
<xsl:with-param name="module" select="'Address'"/>
</xsl:call-template>
</xsl:if>
</xsl:if>
</xsl:otherwise>
</xsl:choose>
<xsl:if test="$setMoreButton = 'true'">
<xsl:call-template name="mandalay:moreButton">
<xsl:with-param name="href" select="nav:path"/>
<xsl:with-param name="module" select="'Address'"/>
</xsl:call-template>
<!-- DE Hole alle benötigten Einstellungen-->
<!-- EN Getting all needed setting-->
<xsl:variable name="setLeadText">
<xsl:call-template name="mandalay:getSetting">
<xsl:with-param name="module" select="'Address'"/>
<xsl:with-param name="setting" select="'listView/setLeadText'"/>
<xsl:with-param name="default" select="'true'"/>
</xsl:call-template>
</xsl:variable>
<xsl:variable name="setLeadTextLength">
<xsl:call-template name="mandalay:getSetting">
<xsl:with-param name="module" select="'Address'"/>
<xsl:with-param name="setting" select="'listView/setLeadTextLength'"/>
<xsl:with-param name="default" select="'0'"/>
</xsl:call-template>
</xsl:variable>
<xsl:variable name="setImage">
<xsl:call-template name="mandalay:getSetting">
<xsl:with-param name="module" select="'Address'"/>
<xsl:with-param name="setting" select="'listView/setImage'"/>
<xsl:with-param name="default" select="'true'"/>
</xsl:call-template>
</xsl:variable>
<xsl:variable name="setMoreButton">
<xsl:call-template name="mandalay:getSetting">
<xsl:with-param name="module" select="'Address'"/>
<xsl:with-param name="setting" select="'listView/setMoreButton'"/>
<xsl:with-param name="default" select="'auto'"/>
</xsl:call-template>
</xsl:variable>
<xsl:if test="$setImage = 'true' and nav:attribute[@name='imageAttachments.image.id']">
<a>
<xsl:attribute name="href">
<xsl:value-of select="nav:path"/>
</xsl:attribute>
<xsl:attribute name="title">
<xsl:call-template name="mandalay:shying">
<xsl:with-param name="title">
<xsl:value-of select="nav:attribute[@name='title']"/>
</xsl:with-param>
<xsl:with-param name="mode">dynamic</xsl:with-param>
</xsl:call-template>
</xsl:attribute>
<div class="image">
<img>
<xsl:attribute name="src">/ccm/cms-service/stream/image/?image_id=<xsl:value-of select="nav:attribute[@name='imageAttachments.image.id']"/>&amp;maxWidth=150&amp;maxHeight=100</xsl:attribute>
<xsl:if test="nav:attribute[@name='imageAttachments.caption']">
<xsl:attribute name="alt">
<xsl:value-of select="nav:attribute[@name='imageAttachments.caption']"/>
</xsl:attribute>
<xsl:attribute name="title">
<xsl:value-of select="nav:attribute[@name='imageAttachments.caption']"/>
</xsl:attribute>
</xsl:if>
</img>
</div>
</a>
</xsl:if>
</span>
</xsl:if>
</xsl:template>
<xsl:template name="CT_Address_Link" match="*/cms:item/links[targetItem/objectType = 'com.arsdigita.cms.contenttypes.Address']" mode="link_view">
<!-- DE Hole alle benötigten Einstellungen-->
<!-- EN Getting all needed setting-->
<xsl:variable name="setImageAndText">
<xsl:call-template name="mandalay:getSetting">
<xsl:with-param name="module" select="'Address'"/>
<xsl:with-param name="setting" select="'linkView/setImageAndText'"/>
<xsl:with-param name="default" select="'true'"/>
</xsl:call-template>
</xsl:variable>
<xsl:variable name="setImage">
<xsl:call-template name="mandalay:getSetting">
<xsl:with-param name="module" select="'Address'"/>
<xsl:with-param name="setting" select="'linkView/setImage'"/>
<xsl:with-param name="default" select="'true'"/>
</xsl:call-template>
</xsl:variable>
<xsl:variable name="setImageMaxHeight">
<xsl:call-template name="mandalay:getSetting">
<xsl:with-param name="module" select="'Address'"/>
<xsl:with-param name="setting" select="'linkView/setImageMaxHeight'"/>
<xsl:with-param name="default" select="''"/>
</xsl:call-template>
</xsl:variable>
<xsl:variable name="setImageMaxWidth">
<xsl:call-template name="mandalay:getSetting">
<xsl:with-param name="module" select="'Address'"/>
<xsl:with-param name="setting" select="'linkView/setImageMaxWidth'"/>
<xsl:with-param name="default" select="''"/>
</xsl:call-template>
</xsl:variable>
<xsl:variable name="setImageCaption">
<xsl:call-template name="mandalay:getSetting">
<xsl:with-param name="module" select="'Address'"/>
<xsl:with-param name="setting" select="'linkView/setImageCaption'"/>
<xsl:with-param name="default" select="'true'"/>
</xsl:call-template>
</xsl:variable>
<xsl:variable name="setDescription">
<xsl:call-template name="mandalay:getSetting">
<xsl:with-param name="module" select="'Address'"/>
<xsl:with-param name="setting" select="'linkView/setDescription'"/>
<xsl:with-param name="default" select="'true'"/>
</xsl:call-template>
</xsl:variable>
<xsl:variable name="setDescriptionLength">
<xsl:call-template name="mandalay:getSetting">
<xsl:with-param name="module" select="'Address'"/>
<xsl:with-param name="setting" select="'linkView/setDescriptionLength'"/>
<xsl:with-param name="default" select="'0'"/>
</xsl:call-template>
</xsl:variable>
<xsl:variable name="setMoreButton">
<xsl:call-template name="mandalay:getSetting">
<xsl:with-param name="module" select="'Address'"/>
<xsl:with-param name="setting" select="'linkView/setMoreButton'"/>
<xsl:with-param name="default" select="'false'"/>
</xsl:call-template>
</xsl:variable>
<!-- DE Wenn es Bilder gibt, dann soll das erste hier als Link angezeigt werden -->
<!-- EN -->
<xsl:if test="./targetItem/imageAttachments and $setImage = 'true'">
<a class="CIname">
<xsl:attribute name="href"><xsl:text>/redirect/?oid=</xsl:text><xsl:value-of select="./targetItem/@oid"/></xsl:attribute>
<xsl:attribute name="title">
<xsl:call-template name="mandalay:shying">
<xsl:with-param name="title">
<xsl:value-of select="./linkTitle"/>
</xsl:with-param>
<xsl:with-param name="mode">dynamic</xsl:with-param>
</xsl:call-template>
</xsl:attribute>
<xsl:for-each select="./targetItem">
<xsl:call-template name="mandalay:imageAttachment">
<xsl:with-param name="showCaption" select="$setImageCaption" />
<xsl:with-param name="maxHeight" select="$setImageMaxHeight" />
<xsl:with-param name="maxWidth" select="$setImageMaxWidth" />
</xsl:call-template>
</xsl:for-each>
</a>
</xsl:if>
<xsl:if test="$setImageAndText = 'true' or not(./targetItem/imageAttachments) or $setImage = 'false'">
<a class="CIname">
<xsl:attribute name="href"><xsl:text>/redirect/?oid=</xsl:text><xsl:value-of select="./targetItem/@oid"/></xsl:attribute>
<xsl:attribute name="title">
<xsl:call-template name="mandalay:shying">
<xsl:with-param name="title">
<xsl:value-of select="./linkTitle"/>
</xsl:with-param>
<xsl:with-param name="mode">dynamic</xsl:with-param>
</xsl:call-template>
</xsl:attribute>
<xsl:call-template name="mandalay:shying">
<xsl:with-param name="title">
<xsl:value-of disable-output-escaping="yes" select="./linkTitle"/>
</xsl:with-param>
<xsl:with-param name="mode">dynamic</xsl:with-param>
</xsl:call-template>
</a>
<xsl:if test="./linkDescription and $setDescription">
<br />
<xsl:choose>
<xsl:when test="$setDescriptionLength = '0'">
<xsl:value-of disable-output-escaping="yes" select="./linkDescription" />
</xsl:when>
<xsl:otherwise>
<xsl:value-of disable-output-escaping="yes" select="substring(./linkDescription, 1, $setDescriptionLength)" />
<xsl:if test="string-length(./linkDescription) > $setDescriptionLength">
<xsl:text>...</xsl:text>
<xsl:if test="$setMoreButton = 'auto'">
<xsl:call-template name="mandalay:moreButton">
<xsl:with-param name="href" select="./targetItem/@oid"/>
<xsl:with-param name="module" select="'Address'"/>
<a class="CIname">
<xsl:attribute name="href">
<xsl:value-of select="nav:path"/>
</xsl:attribute>
<xsl:attribute name="title">
<xsl:call-template name="mandalay:shying">
<xsl:with-param name="title">
<xsl:value-of select="nav:attribute[@name='title']"/>
</xsl:with-param>
<xsl:with-param name="mode">dynamic</xsl:with-param>
</xsl:call-template>
</xsl:if>
</xsl:if>
</xsl:otherwise>
</xsl:choose>
<xsl:if test="$setMoreButton = 'true'">
<xsl:call-template name="mandalay:moreButton">
<xsl:with-param name="href" select="./targetItem/@oid"/>
<xsl:with-param name="module" select="'Address'"/>
</xsl:call-template>
</xsl:attribute>
<xsl:call-template name="mandalay:shying">
<xsl:with-param name="title">
<xsl:value-of disable-output-escaping="yes" select="nav:attribute[@name='title']"/>
</xsl:with-param>
<xsl:with-param name="mode">dynamic</xsl:with-param>
</xsl:call-template>
</a>
<xsl:if test="nav:attribute[@name='lead'] and $setLeadText = 'true'">
<br />
<span class="intro">
<xsl:choose>
<xsl:when test="$setLeadTextLength = '0'">
<xsl:value-of disable-output-escaping="yes" select="nav:attribute[@name='lead']" />
</xsl:when>
<xsl:otherwise>
<xsl:value-of disable-output-escaping="yes" select="substring(nav:attribute[@name='lead'], 1, $setLeadTextLength)" />
<xsl:if test="string-length(nav:attribute[@name='lead']) > $setLeadTextLength">
<xsl:text>...</xsl:text>
<xsl:if test="$setMoreButton = 'auto'">
<xsl:call-template name="mandalay:moreButton">
<xsl:with-param name="href" select="nav:path"/>
<xsl:with-param name="module" select="'Address'"/>
</xsl:call-template>
</xsl:if>
</xsl:if>
</xsl:otherwise>
</xsl:choose>
<xsl:if test="$setMoreButton = 'true'">
<xsl:call-template name="mandalay:moreButton">
<xsl:with-param name="href" select="nav:path"/>
<xsl:with-param name="module" select="'Address'"/>
</xsl:call-template>
</xsl:if>
</span>
</xsl:if>
</xsl:if>
</xsl:if>
</xsl:template>
</xsl:template>
<xsl:template name="CT_Address_Link"
match="*/cms:item/links[targetItem/objectType = 'com.arsdigita.cms.contenttypes.Address']"
mode="link_view">
<!-- DE Hole alle benötigten Einstellungen-->
<!-- EN Getting all needed setting-->
<xsl:variable name="setImageAndText">
<xsl:call-template name="mandalay:getSetting">
<xsl:with-param name="module" select="'Address'"/>
<xsl:with-param name="setting" select="'linkView/setImageAndText'"/>
<xsl:with-param name="default" select="'true'"/>
</xsl:call-template>
</xsl:variable>
<xsl:variable name="setImage">
<xsl:call-template name="mandalay:getSetting">
<xsl:with-param name="module" select="'Address'"/>
<xsl:with-param name="setting" select="'linkView/setImage'"/>
<xsl:with-param name="default" select="'true'"/>
</xsl:call-template>
</xsl:variable>
<xsl:variable name="setImageMaxHeight">
<xsl:call-template name="mandalay:getSetting">
<xsl:with-param name="module" select="'Address'"/>
<xsl:with-param name="setting" select="'linkView/setImageMaxHeight'"/>
<xsl:with-param name="default" select="''"/>
</xsl:call-template>
</xsl:variable>
<xsl:variable name="setImageMaxWidth">
<xsl:call-template name="mandalay:getSetting">
<xsl:with-param name="module" select="'Address'"/>
<xsl:with-param name="setting" select="'linkView/setImageMaxWidth'"/>
<xsl:with-param name="default" select="''"/>
</xsl:call-template>
</xsl:variable>
<xsl:variable name="setImageCaption">
<xsl:call-template name="mandalay:getSetting">
<xsl:with-param name="module" select="'Address'"/>
<xsl:with-param name="setting" select="'linkView/setImageCaption'"/>
<xsl:with-param name="default" select="'true'"/>
</xsl:call-template>
</xsl:variable>
<xsl:variable name="setDescription">
<xsl:call-template name="mandalay:getSetting">
<xsl:with-param name="module" select="'Address'"/>
<xsl:with-param name="setting" select="'linkView/setDescription'"/>
<xsl:with-param name="default" select="'true'"/>
</xsl:call-template>
</xsl:variable>
<xsl:variable name="setDescriptionLength">
<xsl:call-template name="mandalay:getSetting">
<xsl:with-param name="module" select="'Address'"/>
<xsl:with-param name="setting" select="'linkView/setDescriptionLength'"/>
<xsl:with-param name="default" select="'0'"/>
</xsl:call-template>
</xsl:variable>
<xsl:variable name="setMoreButton">
<xsl:call-template name="mandalay:getSetting">
<xsl:with-param name="module" select="'Address'"/>
<xsl:with-param name="setting" select="'linkView/setMoreButton'"/>
<xsl:with-param name="default" select="'false'"/>
</xsl:call-template>
</xsl:variable>
<!-- DE Wenn es Bilder gibt, dann soll das erste hier als Link angezeigt werden -->
<!-- EN -->
<xsl:if test="./targetItem/imageAttachments and $setImage = 'true'">
<a class="CIname">
<xsl:attribute name="href">
<xsl:text>/redirect/?oid=</xsl:text>
<xsl:value-of select="./targetItem/@oid"/>
</xsl:attribute>
<xsl:attribute name="title">
<xsl:call-template name="mandalay:shying">
<xsl:with-param name="title">
<xsl:value-of select="./linkTitle"/>
</xsl:with-param>
<xsl:with-param name="mode">dynamic</xsl:with-param>
</xsl:call-template>
</xsl:attribute>
<xsl:for-each select="./targetItem">
<xsl:call-template name="mandalay:imageAttachment">
<xsl:with-param name="showCaption" select="$setImageCaption" />
<xsl:with-param name="maxHeight" select="$setImageMaxHeight" />
<xsl:with-param name="maxWidth" select="$setImageMaxWidth" />
</xsl:call-template>
</xsl:for-each>
</a>
</xsl:if>
<xsl:if test="$setImageAndText = 'true' or not(./targetItem/imageAttachments) or $setImage = 'false'">
<a class="CIname">
<xsl:attribute name="href">
<xsl:text>/redirect/?oid=</xsl:text>
<xsl:value-of select="./targetItem/@oid"/>
</xsl:attribute>
<xsl:attribute name="title">
<xsl:call-template name="mandalay:shying">
<xsl:with-param name="title">
<xsl:value-of select="./linkTitle"/>
</xsl:with-param>
<xsl:with-param name="mode">dynamic</xsl:with-param>
</xsl:call-template>
</xsl:attribute>
<xsl:call-template name="mandalay:shying">
<xsl:with-param name="title">
<xsl:value-of disable-output-escaping="yes" select="./linkTitle"/>
</xsl:with-param>
<xsl:with-param name="mode">dynamic</xsl:with-param>
</xsl:call-template>
</a>
<xsl:if test="./linkDescription and $setDescription">
<br />
<xsl:choose>
<xsl:when test="$setDescriptionLength = '0'">
<xsl:value-of disable-output-escaping="yes" select="./linkDescription" />
</xsl:when>
<xsl:otherwise>
<xsl:value-of disable-output-escaping="yes" select="substring(./linkDescription, 1, $setDescriptionLength)" />
<xsl:if test="string-length(./linkDescription) > $setDescriptionLength">
<xsl:text>...</xsl:text>
<xsl:if test="$setMoreButton = 'auto'">
<xsl:call-template name="mandalay:moreButton">
<xsl:with-param name="href" select="./targetItem/@oid"/>
<xsl:with-param name="module" select="'Address'"/>
</xsl:call-template>
</xsl:if>
</xsl:if>
</xsl:otherwise>
</xsl:choose>
<xsl:if test="$setMoreButton = 'true'">
<xsl:call-template name="mandalay:moreButton">
<xsl:with-param name="href" select="./targetItem/@oid"/>
<xsl:with-param name="module" select="'Address'"/>
</xsl:call-template>
</xsl:if>
</xsl:if>
</xsl:if>
</xsl:template>
</xsl:stylesheet>

View File

@ -33,327 +33,347 @@ Article content type
<!-- Autor: Sören Bernstein -->
<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:cms="http://www.arsdigita.com/cms/1.0"
xmlns:nav="http://ccm.redhat.com/navigation"
xmlns:mandalay="http://mandalay.quasiweb.de"
exclude-result-prefixes="xsl cms nav mandalay"
version="1.0">
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:cms="http://www.arsdigita.com/cms/1.0"
xmlns:nav="http://ccm.redhat.com/navigation"
xmlns:mandalay="http://mandalay.quasiweb.de"
exclude-result-prefixes="xsl cms nav mandalay"
version="1.0">
<!-- DE Leadtext -->
<!-- EN lead text view -->
<xsl:template match="cms:item[objectType='com.arsdigita.cms.contenttypes.Article']" mode="lead">
<xsl:variable name="setLeadText">
<xsl:call-template name="mandalay:getSetting">
<xsl:with-param name="module" select="'Article'"/>
<xsl:with-param name="setting" select="'setLeadText'"/>
<xsl:with-param name="default" select="'true'"/>
</xsl:call-template>
</xsl:variable>
<!-- DE Leadtext -->
<!-- EN lead text view -->
<xsl:template match="cms:item[objectType='com.arsdigita.cms.contenttypes.Article']"
mode="lead">
<xsl:variable name="setLeadText">
<xsl:call-template name="mandalay:getSetting">
<xsl:with-param name="module" select="'Article'"/>
<xsl:with-param name="setting" select="'setLeadText'"/>
<xsl:with-param name="default" select="'true'"/>
</xsl:call-template>
</xsl:variable>
<xsl:if test="./lead and $setLeadText = 'true'">
<div class="lead">
<xsl:value-of disable-output-escaping="yes" select="./lead"/>
</div>
</xsl:if>
</xsl:template>
<xsl:if test="./lead and $setLeadText = 'true'">
<div class="lead">
<xsl:value-of disable-output-escaping="yes" select="./lead"/>
</div>
</xsl:if>
</xsl:template>
<!-- DE Bild -->
<!-- EN image -->
<xsl:template match="cms:item[objectType='com.arsdigita.cms.contenttypes.Article']" mode="image">
<!-- DE Bild -->
<!-- EN image -->
<xsl:template match="cms:item[objectType='com.arsdigita.cms.contenttypes.Article']"
mode="image">
<!-- DE Hole alle benötigten Einstellungen-->
<!-- EN Getting all needed setting-->
<xsl:variable name="setImage">
<xsl:call-template name="mandalay:getSetting">
<xsl:with-param name="module" select="'Article'"/>
<xsl:with-param name="setting" select="'setImage'"/>
<xsl:with-param name="default" select="'true'"/>
</xsl:call-template>
</xsl:variable>
<xsl:variable name="setImageMaxHeight">
<xsl:call-template name="mandalay:getSetting">
<xsl:with-param name="module" select="'Article'"/>
<xsl:with-param name="setting" select="'setImageMaxHeight'"/>
<xsl:with-param name="default" select="''"/>
</xsl:call-template>
</xsl:variable>
<xsl:variable name="setImageMaxWidth">
<xsl:call-template name="mandalay:getSetting">
<xsl:with-param name="module" select="'Article'"/>
<xsl:with-param name="setting" select="'setImageMaxWidth'"/>
<xsl:with-param name="default" select="''"/>
</xsl:call-template>
</xsl:variable>
<xsl:variable name="setImageCaption">
<xsl:call-template name="mandalay:getSetting">
<xsl:with-param name="module" select="'Article'"/>
<xsl:with-param name="setting" select="'setImageCaption'"/>
<xsl:with-param name="default" select="'true'"/>
</xsl:call-template>
</xsl:variable>
<!-- DE Hole alle benötigten Einstellungen-->
<!-- EN Getting all needed setting-->
<xsl:variable name="setImage">
<xsl:call-template name="mandalay:getSetting">
<xsl:with-param name="module" select="'Article'"/>
<xsl:with-param name="setting" select="'setImage'"/>
<xsl:with-param name="default" select="'true'"/>
</xsl:call-template>
</xsl:variable>
<xsl:variable name="setImageMaxHeight">
<xsl:call-template name="mandalay:getSetting">
<xsl:with-param name="module" select="'Article'"/>
<xsl:with-param name="setting" select="'setImageMaxHeight'"/>
<xsl:with-param name="default" select="''"/>
</xsl:call-template>
</xsl:variable>
<xsl:variable name="setImageMaxWidth">
<xsl:call-template name="mandalay:getSetting">
<xsl:with-param name="module" select="'Article'"/>
<xsl:with-param name="setting" select="'setImageMaxWidth'"/>
<xsl:with-param name="default" select="''"/>
</xsl:call-template>
</xsl:variable>
<xsl:variable name="setImageCaption">
<xsl:call-template name="mandalay:getSetting">
<xsl:with-param name="module" select="'Article'"/>
<xsl:with-param name="setting" select="'setImageCaption'"/>
<xsl:with-param name="default" select="'true'"/>
</xsl:call-template>
</xsl:variable>
<xsl:if test="$setImage = 'true'">
<xsl:call-template name="mandalay:imageAttachment">
<xsl:with-param name="showCaption" select="$setImageCaption"/>
<xsl:with-param name="maxHeight" select="$setImageMaxHeight" />
<xsl:with-param name="maxWidth" select="$setImageMaxWidth" />
</xsl:call-template>
</xsl:if>
</xsl:template>
<xsl:if test="$setImage = 'true'">
<xsl:call-template name="mandalay:imageAttachment">
<xsl:with-param name="showCaption" select="$setImageCaption"/>
<xsl:with-param name="maxHeight" select="$setImageMaxHeight" />
<xsl:with-param name="maxWidth" select="$setImageMaxWidth" />
</xsl:call-template>
</xsl:if>
</xsl:template>
<!-- DE Vollansicht -->
<!-- EN Detailed view -->
<xsl:template name="CT_Article_graphics" match="cms:item[objectType='com.arsdigita.cms.contenttypes.Article']" mode="detailed_view">
<!-- DE Vollansicht -->
<!-- EN Detailed view -->
<xsl:template name="CT_Article_graphics" match="cms:item[objectType='com.arsdigita.cms.contenttypes.Article']" mode="detailed_view">
<!-- DE Hole alle benötigten Einstellungen-->
<!-- EN Getting all needed setting-->
<xsl:if test="./textAsset/content">
<div id="mainBody">
<xsl:value-of disable-output-escaping="yes" select="./textAsset/content"/>
<!-- DE Hole alle benötigten Einstellungen-->
<!-- EN Getting all needed setting-->
<xsl:if test="./textAsset/content">
<div id="mainBody">
<xsl:value-of disable-output-escaping="yes" select="./textAsset/content"/>
<div class="endFloat"/>
</div>
</xsl:if>
<div class="endFloat"/>
</div>
</xsl:if>
<div class="endFloat"/>
</xsl:template>
</xsl:template>
<!-- DE Listenansicht -->
<!-- EN List view -->
<xsl:template name="CT_Article_List" match="nav:item[nav:attribute[@name='objectType'] = 'com.arsdigita.cms.contenttypes.Article']" mode="list_view">
<!-- DE Listenansicht -->
<!-- EN List view -->
<xsl:template name="CT_Article_List"
match="nav:item[nav:attribute[@name='objectType'] = 'com.arsdigita.cms.contenttypes.Article']"
mode="list_view">
<!-- DE Hole alle benötigten Einstellungen-->
<!-- EN Getting all needed setting-->
<xsl:variable name="setLeadText">
<xsl:call-template name="mandalay:getSetting">
<xsl:with-param name="module" select="'Article'"/>
<xsl:with-param name="setting" select="'listView/setLeadText'"/>
<xsl:with-param name="default" select="'true'"/>
</xsl:call-template>
</xsl:variable>
<xsl:variable name="setLeadTextLength">
<xsl:call-template name="mandalay:getSetting">
<xsl:with-param name="module" select="'Article'"/>
<xsl:with-param name="setting" select="'listView/setLeadTextLength'"/>
<xsl:with-param name="default" select="'0'"/>
</xsl:call-template>
</xsl:variable>
<xsl:variable name="setImage">
<xsl:call-template name="mandalay:getSetting">
<xsl:with-param name="module" select="'Article'"/>
<xsl:with-param name="setting" select="'listView/setImage'"/>
<xsl:with-param name="default" select="'true'"/>
</xsl:call-template>
</xsl:variable>
<xsl:variable name="setMoreButton">
<xsl:call-template name="mandalay:getSetting">
<xsl:with-param name="module" select="'Article'"/>
<xsl:with-param name="setting" select="'listView/setMoreButton'"/>
<xsl:with-param name="default" select="'auto'"/>
</xsl:call-template>
</xsl:variable>
<!-- DE Hole alle benötigten Einstellungen-->
<!-- EN Getting all needed setting-->
<xsl:variable name="setLeadText">
<xsl:call-template name="mandalay:getSetting">
<xsl:with-param name="module" select="'Article'"/>
<xsl:with-param name="setting" select="'listView/setLeadText'"/>
<xsl:with-param name="default" select="'true'"/>
</xsl:call-template>
</xsl:variable>
<xsl:variable name="setLeadTextLength">
<xsl:call-template name="mandalay:getSetting">
<xsl:with-param name="module" select="'Article'"/>
<xsl:with-param name="setting" select="'listView/setLeadTextLength'"/>
<xsl:with-param name="default" select="'0'"/>
</xsl:call-template>
</xsl:variable>
<xsl:variable name="setImage">
<xsl:call-template name="mandalay:getSetting">
<xsl:with-param name="module" select="'Article'"/>
<xsl:with-param name="setting" select="'listView/setImage'"/>
<xsl:with-param name="default" select="'true'"/>
</xsl:call-template>
</xsl:variable>
<xsl:variable name="setMoreButton">
<xsl:call-template name="mandalay:getSetting">
<xsl:with-param name="module" select="'Article'"/>
<xsl:with-param name="setting" select="'listView/setMoreButton'"/>
<xsl:with-param name="default" select="'auto'"/>
</xsl:call-template>
</xsl:variable>
<xsl:if test="$setImage = 'true' and nav:attribute[@name='imageAttachments.image.id']">
<a>
<xsl:attribute name="href"><xsl:value-of select="nav:path"/></xsl:attribute>
<xsl:attribute name="title">
<xsl:call-template name="mandalay:shying">
<xsl:with-param name="title">
<xsl:value-of select="nav:attribute[@name='title']"/>
</xsl:with-param>
<xsl:with-param name="mode">dynamic</xsl:with-param>
</xsl:call-template>
</xsl:attribute>
<xsl:if test="$setImage = 'true' and nav:attribute[@name='imageAttachments.image.id']">
<a>
<xsl:attribute name="href">
<xsl:value-of select="nav:path"/>
</xsl:attribute>
<xsl:attribute name="title">
<xsl:call-template name="mandalay:shying">
<xsl:with-param name="title">
<xsl:value-of select="nav:attribute[@name='title']"/>
</xsl:with-param>
<xsl:with-param name="mode">dynamic</xsl:with-param>
</xsl:call-template>
</xsl:attribute>
<div class="image">
<img>
<xsl:attribute name="src">/ccm/cms-service/stream/image/?image_id=<xsl:value-of select="nav:attribute[@name='imageAttachments.image.id']"/>&amp;maxWidth=150&amp;maxHeight=100</xsl:attribute>
<xsl:if test="nav:attribute[@name='imageAttachments.caption']">
<xsl:attribute name="alt"><xsl:value-of select="nav:attribute[@name='imageAttachments.caption']"/></xsl:attribute>
<xsl:attribute name="title"><xsl:value-of select="nav:attribute[@name='imageAttachments.caption']"/></xsl:attribute>
</xsl:if>
</img>
</div>
</a>
</xsl:if>
<a class="CIname">
<xsl:attribute name="href"><xsl:value-of select="nav:path"/></xsl:attribute>
<xsl:attribute name="title">
<xsl:call-template name="mandalay:shying">
<xsl:with-param name="title">
<xsl:value-of select="nav:attribute[@name='title']"/>
</xsl:with-param>
<xsl:with-param name="mode">dynamic</xsl:with-param>
</xsl:call-template>
</xsl:attribute>
<xsl:call-template name="mandalay:shying">
<xsl:with-param name="title">
<xsl:value-of disable-output-escaping="yes" select="nav:attribute[@name='title']"/>
</xsl:with-param>
<xsl:with-param name="mode">dynamic</xsl:with-param>
</xsl:call-template>
</a>
<xsl:if test="nav:attribute[@name='lead'] and $setLeadText = 'true'">
<br />
<span class="intro">
<xsl:choose>
<xsl:when test="$setLeadTextLength = '0'">
<xsl:value-of disable-output-escaping="yes" select="nav:attribute[@name='lead']" />
</xsl:when>
<xsl:otherwise>
<xsl:value-of disable-output-escaping="yes" select="substring(nav:attribute[@name='lead'], 1, $setLeadTextLength)" />
<xsl:if test="string-length(nav:attribute[@name='lead']) > $setLeadTextLength">
<xsl:text>...</xsl:text>
<xsl:if test="$setMoreButton = 'auto'">
<xsl:call-template name="mandalay:moreButton">
<xsl:with-param name="href" select="nav:path"/>
<xsl:with-param name="module" select="'Article'"/>
</xsl:call-template>
</xsl:if>
</xsl:if>
</xsl:otherwise>
</xsl:choose>
<xsl:if test="$setMoreButton = 'true'">
<xsl:call-template name="mandalay:moreButton">
<xsl:with-param name="href" select="nav:path"/>
<xsl:with-param name="module" select="'Article'"/>
</xsl:call-template>
<div class="image">
<img>
<xsl:attribute name="src">/ccm/cms-service/stream/image/?image_id=<xsl:value-of select="nav:attribute[@name='imageAttachments.image.id']"/>&amp;maxWidth=150&amp;maxHeight=100</xsl:attribute>
<xsl:if test="nav:attribute[@name='imageAttachments.caption']">
<xsl:attribute name="alt">
<xsl:value-of select="nav:attribute[@name='imageAttachments.caption']"/>
</xsl:attribute>
<xsl:attribute name="title">
<xsl:value-of select="nav:attribute[@name='imageAttachments.caption']"/>
</xsl:attribute>
</xsl:if>
</img>
</div>
</a>
</xsl:if>
</span>
</xsl:if>
</xsl:template>
<xsl:template name="CT_Article_Link" match="*/cms:item/links[targetItem/objectType = 'com.arsdigita.cms.contenttypes.Article']" mode="link_view">
<!-- DE Hole alle benötigten Einstellungen-->
<!-- EN Getting all needed setting-->
<xsl:variable name="setImageAndText">
<xsl:call-template name="mandalay:getSetting">
<xsl:with-param name="module" select="'Article'"/>
<xsl:with-param name="setting" select="'linkView/setImageAndText'"/>
<xsl:with-param name="default" select="'true'"/>
</xsl:call-template>
</xsl:variable>
<xsl:variable name="setImage">
<xsl:call-template name="mandalay:getSetting">
<xsl:with-param name="module" select="'Article'"/>
<xsl:with-param name="setting" select="'linkView/setImage'"/>
<xsl:with-param name="default" select="'true'"/>
</xsl:call-template>
</xsl:variable>
<xsl:variable name="setImageMaxHeight">
<xsl:call-template name="mandalay:getSetting">
<xsl:with-param name="module" select="'Article'"/>
<xsl:with-param name="setting" select="'linkView/setImageMaxHeight'"/>
<xsl:with-param name="default" select="''"/>
</xsl:call-template>
</xsl:variable>
<xsl:variable name="setImageMaxWidth">
<xsl:call-template name="mandalay:getSetting">
<xsl:with-param name="module" select="'Article'"/>
<xsl:with-param name="setting" select="'linkView/setImageMaxWidth'"/>
<xsl:with-param name="default" select="''"/>
</xsl:call-template>
</xsl:variable>
<xsl:variable name="setImageCaption">
<xsl:call-template name="mandalay:getSetting">
<xsl:with-param name="module" select="'Article'"/>
<xsl:with-param name="setting" select="'linkView/setImageCaption'"/>
<xsl:with-param name="default" select="'true'"/>
</xsl:call-template>
</xsl:variable>
<xsl:variable name="setDescription">
<xsl:call-template name="mandalay:getSetting">
<xsl:with-param name="module" select="'Article'"/>
<xsl:with-param name="setting" select="'linkView/setDescription'"/>
<xsl:with-param name="default" select="'true'"/>
</xsl:call-template>
</xsl:variable>
<xsl:variable name="setDescriptionLength">
<xsl:call-template name="mandalay:getSetting">
<xsl:with-param name="module" select="'Article'"/>
<xsl:with-param name="setting" select="'linkView/setDescriptionLength'"/>
<xsl:with-param name="default" select="'0'"/>
</xsl:call-template>
</xsl:variable>
<xsl:variable name="setMoreButton">
<xsl:call-template name="mandalay:getSetting">
<xsl:with-param name="module" select="'Article'"/>
<xsl:with-param name="setting" select="'linkView/setMoreButton'"/>
<xsl:with-param name="default" select="'auto'"/>
</xsl:call-template>
</xsl:variable>
<!-- DE Wenn es Bilder gibt, dann soll das erste hier als Link angezeigt werden -->
<!-- EN -->
<xsl:if test="./targetItem/imageAttachments and $setImage = 'true'">
<a class="CIname">
<xsl:attribute name="href"><xsl:text>/redirect/?oid=</xsl:text><xsl:value-of select="./targetItem/@oid"/></xsl:attribute>
<xsl:attribute name="title">
<xsl:call-template name="mandalay:shying">
<xsl:with-param name="title">
<xsl:value-of select="./linkTitle"/>
</xsl:with-param>
<xsl:with-param name="mode">dynamic</xsl:with-param>
</xsl:call-template>
</xsl:attribute>
<xsl:for-each select="./targetItem">
<xsl:call-template name="mandalay:imageAttachment">
<xsl:with-param name="showCaption" select="$setImageCaption" />
<xsl:with-param name="maxHeight" select="$setImageMaxHeight" />
<xsl:with-param name="maxWidth" select="$setImageMaxWidth" />
<xsl:with-param name="setZoomLink" select="'false'" />
</xsl:call-template>
</xsl:for-each>
</a>
</xsl:if>
<xsl:if test="$setImageAndText = 'true' or not(./targetItem/imageAttachments) or $setImage = 'false'">
<a class="CIname">
<xsl:attribute name="href"><xsl:text>/redirect/?oid=</xsl:text><xsl:value-of select="./targetItem/@oid"/></xsl:attribute>
<xsl:attribute name="title">
<xsl:call-template name="mandalay:shying">
<xsl:with-param name="title">
<xsl:value-of select="./linkTitle"/>
</xsl:with-param>
<xsl:with-param name="mode">dynamic</xsl:with-param>
</xsl:call-template>
</xsl:attribute>
<xsl:call-template name="mandalay:shying">
<xsl:with-param name="title">
<xsl:value-of disable-output-escaping="yes" select="./linkTitle"/>
</xsl:with-param>
<xsl:with-param name="mode">dynamic</xsl:with-param>
</xsl:call-template>
</a>
<xsl:if test="./linkDescription and $setDescription">
<br />
<xsl:choose>
<xsl:when test="$setDescriptionLength = '0'">
<xsl:value-of disable-output-escaping="yes" select="./linkDescription"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of disable-output-escaping="yes" select="substring(./linkDescription, 1, $setDescriptionLength)" />
<xsl:if test="string-length(./linkDescription) > $setDescriptionLength">
<xsl:text>...</xsl:text>
<xsl:if test="$setMoreButton = 'auto'">
<xsl:call-template name="mandalay:moreButton">
<xsl:with-param name="href" select="./targetItem/@oid"/>
<xsl:with-param name="module" select="'Article'"/>
<a class="CIname">
<xsl:attribute name="href">
<xsl:value-of select="nav:path"/>
</xsl:attribute>
<xsl:attribute name="title">
<xsl:call-template name="mandalay:shying">
<xsl:with-param name="title">
<xsl:value-of select="nav:attribute[@name='title']"/>
</xsl:with-param>
<xsl:with-param name="mode">dynamic</xsl:with-param>
</xsl:call-template>
</xsl:if>
</xsl:if>
</xsl:otherwise>
</xsl:choose>
<xsl:if test="$setMoreButton = 'true'">
<xsl:call-template name="mandalay:moreButton">
<xsl:with-param name="href" select="./targetItem/@oid"/>
<xsl:with-param name="module" select="'Article'"/>
</xsl:call-template>
</xsl:attribute>
<xsl:call-template name="mandalay:shying">
<xsl:with-param name="title">
<xsl:value-of disable-output-escaping="yes" select="nav:attribute[@name='title']"/>
</xsl:with-param>
<xsl:with-param name="mode">dynamic</xsl:with-param>
</xsl:call-template>
</a>
<xsl:if test="nav:attribute[@name='lead'] and $setLeadText = 'true'">
<br />
<span class="intro">
<xsl:choose>
<xsl:when test="$setLeadTextLength = '0'">
<xsl:value-of disable-output-escaping="yes" select="nav:attribute[@name='lead']" />
</xsl:when>
<xsl:otherwise>
<xsl:value-of disable-output-escaping="yes" select="substring(nav:attribute[@name='lead'], 1, $setLeadTextLength)" />
<xsl:if test="string-length(nav:attribute[@name='lead']) > $setLeadTextLength">
<xsl:text>...</xsl:text>
<xsl:if test="$setMoreButton = 'auto'">
<xsl:call-template name="mandalay:moreButton">
<xsl:with-param name="href" select="nav:path"/>
<xsl:with-param name="module" select="'Article'"/>
</xsl:call-template>
</xsl:if>
</xsl:if>
</xsl:otherwise>
</xsl:choose>
<xsl:if test="$setMoreButton = 'true'">
<xsl:call-template name="mandalay:moreButton">
<xsl:with-param name="href" select="nav:path"/>
<xsl:with-param name="module" select="'Article'"/>
</xsl:call-template>
</xsl:if>
</span>
</xsl:if>
</xsl:if>
</xsl:if>
</xsl:template>
</xsl:template>
<xsl:template name="CT_Article_Link"
match="*/cms:item/links[targetItem/objectType = 'com.arsdigita.cms.contenttypes.Article']"
mode="link_view">
<!-- DE Hole alle benötigten Einstellungen-->
<!-- EN Getting all needed setting-->
<xsl:variable name="setImageAndText">
<xsl:call-template name="mandalay:getSetting">
<xsl:with-param name="module" select="'Article'"/>
<xsl:with-param name="setting" select="'linkView/setImageAndText'"/>
<xsl:with-param name="default" select="'true'"/>
</xsl:call-template>
</xsl:variable>
<xsl:variable name="setImage">
<xsl:call-template name="mandalay:getSetting">
<xsl:with-param name="module" select="'Article'"/>
<xsl:with-param name="setting" select="'linkView/setImage'"/>
<xsl:with-param name="default" select="'true'"/>
</xsl:call-template>
</xsl:variable>
<xsl:variable name="setImageMaxHeight">
<xsl:call-template name="mandalay:getSetting">
<xsl:with-param name="module" select="'Article'"/>
<xsl:with-param name="setting" select="'linkView/setImageMaxHeight'"/>
<xsl:with-param name="default" select="''"/>
</xsl:call-template>
</xsl:variable>
<xsl:variable name="setImageMaxWidth">
<xsl:call-template name="mandalay:getSetting">
<xsl:with-param name="module" select="'Article'"/>
<xsl:with-param name="setting" select="'linkView/setImageMaxWidth'"/>
<xsl:with-param name="default" select="''"/>
</xsl:call-template>
</xsl:variable>
<xsl:variable name="setImageCaption">
<xsl:call-template name="mandalay:getSetting">
<xsl:with-param name="module" select="'Article'"/>
<xsl:with-param name="setting" select="'linkView/setImageCaption'"/>
<xsl:with-param name="default" select="'true'"/>
</xsl:call-template>
</xsl:variable>
<xsl:variable name="setDescription">
<xsl:call-template name="mandalay:getSetting">
<xsl:with-param name="module" select="'Article'"/>
<xsl:with-param name="setting" select="'linkView/setDescription'"/>
<xsl:with-param name="default" select="'true'"/>
</xsl:call-template>
</xsl:variable>
<xsl:variable name="setDescriptionLength">
<xsl:call-template name="mandalay:getSetting">
<xsl:with-param name="module" select="'Article'"/>
<xsl:with-param name="setting" select="'linkView/setDescriptionLength'"/>
<xsl:with-param name="default" select="'0'"/>
</xsl:call-template>
</xsl:variable>
<xsl:variable name="setMoreButton">
<xsl:call-template name="mandalay:getSetting">
<xsl:with-param name="module" select="'Article'"/>
<xsl:with-param name="setting" select="'linkView/setMoreButton'"/>
<xsl:with-param name="default" select="'auto'"/>
</xsl:call-template>
</xsl:variable>
<!-- DE Wenn es Bilder gibt, dann soll das erste hier als Link angezeigt werden -->
<!-- EN -->
<xsl:if test="./targetItem/imageAttachments and $setImage = 'true'">
<a class="CIname">
<xsl:attribute name="href">
<xsl:text>/redirect/?oid=</xsl:text>
<xsl:value-of select="./targetItem/@oid"/>
</xsl:attribute>
<xsl:attribute name="title">
<xsl:call-template name="mandalay:shying">
<xsl:with-param name="title">
<xsl:value-of select="./linkTitle"/>
</xsl:with-param>
<xsl:with-param name="mode">dynamic</xsl:with-param>
</xsl:call-template>
</xsl:attribute>
<xsl:for-each select="./targetItem">
<xsl:call-template name="mandalay:imageAttachment">
<xsl:with-param name="showCaption" select="$setImageCaption" />
<xsl:with-param name="maxHeight" select="$setImageMaxHeight" />
<xsl:with-param name="maxWidth" select="$setImageMaxWidth" />
<xsl:with-param name="setZoomLink" select="'false'" />
</xsl:call-template>
</xsl:for-each>
</a>
</xsl:if>
<xsl:if test="$setImageAndText = 'true' or not(./targetItem/imageAttachments) or $setImage = 'false'">
<a class="CIname">
<xsl:attribute name="href">
<xsl:text>/redirect/?oid=</xsl:text>
<xsl:value-of select="./targetItem/@oid"/>
</xsl:attribute>
<xsl:attribute name="title">
<xsl:call-template name="mandalay:shying">
<xsl:with-param name="title">
<xsl:value-of select="./linkTitle"/>
</xsl:with-param>
<xsl:with-param name="mode">dynamic</xsl:with-param>
</xsl:call-template>
</xsl:attribute>
<xsl:call-template name="mandalay:shying">
<xsl:with-param name="title">
<xsl:value-of disable-output-escaping="yes" select="./linkTitle"/>
</xsl:with-param>
<xsl:with-param name="mode">dynamic</xsl:with-param>
</xsl:call-template>
</a>
<xsl:if test="./linkDescription and $setDescription">
<br />
<xsl:choose>
<xsl:when test="$setDescriptionLength = '0'">
<xsl:value-of disable-output-escaping="yes" select="./linkDescription"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of disable-output-escaping="yes" select="substring(./linkDescription, 1, $setDescriptionLength)" />
<xsl:if test="string-length(./linkDescription) > $setDescriptionLength">
<xsl:text>...</xsl:text>
<xsl:if test="$setMoreButton = 'auto'">
<xsl:call-template name="mandalay:moreButton">
<xsl:with-param name="href" select="./targetItem/@oid"/>
<xsl:with-param name="module" select="'Article'"/>
</xsl:call-template>
</xsl:if>
</xsl:if>
</xsl:otherwise>
</xsl:choose>
<xsl:if test="$setMoreButton = 'true'">
<xsl:call-template name="mandalay:moreButton">
<xsl:with-param name="href" select="./targetItem/@oid"/>
<xsl:with-param name="module" select="'Article'"/>
</xsl:call-template>
</xsl:if>
</xsl:if>
</xsl:if>
</xsl:template>
</xsl:stylesheet>

View File

@ -32,7 +32,8 @@
<!-- DE Leadtext -->
<!-- EN lead text view -->
<xsl:template match="cms:item[objectType='com.arsdigita.cms.contenttypes.MultiPartArticle']" mode="lead">
<xsl:template match="cms:item[objectType='com.arsdigita.cms.contenttypes.MultiPartArticle']"
mode="lead">
<xsl:variable name="setLeadText">
<xsl:call-template name="mandalay:getSetting">
<xsl:with-param name="module" select="'MultiPartArticle'"/>
@ -58,7 +59,8 @@
<!-- DE Berechne lokale Variablen -->
<!-- EN Calculate local variables -->
<xsl:variable name="currentRank" select="//cms:articleSectionPanel/cms:item/rank"/>
<xsl:variable name="currentPage" select="count(//cms:item/sections[pageBreak = 'true' and rank &lt; $currentRank]) + 1"/>
<xsl:variable name="currentPage"
select="count(//cms:item/sections[pageBreak = 'true' and rank &lt; $currentRank]) + 1"/>
<xsl:if test="./summary and $setSummary = 'true' and ($currentPage = '1' or ($currentPage > '1' and $setSummaryFirstPageOnly = 'false'))">
<div id="lead">
@ -113,7 +115,9 @@
<!-- DE Vollansicht -->
<!-- EN Detailed view -->
<xsl:template name="CT_MultiPartArticle_graphics" match="cms:item[objectType='com.arsdigita.cms.contenttypes.MultiPartArticle']" mode="detailed_view">
<xsl:template name="CT_MultiPartArticle_graphics"
match="cms:item[objectType='com.arsdigita.cms.contenttypes.MultiPartArticle']"
mode="detailed_view">
<!-- DE Hole alle benötigten Einstellungen-->
<!-- EN Getting all needed setting-->
@ -198,7 +202,9 @@
<!-- DE Vollansicht Text-Section -->
<!-- EN Detailed view text section -->
<xsl:template name="CT_MultiPartArticle_Section" match="cms:item[objectType='com.arsdigita.cms.contenttypes.ArticleSection']" mode="detailed_view">
<xsl:template name="CT_MultiPartArticle_Section"
match="cms:item[objectType='com.arsdigita.cms.contenttypes.ArticleSection']"
mode="detailed_view">
<!-- DE Hole alle benötigten Einstellungen-->
<!-- EN Getting all needed setting-->
@ -269,11 +275,16 @@
<!-- DE Berechne lokale Variablen -->
<!-- EN Calculate local variables -->
<xsl:variable name="currentRank" select="./rank"/>
<xsl:variable name="currentPage" select="count(//cms:item/sections[pageBreak = 'true' and rank &lt; $currentRank]) + 1"/>
<xsl:variable name="first" select="//cms:articleSectionPanel/cms:item[position()=1]/rank"/>
<xsl:variable name="last" select="//cms:articleSectionPanel/cms:item[position()=last()]/rank"/>
<xsl:variable name="maxRank" select="count(//cms:item/sections)"/>
<xsl:variable name="maxPage" select="1 + count(//cms:item/sections[pageBreak = 'true' and position() != last()])"/>
<xsl:variable name="currentPage"
select="count(//cms:item/sections[pageBreak = 'true' and rank &lt; $currentRank]) + 1"/>
<xsl:variable name="first"
select="//cms:articleSectionPanel/cms:item[position()=1]/rank"/>
<xsl:variable name="last"
select="//cms:articleSectionPanel/cms:item[position()=last()]/rank"/>
<xsl:variable name="maxRank"
select="count(//cms:item/sections)"/>
<xsl:variable name="maxPage"
select="1 + count(//cms:item/sections[pageBreak = 'true' and position() != last()])"/>
<div class="MPASection">
@ -370,7 +381,9 @@
<!-- DE Listenansicht -->
<!-- EN List view -->
<xsl:template name="CT_MultiPartArticle_List" match="nav:item[nav:attribute[@name='objectType'] = 'com.arsdigita.cms.contenttypes.MultiPartArticle']" mode="list_view">
<xsl:template name="CT_MultiPartArticle_List"
match="nav:item[nav:attribute[@name='objectType'] = 'com.arsdigita.cms.contenttypes.MultiPartArticle']"
mode="list_view">
<!-- DE Hole alle benötigten Einstellungen-->
<!-- EN Getting all needed setting-->
@ -482,7 +495,9 @@
</xsl:if>
</xsl:template>
<xsl:template name="CT_MultiPartArticle_Link" match="*/cms:item/links[targetItem/objectType = 'com.arsdigita.cms.contenttypes.MultiPartArticle']" mode="link_view">
<xsl:template name="CT_MultiPartArticle_Link"
match="*/cms:item/links[targetItem/objectType = 'com.arsdigita.cms.contenttypes.MultiPartArticle']"
mode="link_view">
<!-- DE Hole alle benötigten Einstellungen-->
<!-- EN Getting all needed setting-->

View File

@ -34,7 +34,7 @@
<div id="cmsHeader" class="headerHeight">
<div class="minWidth">
<showImage class="logo">
<src>images/logo.png</src>
<src>images/scientificcms_logo.png</src>
<alt>header/logo/alt</alt>
<name>header/logo/name</name>
<link>/navigation/</link>