Aktualisierung von Mandalay auf die aktuelle Version

git-svn-id: https://svn.libreccm.org/ccm/trunk@2457 8810af33-2d31-482b-a856-94f89814c4df
master
quasi 2013-11-25 07:39:20 +00:00
parent 0748e2e601
commit 8a3bb4c295
21 changed files with 2017 additions and 1257 deletions

View File

@ -25,6 +25,7 @@
/* Colors */
h1, h2, h3
{
margin: 0;
color: #4a4a4a;
}
@ -79,7 +80,7 @@ h2 {
height:100%;
width: 100%;
min-height: 100%;
overflow: hidden;
ove rflow: hidden;
position:absolute;
}
@ -443,6 +444,7 @@ div#right div.columnHead .contenttitle {
}
div#right div.columnHead .contenttitle h1 {
margin: 0;
border: none;
font:inherit;
color: inherit;
@ -463,6 +465,11 @@ div#right div.columnHead #contentviewmenu{
line-height: 30px;
}
div#right div.columnHead #contentviewmenu .cmsContentViewMenu,
div#right div.columnHead #contentviewmenu .cmsGlobalNavigation {
float: left;
}
div#right div.columnHead #contentviewmenu a {
color:white;
}
@ -1294,7 +1301,7 @@ a:focus, a:hover, a:active,
#left {
position: static;
float: left;
width: 14em;
m in-width: 14em;
height: 100%;
overflow: hidden;
margin: 0.3em;
@ -1318,9 +1325,9 @@ a:focus, a:hover, a:active,
background-color: #ffffff;
}
#content {
margin: 0;
border: 0;
padding: 0;
margin: 0 !important;
border: 0 !important;
padding: 0 !important;
min-height: inherit;
color: #4a4a4a;
background-color: inherit;
@ -1418,3 +1425,21 @@ a#preview_link:visited{
div.bebopGridPanel{
margin-top: 15px;
}
.hint:hover:after {
position: absolute;
box-shadow: 0 0 5px #4a4a4a;
border-radius: 0.3em;
padding: 0.5em;
content: attr(content);
top: 1em;
right: 1em;
width: 30%;
background-image: inear-gradient(top, #eeeeee, #cccccc);
background-image: -webkit-gradient(linear,left top,left bottom,color-stop(0, #eeeeee),color-stop(1, #cccccc));
background-image: -webkit-linear-gradient(top, #eeeeee, #cccccc);
background-image: -moz-linear-gradient(top, #eeeeee, #cccccc);
background-image: -ms-linear-gradient(top, #eeeeee, #cccccc);
background-image: -o-linear-gradient(top, #eeeeee, #cccccc);
}

View File

@ -436,7 +436,6 @@ body,
/* Layout-Boxen */
.marginRight {
margin-right: 290px !important;
}
@ -905,26 +904,28 @@ div.image .imageZoom:after {
content: url('../../../images/icons/imageZoom.png');
}
div.image .imageGallery:after {
content: url('../../../images/icons/imageGallery.png');
}
div.image a:after {
position: absolute;
bottom: 0;
right: 0;
border: 1px solid rgba(255,255,255,0.75);
padding: 2px;
background-color: rgba(0, 0, 0, 0.5);
}
div.image .imageZoom:after {
content: url('../../../images/icons/imageZoom.png');
}
div.image .imageGallery:after {
content: url('../../../images/icons/imageGallery.png');
}
/* Images in CT Ende */
/* Header Menu */
/*
#quicksearch {
@ -1231,7 +1232,6 @@ div.image .imageGallery:after {
display: none;
}
/* Info */
#info {
margin-left: 1.2em;

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 3.3 KiB

View File

@ -199,4 +199,14 @@
</span>
</xsl:template>
<xsl:template match="bebop:fieldset">
<fieldset>
<xsl:call-template name="mandalay:processAttributes"/>
<legend>
<xsl:value-of select="@legend"/>
</legend>
<xsl:apply-templates/>
</fieldset>
</xsl:template>
</xsl:stylesheet>

View File

@ -45,6 +45,7 @@
<xsl:import href="cms/cmsCategoryStep.xsl"/>
<xsl:import href="cms/cmsContainer.xsl"/>
<xsl:import href="cms/cmsContentViewMenu.xsl"/>
<xsl:import href="cms/cmsGlobalNavigation.xsl"/>
<xsl:import href="cms/cmsGreeting.xsl"/>
<xsl:import href="cms/cmsImageBrowser.xsl"/>

View File

@ -0,0 +1,72 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE stylesheet [<!ENTITY nbsp '&#160;'>]>
<!--
Copyright: 2006, 2007, 2008 Sören Bernstein
This file is part of Mandalay.
Mandalay is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or
(at your option) any later version.
Mandalay 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 General Public License for more details.
You should have received a copy of the GNU General Public License
along with Mandalay. If not, see <http://www.gnu.org/licenses/>.
-->
<!-- DE
Hier wird die globale Navigation des CMS verarbeitet
-->
<!-- EN
Processing global navigation for cms
-->
<!-- 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:mandalay="http://mandalay.quasiweb.de"
exclude-result-prefixes="xsl bebop cms nav mandalay"
version="1.0">
<!-- DE Das Menü -->
<!-- EN The menu -->
<xsl:template match="showCMSContentViewMenu">
<xsl:param name="layoutTree" select="."/>
<xsl:variable name="setLayout">
<xsl:call-template name="mandalay:getSetting">
<xsl:with-param name="node" select="$layoutTree/setLayout"/>
<xsl:with-param name="module" select="'cms'"/>
<xsl:with-param name="setting" select="'contentViewMenu/setLayout'"/>
<xsl:with-param name="default" select="'horizontal'"/>
</xsl:call-template>
</xsl:variable>
<xsl:choose>
<xsl:when test="$setLayout = 'horizontal'">
<xsl:apply-templates select="$resultTree//*[contains(@class, 'cmsContentViewMenu')]"/>
</xsl:when>
<xsl:otherwise>
<ul>
<xsl:for-each select="$resultTree//*[contains(@class, 'cmsContentViewMenu')]">
<li>
<xsl:apply-templates/>
</li>
</xsl:for-each>
</ul>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
</xsl:stylesheet>

View File

@ -63,28 +63,77 @@
<xsl:value-of select="bebop:label"/>
</xsl:attribute>
</xsl:if>
<xsl:apply-templates/>
<xsl:apply-templates mode="imageBrowser"/>
</div>
</xsl:template>
<!--
<xsl:template match="bebop:link" mode="imageBrowser">
<xsl:param name="alt"/>
<xsl:param name="title"/>
<xsl:param name="src"/>
<!-- DE -->
<!-- EN -->
<xsl:variable name="onclick">
<xsl:choose>
<xsl:when test="boolean(@onclick)=true() and not(starts-with(@onclick, 'return'))">
<xsl:value-of select="@onclick" disable-output-escaping="yes"/>
</xsl:when>
<xsl:otherwise>
<xsl:text>this.href='</xsl:text>
<xsl:value-of select="@href" disable-output-escaping="yes"/>
<xsl:text>'; </xsl:text>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<!-- DE DoubleClickProtection für Links, wenn es keinen OnClick-Handler gibt -->
<!-- EN DoubleClickProtection for links without an onclick handler -->
<xsl:variable name="dcp">
<xsl:if test="$dcp-on-links and boolean(@onclick)=false()">
<xsl:text>doubleClickProtect(this); </xsl:text>
</xsl:if>
</xsl:variable>
<!-- DE Wenn es ein Link mit Bestätigung ist -->
<!-- EN A link with confirmation -->
<xsl:variable name="confirm">
<xsl:if test="boolean(@confirm)=true() or starts-with(@onclick, 'return')">
<xsl:call-template name="mandalay:string-replace">
<xsl:with-param name="string" select="@onclick"/>
<xsl:with-param name="from" select="'\'"/>
<xsl:with-param name="to" select="''"/>
</xsl:call-template>
</xsl:if>
</xsl:variable>
<a>
<xsl:call-template name="mandalay:processAttributes"/>
<xsl:attribute name="href">
<xsl:value-of select=""/>
<xsl:call-template name="mandalay:linkParser">
<xsl:with-param name="link" select="@href_no_javascript"/>
</xsl:call-template>
</xsl:attribute>
<xsl:attribute name="onclick">
<xsl:value-of select="$onclick"/>
<xsl:value-of select="$dcp"/>
<xsl:value-of select="$confirm"/>
</xsl:attribute>
<xsl:if test="$src">
<img alt="{$alt}" title="{$title}" src="{$src}"/>
</xsl:if>
<xsl:apply-templates mode="imageBrowser"/>
</a>
</xsl:template>
<xsl:template match="bebop:image" mode="imageBrowser">
<img src="" alt=""/>
<xsl:apply-templates select="."/>
</xsl:template>
-->
<!--
<xsl:template match="bebop:label" mode="imageBrowser">
<xsl:template match="bebop:label" mode="imageBrowser">
<xsl:apply-templates select="."/>
</xsl:template>
-->
</xsl:stylesheet>

View File

@ -149,9 +149,9 @@
<!-- DE Setze Favicon, falls vorhanden -->
<!-- EN Set favicon if exists -->
<!-- <xsl:if test=""> -->
<!-- <xsl:if test=""> -->
<link href="{$theme-prefix}/images/favicon.png" type="image/x-icon" rel="shortcut icon"/>
<!-- </xsl:if> -->
<!-- </xsl:if> -->
</head>
</xsl:template>
@ -345,33 +345,6 @@
</xsl:choose>
</xsl:template>
<xsl:template match="showLeftColumn">
<xsl:apply-templates select="$resultTree//bebop:currentPane/bebop:layoutPanel/bebop:left |
$resultTree//bebop:currentPane/bebop:form//bebop:layoutPanel/bebop:left |
$resultTree//bebop:currentPane/bebop:boxPanel//bebop:layoutPanel/bebop:left |
$resultTree//bebop:currentPane/cms:container/cms:container"/>
</xsl:template>
<xsl:template match="showBodyColumn">
<xsl:apply-templates select="$resultTree//bebop:currentPane/bebop:layoutPanel/bebop:body |
$resultTree//bebop:currentPane/bebop:form//bebop:layoutPanel/bebop:body |
$resultTree//bebop:currentPane/bebop:boxPanel//bebop:layoutPanel/bebop:body |
$resultTree//bebop:currentPane/bebop:layoutPanel/bebop:right |
$resultTree//bebop:currentPane/bebop:form//bebop:layoutPanel/bebop:right |
$resultTree//bebop:currentPane/bebop:boxPanel//bebop:layoutPanel/bebop:right |
$resultTree//bebop:currentPane/cms:container/*[name() != 'cms:container'] |
$resultTree//bebop:currentPane/cms:itemSummary |
$resultTree//bebop:currentPane/cms:categorySummary |
$resultTree//bebop:currentPane/cms:linkSummary |
$resultTree//bebop:currentPane/cms:lifecycleSummary |
$resultTree//bebop:currentPane/cms:workflowSummary |
$resultTree//bebop:currentPane/cms:transactionSummary |
$resultTree//bebop:currentPane/bebop:boxPanel |
$resultTree//bebop:currentPane//bebop:form[@name='imageLibraryComponent'] |
$resultTree//bebop:currentPane//bebop:form[@name='imageUploadComponent']
"/>
</xsl:template>
<xsl:template match="useContent">
<xsl:choose>
<xsl:when test="$resultTree/@class = 'cms-admin'">
@ -404,7 +377,7 @@
<xsl:when test="$resultTree/@class = 'DOCS'">
<xsl:apply-templates select="$resultTree//docs:header | $resultTree//docs:body | $resultTree//docs:footer"/>
</xsl:when>
<!-- <xsl:when test="$resultTree/@application = 'PublicPersonalProfile'">
<!-- <xsl:when test="$resultTree/@application = 'PublicPersonalProfile'">
<xsl:apply-templates select="$resultTree//ppp:profile | $resultTree//cms:item | $resultTree//bebop:form"/>
</xsl:when> -->
<xsl:when test="$resultTree/@application = 'PublicPersonalProfile'">
@ -451,7 +424,9 @@
<xsl:if test="$resultTree//*[@id=$list]/*[name()!='nav:noContent']">
<div>
<xsl:call-template name="mandalay:setIdAndClass"/>
<xsl:attribute name="id"><xsl:value-of select="$list"/></xsl:attribute>
<xsl:attribute name="id">
<xsl:value-of select="$list"/>
</xsl:attribute>
<xsl:apply-templates/>
</div>
</xsl:if>
@ -602,15 +577,15 @@
<xsl:template match="show">
<xsl:call-template name="mandalay:"/>
</xsl:template>
-->
-->
<!-- DE Fehler im Parser, erkennt nicht, daß dieses Template nur aufgerufen wird, wenn /bebop:page/@application = 'portal' -->
<!-- DE in workspace-index.xsl ist das template vorhanden, hier ist es eigentlich überflüssig MIST -->
<!-- EN Parser bug workaround for original aplaws theme, probably not needed anymore-->
<!--
<xsl:template name="wsBody">
</xsl:template>
-->
<!-- DE Fehler im Parser, erkennt nicht, daß dieses Template nur aufgerufen wird, wenn /bebop:page/@application = 'portal' -->
<!-- DE in workspace-index.xsl ist das template vorhanden, hier ist es eigentlich überflüssig MIST -->
<!-- EN Parser bug workaround for original aplaws theme, probably not needed anymore-->
<!--
<xsl:template name="wsBody">
</xsl:template>
-->
<!-- ************************************************************************************************************ -->
<!-- ************************************************************************************************************ -->
@ -618,6 +593,85 @@
<!-- ************************************************************************************************************ -->
<!-- ************************************************************************************************************ -->
<xsl:template match="showLeftColumn">
<xsl:choose>
<!--
<xsl:when test="">
<xsl:apply-templates select=""/>
</xsl:when>
-->
<xsl:when test="$resultTree//bebop:currentPane/bebop:form//bebop:layoutPanel/bebop:left[//bebop:formWidget]">
<form>
<xsl:if test="not(@method)">
<xsl:attribute name="method">post</xsl:attribute>
</xsl:if>
<xsl:call-template name="mandalay:processAttributes"/>
<xsl:apply-templates select="$resultTree//bebop:currentPane/bebop:form//bebop:layoutPanel/bebop:left"/>
</form>
</xsl:when>
<xsl:when test="$resultTree//bebop:currentPane/cms:container/cms:container">
<xsl:apply-templates select="$resultTree//bebop:currentPane/cms:container/cms:container"/>
</xsl:when>
<xsl:when test="$resultTree//bebop:currentPane/bebop:boxPanel//bebop:layoutPanel/bebop:left">
<xsl:apply-templates select="$resultTree//bebop:currentPane/bebop:boxPanel//bebop:layoutPanel/bebop:left"/>
</xsl:when>
<xsl:otherwise>
<xsl:apply-templates select="$resultTree//bebop:currentPane/bebop:layoutPanel/bebop:left"/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template match="showBodyColumn">
<xsl:choose>
<!--
<xsl:when test="">
<xsl:apply-templates select=""/>
</xsl:when>
-->
<xsl:when test="$resultTree//bebop:currentPane/bebop:form//bebop:layoutPanel/bebop:body[//bebop:formWidget] |
$resultTree//bebop:currentPane/bebop:form//bebop:layoutPanel/bebop:right[//bebop:formWidget]">
<form>
<xsl:if test="not(@method)">
<xsl:attribute name="method">post</xsl:attribute>
</xsl:if>
<xsl:call-template name="mandalay:processAttributes"/>
<xsl:apply-templates select="$resultTree//bebop:currentPane/bebop:form//bebop:layoutPanel/bebop:body |
$resultTree//bebop:currentPane/bebop:form//bebop:layoutPanel/bebop:right"/>
</form>
</xsl:when>
<xsl:when test="$resultTree//bebop:currentPane/bebop:form[not(//bebop:layoutPanel)]">
<xsl:apply-templates select="$resultTree//bebop:currentPane/bebop:form"/>
</xsl:when>
<xsl:when test="$resultTree//bebop:currentPane/cms:container/*[name() != 'cms:container']">
<xsl:apply-templates select="$resultTree//bebop:currentPane/cms:container/*[name() != 'cms:container']"/>
</xsl:when>
<xsl:when test="$resultTree//bebop:currentPane/bebop:boxPanel//bebop:layoutPanel/bebop:body |
$resultTree//bebop:currentPane/bebop:boxPanel//bebop:layoutPanel/bebop:right">
<xsl:apply-templates select="$resultTree//bebop:currentPane/bebop:boxPanel//bebop:layoutPanel/bebop:body |
$resultTree//bebop:currentPane/bebop:boxPanel//bebop:layoutPanel/bebop:right"/>
</xsl:when>
<xsl:otherwise>
<xsl:apply-templates select="$resultTree//bebop:currentPane/bebop:layoutPanel/bebop:body |
$resultTree//bebop:currentPane/bebop:layoutPanel/bebop:right |
$resultTree//bebop:currentPane/cms:itemSummary |
$resultTree//bebop:currentPane/cms:categorySummary |
$resultTree//bebop:currentPane/cms:linkSummary |
$resultTree//bebop:currentPane/cms:lifecycleSummary |
$resultTree//bebop:currentPane/cms:workflowSummary |
$resultTree//bebop:currentPane/cms:transactionSummary"/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template match="showCMSGreeting">
<xsl:call-template name="mandalay:cmsGreeting">
<xsl:with-param name="resultTree" select="$resultTree"/>

View File

@ -48,9 +48,14 @@
<xsl:apply-templates select="search:documents" mode="admin"/>
</xsl:when>
<xsl:otherwise>
<xsl:apply-templates select="search:documents"/>
<xsl:apply-templates select="search:documents | info"/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template match="info">
<div class="info">
<xsl:value-of select="."/>
</div>
</xsl:template>
</xsl:stylesheet>

View File

@ -23,6 +23,12 @@
<line id="lang">Deutsch</line>
<line id="version">0.9</line>
<line id="listView/headsHeading">Abteilungsleitung: </line>
<line id="listView/viceHeadsHeading">Stellv. Abteilungsleitung: </line>
<line id="listView/secretariatHeading">Sekretariat: </line>
<line id="listView/emailHeading">E-Mail: </line>
<line id="listView/phoneHeading">Telefon: </line>
<line id="moreButton">mehr »</line>
<line id="moreButtonTitle">weiter lesen</line>
@ -31,11 +37,18 @@
<line id="tabs/members">Mitglieder</line>
<line id="tabs/projects">Projekte</line>
<line id="tabs/publications">Publikationen</line>
<line id="tabs/concept">Leitkonzept</line>
<line id="tabs/research">Forschung</line>
<line id="tabs/teaching">Lehre</line>
<line id="tabs/profile">Abteilungsprofil</line>
<line id="summaryTab/heading">Überblick</line>
<line id="summaryTab/headsHeading">Abteilungsleitung</line>
<line id="summaryTab/subDepartmentsHeading">Arbeitsbereiche</line>
<line id="summaryTab/contactsHeading">Kontakt</line>
<line id="summaryTab/headsHeading">Abteilungsleitung: </line>
<line id="summaryTab/secretariatHeading">Sekretariat: </line>
<line id="summaryTab/subDepartmentsHeading">Arbeitsbereiche</line>
<line id="summaryTab/viceHeadsHeading">Stellvertretende Abteilungsleitung: </line>
<line id="descTab/heading">Details</line>
@ -105,9 +118,9 @@
<line id="departmentPublications">Publikationen</line>
<line id="departmentWorkingPapers">Arbeitspapiere</line>
<line id="phone">Raum: </line>
<line id="room">Raum: </line>
<line id="phone">Telefon: </line>
<line id="phone">E-Mail: </line>
<line id="email">E-Mail: </line>
</translations>

View File

@ -83,6 +83,7 @@
-->
</div>
<div id="contentviewmenu">
<showCMSContentViewMenu/>
<showCMSGlobalNavigation>
<usePreviewLink/>
</showCMSGlobalNavigation>

View File

@ -99,7 +99,6 @@
<showFileAttachments/>
</div>
<divIfNotEmpty id="events" classIf="right, marginRight">
<showList id="newsList"> <!--classIf="eventList, 2columns">-->
<useListHeader/>

View File

@ -31,7 +31,17 @@
<setting id="setDesc">true</setting>
<setting id="descTab/setImage">true</setting>
<setting id="summaryTab/linkSpecialRoles">true</setting>
<setting id="summaryTab/setImage">true</setting>
<setting id="summaryTab/showHead">true</setting>
<setting id="summaryTab/showViceHead">true</setting>
<setting id="summaryTab/showSecretariat">true</setting>
<setting id="summaryTab/specialRolesContactData/head/show/email">true</setting>
<setting id="summaryTab/specialRolesContactData/vicehead/show/email">true</setting>
<setting id="summaryTab/specialRolesContactData/secretariat/show/email">true</setting>
<setting id="summaryTab/specialRolesContactData/secretariat/show/phone_office">true</setting>
<setting id="tabs/setImageCaption">true</setting>
<setting id="tabs/setImageMaxHeight"></setting>
<setting id="tabs/setImageMaxWidth"></setting>
@ -79,10 +89,18 @@
<setting id="subNavSeparator"></setting>
<setting id="listView/linkSpecialRoles">true</setting>
<setting id="listView/setLinkToDetails">false</setting>
<setting id="listView/setLeadText">true</setting>
<setting id="listView/setLeadTextLength">440</setting>
<setting id="listView/setMoreButton">true</setting>
<setting id="listView/showHead">true</setting>
<setting id="listView/showViceHead">true</setting>
<setting id="listView/showSecretariat">true</setting>
<setting id="listView/specialRolesContactData/head/show/email">true</setting>
<setting id="listView/specialRolesContactData/vicehead/show/email">true</setting>
<setting id="listView/specialRolesContactData/secretariat/show/email">true</setting>
<setting id="listView/specialRolesContactData/secretariat/show/phone_office">true</setting>
<setting id="linkView/setLinkToDetails">false</setting>
<setting id="linkView/setImageAndText">true</setting>

View File

@ -102,7 +102,7 @@
User-Agent: <xsl:value-of select="$user-agent"/><br />
Theme-Prefix: <xsl:value-of select="$theme-prefix"/><br />
Context-Prefix: <xsl:value-of select="$context-prefix"/><br />
Dispathcer-Prefix: <xsl:value-of select="$dispatcher-prefix"/><br />
Dispatcher-Prefix: <xsl:value-of select="$dispatcher-prefix"/><br />
html strict doctype
</xsl:if>

View File

@ -32,7 +32,17 @@
>
<xsl:template match="ppp:profile">
<xsl:variable name="showOwnerName">
<xsl:call-template name="mandalay:getSetting">
<xsl:with-param name="module" select="'PublicPersonalProfile'"/>
<xsl:with-param name="setting" select="'showOwnerName'"/>
<xsl:with-param name="default" select="'true'"/>
</xsl:call-template>
</xsl:variable>
<xsl:if test="$showOwnerName = 'true'">
<xsl:apply-templates select="ppp:ownerName"/>
</xsl:if>
<xsl:apply-templates select="ppp:profileImage"/>
</xsl:template>

View File

@ -50,5 +50,6 @@
<xsl:import href="types/SciPublications.xsl"/>
<xsl:import href="types/SimpleOrganization.xsl"/>
<xsl:import href="types/SiteProxy.xsl"/>
<xsl:import href="types/sci-common.xsl"/>
</xsl:stylesheet>

View File

@ -29,7 +29,7 @@
xmlns:mandalay="http://mandalay.quasiweb.de"
exclude-result-prefixes="xsl bebop cms nav"
version="1.0"
>
>
<!--
******************************************************
@ -129,7 +129,6 @@
</div>
</xsl:template>
<!-- DE Listenansicht -->
<!-- EN List view -->
<xsl:template name="CT_SciDepartment_List" match="nav:item[nav:attribute[@name='objectType'] = 'com.arsdigita.cms.contenttypes.SciDepartment']" mode="list_view">
@ -157,9 +156,42 @@
<xsl:with-param name="default" select="'false'"/>
</xsl:call-template>
</xsl:variable>
<xsl:variable name="linkSpecialRoles">
<xsl:call-template name="mandalay:getSetting">
<xsl:with-param name="module" select="'SciDepartment'"/>
<xsl:with-param name="setting" select="'listView/linkSpecialRoles'"/>
<xsl:with-param name="default" select="'true'"/>
</xsl:call-template>
</xsl:variable>
<xsl:variable name="showHead">
<xsl:call-template name="mandalay:getSetting">
<xsl:with-param name="module" select="'SciDepartment'"/>
<xsl:with-param name="setting" select="'listView/showHead'"/>
<xsl:with-param name="default" select="'true'"/>
</xsl:call-template>
</xsl:variable>
<xsl:variable name="showViceHead">
<xsl:call-template name="mandalay:getSetting">
<xsl:with-param name="module" select="'SciDepartment'"/>
<xsl:with-param name="setting" select="'listView/showViceHead'"/>
<xsl:with-param name="default" select="'true'"/>
</xsl:call-template>
</xsl:variable>
<xsl:variable name="showSecretariat">
<xsl:call-template name="mandalay:getSetting">
<xsl:with-param name="module" select="'SciDepartment'"/>
<xsl:with-param name="setting" select="'listView/showSecretariat'"/>
<xsl:with-param name="default" select="'true'"/>
</xsl:call-template>
</xsl:variable>
<xsl:choose>
<xsl:when test="nav:attribute[@name='title']">
<!-- Not a specialising list -->
<a class="CIname">
<xsl:attribute name="href"><xsl:value-of select="nav:path"/></xsl:attribute>
<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">
@ -175,6 +207,115 @@
<xsl:with-param name="mode">dynamic</xsl:with-param>
</xsl:call-template>
</a>
</xsl:when>
<xsl:otherwise>
<!-- Specialising list -->
<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="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="title"/>
</xsl:with-param>
<xsl:with-param name="mode">dynamic</xsl:with-param>
</xsl:call-template>
</a>
</xsl:otherwise>
</xsl:choose>
<xsl:if test="(($showHead = 'true') or ($showViceHead = 'true') or ($showSecretariat = 'true')) and ((count(./heads/head) &gt; 0) or (count(./viceheads/head) &gt; 0) or (count(./secretariats/secretariat) &gt; 0))">
<dl>
<xsl:if test="count(./heads/head) &gt; 0">
<dt>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciDepartment'"/>
<xsl:with-param name="id" select="'listView/headsHeading'"/>
</xsl:call-template>
</dt>
<dd>
<xsl:for-each select="./heads/head">
<xsl:call-template name="SciDepartmentSummaryTabSpecialRoles">
<xsl:with-param name="linkSpecialRoles" select="$linkSpecialRoles"/>
<xsl:with-param name="role" select="'head'"/>
</xsl:call-template>
</xsl:for-each>
</dd>
</xsl:if>
<xsl:if test="count(./viceheads/vicehead)">
<dt>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciDepartment'"/>
<xsl:with-param name="id" select="'listView/viceHeadsHeading'"/>
</xsl:call-template>
</dt>
<dd>
<xsl:for-each select="./viceheads/vicehead">
<xsl:call-template name="SciDepartmentSummaryTabSpecialRoles">
<xsl:with-param name="linkSpecialRoles" select="$linkSpecialRoles"/>
<xsl:with-param name="role" select="'vicehead'"/>
</xsl:call-template>
</xsl:for-each>
</dd>
</xsl:if>
<xsl:if test="count(./secretariats/secretariat)">
<dt>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciDepartment'"/>
<xsl:with-param name="id" select="'listView/secretariatHeading'"/>
</xsl:call-template>
</dt>
<dd>
<xsl:for-each select="./secretariats/secretariat">
<xsl:call-template name="SciDepartmentSummaryTabSpecialRoles">
<xsl:with-param name="linkSpecialRoles" select="$linkSpecialRoles"/>
<xsl:with-param name="role" select="'secretariat'"/>
</xsl:call-template>
</xsl:for-each>
</dd>
<dt>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciDepartment'"/>
<xsl:with-param name="id" select="'listView/emailHeading'"/>
</xsl:call-template>
</dt>
<dd>
<xsl:for-each select="./secretariats/secretariat">
<xsl:call-template name="SciDepartmentSummaryTabSpecialContact">
<xsl:with-param name="linkSpecialRoles" select="$linkSpecialRoles"/>
<xsl:with-param name="role" select="'email'"/>
</xsl:call-template>
</xsl:for-each>
</dd>
<dt>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciDepartment'"/>
<xsl:with-param name="id" select="'listView/phoneHeading'"/>
</xsl:call-template>
</dt>
<dd>
<xsl:for-each select="./secretariats/secretariat">
<xsl:call-template name="SciDepartmentSummaryTabSpecialContact">
<xsl:with-param name="linkSpecialRoles" select="$linkSpecialRoles"/>
<xsl:with-param name="role" select="'phone_office'"/>
</xsl:call-template>
</xsl:for-each>
</dd>
</xsl:if>
</dl>
</xsl:if>
<xsl:if test="nav:attribute[@name='lead'] and $setLeadText = 'true'">
<br />
<span class="intro">
@ -189,7 +330,45 @@
<xsl:if test="$setMoreButton = 'true'">
<span class="moreButton">
<a>
<xsl:attribute name="href"><xsl:value-of select="nav:path"/></xsl:attribute>
<xsl:attribute name="href">
<xsl:value-of select="nav:path"/>
</xsl:attribute>
<xsl:attribute name="title">
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciDepartment'"/>
<xsl:with-param name="id" select="'moreButtonTitle'"/>
</xsl:call-template>
</xsl:attribute>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciDepartment'"/>
<xsl:with-param name="id" select="'moreButton'"/>
</xsl:call-template>
</a>
</span>
</xsl:if>
</xsl:if>
</xsl:otherwise>
</xsl:choose>
</span>
</xsl:if>
<xsl:if test="./shortDescription and $setLeadText = 'true'">
<br />
<span class="intro">
<xsl:choose>
<xsl:when test="$setLeadTextLength = '0'">
<xsl:value-of disable-output-escaping="yes" select="./shortDescription" />
</xsl:when>
<xsl:otherwise>
<xsl:value-of disable-output-escaping="yes" select="substring(./shortDescription, 1, $setLeadTextLength)" />
<xsl:if test="string-length(nav:attribute[@name='lead']) > $setLeadTextLength">
<xsl:text>...</xsl:text>
<xsl:if test="$setMoreButton = 'true'">
<span class="moreButton">
<a>
<xsl:attribute name="href">
<xsl:value-of select="nav:path"/>
</xsl:attribute>
<xsl:attribute name="title">
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciDepartment'"/>
@ -275,7 +454,10 @@
<!-- EN -->
<xsl:if test="./targetItem/imageAttachments and $setImage = 'true'">
<a>
<xsl:attribute name="href"><xsl:text>/redirect/?oid=</xsl:text><xsl:value-of select="./targetItem/@oid"/></xsl:attribute>
<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">
@ -295,7 +477,10 @@
</xsl:if>
<xsl:if test="$setImageAndText = 'true' or not(./targetItem/imageAttachments) or $setImage = 'false'">
<a>
<xsl:attribute name="href"><xsl:text>/redirect/?oid=</xsl:text><xsl:value-of select="./targetItem/@oid"/></xsl:attribute>
<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">
@ -324,7 +509,10 @@
<xsl:if test="$setMoreButton = 'true'">
<span class="moreButton">
<a>
<xsl:attribute name="href"><xsl:text>/redirect/?oid=</xsl:text><xsl:value-of select="./targetItem/@oid"/></xsl:attribute>
<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:getStaticText">
<xsl:with-param name="module" select="'SciDepartment'"/>
@ -344,4 +532,112 @@
</xsl:if>
</xsl:if>
</xsl:template>
<xsl:template name="SciDepartmentImage"
match="cms:item[objectType='com.arsdigita.cms.contenttypes.SciDepartment']"
mode="image">
<!-- Nothing -->
</xsl:template>
<xsl:template name="SciDepartmentLead"
match="cms:item[objectType='com.arsdigita.cms.contenttypes.SciDepartment']"
mode="lead">
<!-- Nothing -->
</xsl:template>
<xsl:template name="SciDepartmentListViewSpecialRoles">
<xsl:param name="linkSpecialRoles" select="'true'" />
<xsl:param name="role" select="''"/>
<xsl:variable name="contactData">
<xsl:call-template name="mandalay:getSetting">
<xsl:with-param name="module" select="'SciDepartment'"/>
<xsl:with-param name="setting" select="'listView/specialRolesContactData'"/>
</xsl:call-template>
</xsl:variable>
<li class="sciMember">
<xsl:choose>
<xsl:when test="($linkSpecialRoles = 'true') and (./contacts/contactentries[keyId='homepage'])">
<a class="memberName">
<xsl:attribute name="href">
<xsl:value-of select="./contacts/contactentries[keyId='homepage']/value"/>
</xsl:attribute>
<xsl:if test="string-length(./titlePre) &gt; 0">
<xsl:value-of select="./titlePre"/>
<xsl:text> </xsl:text>
</xsl:if>
<xsl:if test="string-length(./titlepre) &gt; 0">
<xsl:value-of select="./titlepre"/>
<xsl:text> </xsl:text>
</xsl:if>
<xsl:if test="string-length(./givenname) &gt; 0">
<xsl:value-of select="./givenname"/>
<xsl:text> </xsl:text>
</xsl:if>
<xsl:if test="string-length(./givenname) &gt; 0">
<xsl:value-of select="./surname"/>
</xsl:if>
<xsl:if test="string-length(./titlePost) &gt; 0">
<xsl:text>, </xsl:text>
<xsl:value-of select="./titlePost"/>
</xsl:if>
<xsl:if test="string-length(./titlepost) &gt; 0">
<xsl:text>, </xsl:text>
<xsl:value-of select="./titlepost"/>
</xsl:if>
</a>
</xsl:when>
<xsl:otherwise>
<span class="sciMember">
<xsl:if test="string-length(./titlePre) &gt; 0">
<xsl:value-of select="./titlePre"/>
<xsl:text> </xsl:text>
</xsl:if>
<xsl:if test="string-length(./titlepre) &gt; 0">
<xsl:value-of select="./titlepre"/>
<xsl:text> </xsl:text>
</xsl:if>
<xsl:if test="string-length(./givenname) &gt; 0">
<xsl:value-of select="./givenname"/>
<xsl:text> </xsl:text>
</xsl:if>
<xsl:if test="string-length(./givenname) &gt; 0">
<xsl:value-of select="./surname"/>
</xsl:if>
<xsl:if test="string-length(./titlePost) &gt; 0">
<xsl:text>, </xsl:text>
<xsl:value-of select="./titlePost"/>
</xsl:if>
<xsl:if test="string-length(./titlepost) &gt; 0">
<xsl:text>, </xsl:text>
<xsl:value-of select="./titlepost"/>
</xsl:if>
</span>
</xsl:otherwise>
</xsl:choose>
<dl>
<xsl:for-each select="./contacts/contact[1]/contactentries">
<xsl:variable name="showData">
<xsl:call-template name="mandalay:getSetting">
<xsl:with-param name="module" select="'SciDepartment'"/>
<xsl:with-param name="setting" select="concat('listView/specialRolesContactData/', $role, '/show/', ./keyId)"/>
<xsl:with-param name="default" select="'false'"/>
</xsl:call-template>
</xsl:variable>
<xsl:if test="$showData = 'true'">
<dt>
<xsl:value-of select="./key"/>
</dt>
<dd>
<xsl:value-of select="./value"/>
</dd>
</xsl:if>
</xsl:for-each>
</dl>
</li>
</xsl:template>
</xsl:stylesheet>

View File

@ -29,7 +29,7 @@
xmlns:mandalay="http://mandalay.quasiweb.de"
exclude-result-prefixes="xsl bebop cms nav mandalay"
version="1.0"
>
>
<!--
******************************************************
@ -76,10 +76,31 @@
<xsl:with-param name="default" select="'false'"/>
</xsl:call-template>
</xsl:variable>
<xsl:variable name="linkHeads">
<xsl:variable name="linkSpecialRoles">
<xsl:call-template name="mandalay:getSetting">
<xsl:with-param name="module" select="'SciDepartment'"/>
<xsl:with-param name="setting" select="'summaryTab/linkHeads'"/>
<xsl:with-param name="setting" select="'summaryTab/linkSpecialRoles'"/>
<xsl:with-param name="default" select="'true'"/>
</xsl:call-template>
</xsl:variable>
<xsl:variable name="showHead">
<xsl:call-template name="mandalay:getSetting">
<xsl:with-param name="module" select="'SciDepartment'"/>
<xsl:with-param name="setting" select="'summaryTab/showHead'"/>
<xsl:with-param name="default" select="'true'"/>
</xsl:call-template>
</xsl:variable>
<xsl:variable name="showViceHead">
<xsl:call-template name="mandalay:getSetting">
<xsl:with-param name="module" select="'SciDepartment'"/>
<xsl:with-param name="setting" select="'summaryTab/showViceHead'"/>
<xsl:with-param name="default" select="'true'"/>
</xsl:call-template>
</xsl:variable>
<xsl:variable name="showSecretariat">
<xsl:call-template name="mandalay:getSetting">
<xsl:with-param name="module" select="'SciDepartment'"/>
<xsl:with-param name="setting" select="'summaryTab/showSecretariat'"/>
<xsl:with-param name="default" select="'true'"/>
</xsl:call-template>
</xsl:variable>
@ -96,7 +117,7 @@
</xsl:for-each>
</xsl:if>
<xsl:if test="$setShowHeading = 'true'">
<xsl:if test="$setShowHeading = 'true'">
<h2>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciDepartment'"/>
@ -116,76 +137,75 @@
<xsl:value-of disable-output-escaping="yes" select="$shortDesc"/>
</div>
<xsl:if test="(($showHead = 'true') or ($showViceHead = 'true') or ($showSecretariat = 'true')) and ((count(./heads/head) &gt; 0) or (count(./viceheads/head) &gt; 0) or (count(./secretariats/secretariat) &gt; 0))">
<dl>
<xsl:if test="count(./heads/head) &gt; 0">
<h3>
<dt>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciDepartment'"/>
<xsl:with-param name="id" select="'summaryTab/headsHeading'"/>
</xsl:call-template>
</h3>
</dt>
<dd>
<ul>
<xsl:for-each select="./heads/head">
<li class="sciMember">
<xsl:choose>
<xsl:when test="($linkHeads = 'true') and (./contacts/contactentries[keyId='homepage'])">
<a class="memberName">
<xsl:attribute name="href"><xsl:value-of select="./contacts/contactentries[keyId='homepage']/value"/></xsl:attribute>
<xsl:if test="string-length(./titlePre) &gt; 0">
<xsl:value-of select="./titlePre"/>
<xsl:text> </xsl:text>
</xsl:if>
<xsl:if test="string-length(./titlepre) &gt; 0">
<xsl:value-of select="./titlepre"/>
<xsl:text> </xsl:text>
</xsl:if>
<xsl:if test="string-length(./givenname) &gt; 0">
<xsl:value-of select="./givenname"/>
<xsl:text> </xsl:text>
</xsl:if>
<xsl:if test="string-length(./givenname) &gt; 0">
<xsl:value-of select="./surname"/>
</xsl:if>
<xsl:if test="string-length(./titlePost) &gt; 0">
<xsl:text>, </xsl:text>
<xsl:value-of select="./titlePost"/>
</xsl:if>
<xsl:if test="string-length(./titlepost) &gt; 0">
<xsl:text>, </xsl:text>
<xsl:value-of select="./titlepost"/>
</xsl:if>
</a>
</xsl:when>
<xsl:otherwise>
<span class="sciMember">
<xsl:if test="string-length(./titlePre) &gt; 0">
<xsl:value-of select="./titlePre"/>
<xsl:text> </xsl:text>
</xsl:if>
<xsl:if test="string-length(./titlepre) &gt; 0">
<xsl:value-of select="./titlepre"/>
<xsl:text> </xsl:text>
</xsl:if>
<xsl:if test="string-length(./givenname) &gt; 0">
<xsl:value-of select="./givenname"/>
<xsl:text> </xsl:text>
</xsl:if>
<xsl:if test="string-length(./givenname) &gt; 0">
<xsl:value-of select="./surname"/>
</xsl:if>
<xsl:if test="string-length(./titlePost) &gt; 0">
<xsl:text>, </xsl:text>
<xsl:value-of select="./titlePost"/>
</xsl:if>
<xsl:if test="string-length(./titlepost) &gt; 0">
<xsl:text>, </xsl:text>
<xsl:value-of select="./titlepost"/>
</xsl:if>
</span>
</xsl:otherwise>
</xsl:choose>
</li>
<xsl:call-template name="SciDepartmentSummaryTabSpecialRoles">
<xsl:with-param name="linkSpecialRoles" select="$linkSpecialRoles"/>
<xsl:with-param name="role" select="'head'"/>
</xsl:call-template>
</xsl:for-each>
</ul>
</dd>
</xsl:if>
<xsl:if test="count(./viceheads/vicehead)">
<dt>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciDepartment'"/>
<xsl:with-param name="id" select="'summaryTab/viceHeadsHeading'"/>
</xsl:call-template>
</dt>
<dd>
<ul>
<xsl:for-each select="./viceheads/vicehead">
<xsl:call-template name="SciDepartmentSummaryTabSpecialRoles">
<xsl:with-param name="linkSpecialRoles" select="$linkSpecialRoles"/>
<xsl:with-param name="role" select="'vicehead'"/>
</xsl:call-template>
</xsl:for-each>
</ul>
</dd>
</xsl:if>
<xsl:if test="count(./secretariats/secretariat)">
<dt>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciDepartment'"/>
<xsl:with-param name="id" select="'summaryTab/secretariatHeading'"/>
</xsl:call-template>
</dt>
<dd>
<ul>
<xsl:for-each select="./secretariats/secretariat">
<xsl:call-template name="SciDepartmentSummaryTabSpecialRoles">
<xsl:with-param name="linkSpecialRoles" select="$linkSpecialRoles"/>
<xsl:with-param name="role" select="'secretariat'"/>
</xsl:call-template>
</xsl:for-each>
</ul>
</dd>
</xsl:if>
</dl>
</xsl:if>
<xsl:if test="count(./viceheads/vicehead) &gt; 0">
<h3>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciDepartment'"/>
<xsl:with-param name="id" select="'summaryTab/viceheadsHeading'"/>
</xsl:call-template>
</h3>
</xsl:if>
<xsl:if test="count(./subDepartments/subDepartment) &gt; 0">
@ -234,4 +254,88 @@
</xsl:template>
<xsl:template name="SciDepartmentSummaryTabSpecialRoles">
<xsl:param name="linkSpecialRoles" select="'true'" />
<xsl:param name="role" select="''"/>
<xsl:choose>
<xsl:when test="($linkSpecialRoles = 'true') and (./contacts/contact/contactentries[keyId='homepage'])">
<a class="sciMember">
<xsl:attribute name="href">
<xsl:value-of select="./contacts/contact/contactentries[keyId='homepage']/value"/>
</xsl:attribute>
<xsl:if test="string-length(./titlepre) &gt; 0">
<xsl:value-of select="./titlepre"/>
<xsl:text> </xsl:text>
</xsl:if>
<xsl:if test="string-length(./givenname) &gt; 0">
<xsl:value-of select="./givenname"/>
<xsl:text> </xsl:text>
</xsl:if>
<xsl:if test="string-length(./givenname) &gt; 0">
<xsl:value-of select="./surname"/>
</xsl:if>
<xsl:if test="string-length(./titlepost) &gt; 0">
<xsl:text>, </xsl:text>
<xsl:value-of select="./titlepost"/>
</xsl:if>
</a>
</xsl:when>
<xsl:otherwise>
<span class="sciMember">
<xsl:if test="string-length(./titlepre) &gt; 0">
<xsl:value-of select="./titlepre"/>
<xsl:text> </xsl:text>
</xsl:if>
<xsl:if test="string-length(./givenname) &gt; 0">
<xsl:value-of select="./givenname"/>
<xsl:text> </xsl:text>
</xsl:if>
<xsl:if test="string-length(./givenname) &gt; 0">
<xsl:value-of select="./surname"/>
</xsl:if>
<xsl:if test="string-length(./titlepost) &gt; 0">
<xsl:text>, </xsl:text>
<xsl:value-of select="./titlepost"/>
</xsl:if>
</span>
</xsl:otherwise>
</xsl:choose>
<xsl:if test="position() != last()">
<xsl:text>, </xsl:text>
</xsl:if>
</xsl:template>
<xsl:template name="SciDepartmentSummaryTabSpecialContact">
<xsl:param name="linkSpecialRoles" select="'true'" />
<xsl:param name="role" select="''"/>
<xsl:choose>
<xsl:when test="($linkSpecialRoles = 'true') and (./contacts/contact/contactentries[keyId=$role]) and $role='email'">
<a class="contact">
<xsl:if test="string-length(./contacts/contact/contactentries[keyId=$role]/value) &gt; 0">
<xsl:attribute name="href">
<xsl:value-of select="concat('mailto:', ./contacts/contact/contactentries[keyId=$role]/value)"/>
</xsl:attribute>
<xsl:value-of select="./contacts/contact/contactentries[keyId=$role]/value"/>
</xsl:if>
</a>
</xsl:when>
<xsl:otherwise>
<span class="contact">
<xsl:if test="string-length(./contacts/contact/contactentries[keyId=$role]/value) &gt; 0">
<xsl:value-of select="./contacts/contact/contactentries[keyId=$role]/value"/>
</xsl:if>
</span>
</xsl:otherwise>
</xsl:choose>
<xsl:if test="position() != last()">
<xsl:text>, </xsl:text>
</xsl:if>
</xsl:template>
</xsl:stylesheet>

View File

@ -289,7 +289,7 @@
</xsl:for-each>
</xsl:if>
<xsl:if test="(count(./funding) &gt; 0) and (count(./sponsor) &gt; 0)">
<xsl:if test="(count(./funding) &gt; 0) or (count(./sponsors/sponsor) &gt; 0)">
<h3>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciProject'"/>
@ -297,18 +297,24 @@
</xsl:call-template>
</h3>
<xsl:if test="count(./sponsor) &gt; 0">
<dl>
<dt>
<xsl:if test="count(./sponsors/sponsor) &gt; 0">
<xsl:variable name="sponsorsText">
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciProject'"/>
<xsl:with-param name="id" select="'summaryTab/sponsor'"/>
<xsl:with-param name="id" select="'summaryTab/sponsors'"/>
</xsl:call-template>
</dt>
<dd>
<xsl:value-of select="./sponsor"/>
</dd>
</dl>
</xsl:variable>
<xsl:if test="string-length($sponsorsText) &gt; 0">
<h4><xsl:value-of select="$sponsorsText"/></h4>
</xsl:if>
<ul>
<xsl:for-each select="sponsors/sponsor">
<xsl:sort/>
<li>
<xsl:value-of select="."/>
</li>
</xsl:for-each>
</ul>
</xsl:if>
<xsl:value-of select="./funding" disable-output-escaping="yes"/>
@ -399,12 +405,12 @@
</xsl:if>
<xsl:if test="count(./involvedOrganizations) &gt; 0">
<h4>
<h3>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciProject'"/>
<xsl:with-param name="id" select="'summaryTab/involvedOrganizatinsHeading'"/>
</xsl:call-template>
</h4>
</h3>
<xsl:for-each select="./involvedOrganizations/organization">
<xsl:value-of select="./title"/>
<xsl:if test="position() != last()">

View File

@ -0,0 +1,34 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE stylesheet [<!ENTITY nbsp '<xsl:text disable-output-escaping="yes">&amp;</xsl:text>nbsp;'>]>
<!--
Copyright: 2011 Jens Pelzetter
This file is part of Mandalay.
Mandalay is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or
(at your option) any later version.
Mandalay 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 General Public License for more details.
You should have received a copy of the GNU General Public License
along with Mandalay. If not, see <http://www.gnu.org/licenses/>.
-->
<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:mandalay="http://mandalay.quasiweb.de"
xmlns:dabin="http://dabin.quasiweb.de"
exclude-result-prefixes="xsl bebop cms mandalay dabin"
version="1.0">
<xsl:import href="sci-common/GenericOrgaUnitTextTab.xsl"/>
</xsl:stylesheet>

View File

@ -0,0 +1,62 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE stylesheet [<!ENTITY nbsp '&#160;'>]>
<!--
Copyright 2011, Jens Pelzetter
This file is part of Mandalay.
Mandalay is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or
(at your option) any later version.
Mandalay 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 General Public License for more details.
You should have received a copy of the GNU General Public License
along with Mandalay. If not, see <http://www.gnu.org/licenses/>.
-->
<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:bebop="http://www.arsdigita.com/bebop/1.0"
xmlns:nav="http://ccm.redhat.com/navigation"
xmlns:cms="http://www.arsdigita.com/cms/1.0"
xmlns:mandalay="http://mandalay.quasiweb.de"
exclude-result-prefixes="xsl bebop cms nav mandalay"
version="1.0"
>
<!--
************************************************
** Template for the DescTab for a SciProject **
************************************************
-->
<xsl:template name="CT_SciDepartment_graphics"
match="text"
mode="tabs">
<div class="activeTab">
<h2>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'GenericOrganizationalUnit'"/>
<xsl:with-param name="id" select="concat('textTab/',./@key)"/>
</xsl:call-template>
</h2>
<div class="orgaUnitText">
<xsl:value-of disable-output-escaping="yes" select="."/>
</div>
<div class="endFloat"/>
</div>
</xsl:template>
</xsl:stylesheet>