Adjusted output of the misc property of publications to show HTML

git-svn-id: https://svn.libreccm.org/ccm/trunk@2596 8810af33-2d31-482b-a856-94f89814c4df
master
jensp 2014-04-02 07:41:40 +00:00
parent f6a92c2f98
commit 1ce07453f0
17 changed files with 2050 additions and 2020 deletions

View File

@ -103,8 +103,8 @@
</xsl:template>
<xsl:template name="CT_ArticleInCollectedVolume_graphics"
match="cms:item[objectType='com.arsdigita.cms.contenttypes.ArticleInCollectedVolume']"
mode="detailed_view">
match="cms:item[objectType='com.arsdigita.cms.contenttypes.ArticleInCollectedVolume']"
mode="detailed_view">
<xsl:variable name="formatDefFile">
<xsl:call-template name="mandalay:getSetting">
@ -446,7 +446,7 @@
<xsl:with-param name="id" select="'articleInCollectedVolume/misc'" />
</xsl:call-template>
</h3>
<xsl:value-of select="./misc" />
<xsl:value-of disable-output-escaping="yes" select="./misc" />
</div>
</xsl:if>
<!-- <xsl:call-template name="scipublicationsDownload"/> -->
@ -460,7 +460,7 @@
-->
<xsl:template match="publication[objectType='com.arsdigita.cms.contenttypes.ArticleInCollectedVolume']"
mode="list_view">
mode="list_view">
<xsl:param name="useRelativeUrl" select="'false'" />
<xsl:call-template name="CT_ArticleInCollectedVolume_List">
<xsl:with-param name="useRelativeUrl" select="$useRelativeUrl" />
@ -468,15 +468,15 @@
</xsl:template>
<xsl:template match="publications[objectType='com.arsdigita.cms.contenttypes.ArticleInCollectedVolume']"
mode="list_view">
mode="list_view">
<xsl:param name="useRelativeUrl" select="'false'" />
<xsl:call-template name="CT_ArticleInCollectedVolume_List">
<xsl:with-param name="useRelativeUrl" select="$useRelativeUrl" />
</xsl:call-template>
</xsl:template>
<xsl:template name="CT_ArticleInCollectedVolume_List"
match="nav:item[nav:attribute[@name='objectType'] = 'com.arsdigita.cms.contenttypes.ArticleInCollectedVolume']"
mode="list_view">
match="nav:item[nav:attribute[@name='objectType'] = 'com.arsdigita.cms.contenttypes.ArticleInCollectedVolume']"
mode="list_view">
<xsl:param name="useRelativeUrl" select="'false'" />
<!-- EN Get all settings needed -->
<xsl:variable name="formatDefFile">
@ -604,8 +604,8 @@
<!-- Link view -->
<xsl:template name="CT_ArticleInCollectedVolume_Link"
match="*/cms:item/links[targetItem/objectType = 'com.arsdigita.cms.contenttypes.ArticleInCollectedVolume']"
mode="link_view">
match="*/cms:item/links[targetItem/objectType = 'com.arsdigita.cms.contenttypes.ArticleInCollectedVolume']"
mode="link_view">
<!-- Simply call template for Publications, because there is not difference for list view between these
two types -->
<xsl:call-template name="CT_Publication_Link" />

View File

@ -428,7 +428,7 @@
<xsl:with-param name="id" select="'articleInJournal/misc'"/>
</xsl:call-template>
</h3>
<xsl:value-of select="./misc"/>
<xsl:value-of disable-output-escaping="yes" select="./misc"/>
</div>
</xsl:if>

View File

@ -477,7 +477,7 @@
<xsl:with-param name="id" select="'collectedVolume/misc'" />
</xsl:call-template>
</h3>
<xsl:value-of select="./misc" />
<xsl:value-of disable-output-escaping="yes" select="./misc" />
</div>
</xsl:if>
<xsl:if test="($setArticles = 'true') and (count(./articles/article) &gt; 0)">

View File

@ -396,7 +396,7 @@
<xsl:with-param name="id" select="'expertise/misc'" />
</xsl:call-template>
</h3>
<xsl:value-of select="./misc" />
<xsl:value-of disable-output-escaping="yes" select="./misc" />
</div>
</xsl:if>
<!-- <xsl:call-template name="scipublicationsDownload"/> -->

View File

@ -242,7 +242,7 @@
</dd>
</xsl:if>
<xsl:if test="($setYearFirstPublished = 'true') and (string-length(./yearFirstPublished) &gt; 0)">
<xsl:if test="($setYearFirstPublished = 'true') and (string-length(./yearFirstPublished) &gt; 0)">
<dt>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'"/>
@ -276,7 +276,8 @@
</xsl:otherwise>
</xsl:choose>
</dd>
</xsl:if> <xsl:if test="($setOrganization = 'true') and (string-length(../organization) &gt; 0)">
</xsl:if>
<xsl:if test="($setOrganization = 'true') and (string-length(../organization) &gt; 0)">
<dt>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'" />
@ -422,7 +423,7 @@
<xsl:with-param name="id" select="'greyLiterature/misc'" />
</xsl:call-template>
</h3>
<xsl:value-of select="./misc" />
<xsl:value-of disable-output-escaping="yes" select="./misc" />
</div>
</xsl:if>
<!-- <xsl:call-template name="scipublicationsDownload"/> -->

View File

@ -352,7 +352,7 @@
<xsl:with-param name="id" select="'inProceedings/misc'" />
</xsl:call-template>
</h3>
<xsl:value-of select="./misc" />
<xsl:value-of disable-output-escaping="yes" select="./misc" />
</div>
</xsl:if>
<!-- <xsl:call-template name="scipublicationsDownload"/> -->

View File

@ -441,7 +441,7 @@
<xsl:with-param name="id" select="'internetArticle/misc'"/>
</xsl:call-template>
</h3>
<xsl:value-of select="./misc"/>
<xsl:value-of disable-output-escaping="yes" select="./misc"/>
</div>
</xsl:if>
@ -457,7 +457,7 @@
=========
-->
<xsl:template match="publications[objectType='com.arsdigita.cms.contenttypes.InternetArticle']"
mode="list_view">
mode="list_view">
<xsl:param name="useRelativeUrl" select="'false'"/>
<xsl:call-template name="CT_InternetArticle_List">
<xsl:with-param name="useRelativeUrl" select="$useRelativeUrl"/>
@ -465,7 +465,7 @@
</xsl:template>
<xsl:template match="publication[objectType='com.arsdigita.cms.contenttypes.InternetArticle']"
mode="list_view">
mode="list_view">
<xsl:param name="useRelativeUrl" select="'false'"/>
<xsl:call-template name="CT_InternetArticle_List">
<xsl:with-param name="useRelativeUrl" select="$useRelativeUrl"/>

View File

@ -22,281 +22,281 @@
-->
<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"
version="1.0"
>
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"
version="1.0"
>
<!--
**************************************************************************
** Templates for an Journal publication **
**************************************************************************
-->
<!--
**************************************************************************
** Templates for an Journal publication **
**************************************************************************
-->
<!--
Detail view
===========
-->
<!-- DE Leadtext -->
<!-- EN lead text view -->
<xsl:template match="cms:item[objectType='com.arsdigita.cms.contenttypes.Journal']" mode="lead">
<xsl:variable name="setLeadText">
<xsl:call-template name="mandalay:getSetting">
<xsl:with-param name="module" select="'SciPublications'"/>
<xsl:with-param name="setting" select="'journal/setLeadText'"/>
<xsl:with-param name="default" select="'true'"/>
</xsl:call-template>
</xsl:variable>
<!--
Detail view
===========
-->
<!-- DE Leadtext -->
<!-- EN lead text view -->
<xsl:template match="cms:item[objectType='com.arsdigita.cms.contenttypes.Journal']" mode="lead">
<xsl:variable name="setLeadText">
<xsl:call-template name="mandalay:getSetting">
<xsl:with-param name="module" select="'SciPublications'"/>
<xsl:with-param name="setting" select="'journal/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.Journal']" mode="image">
<!-- DE Bild -->
<!-- EN image -->
<xsl:template match="cms:item[objectType='com.arsdigita.cms.contenttypes.Journal']" 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="'SciPublications'"/>
<xsl:with-param name="setting" select="'journal/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="'SciPublications'"/>
<xsl:with-param name="setting" select="'journal/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="'SciPublications'"/>
<xsl:with-param name="setting" select="'journal/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="'SciPublications'"/>
<xsl:with-param name="setting" select="'journal/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="'SciPublications'"/>
<xsl:with-param name="setting" select="'journal/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="'SciPublications'"/>
<xsl:with-param name="setting" select="'journal/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="'SciPublications'"/>
<xsl:with-param name="setting" select="'journal/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="'SciPublications'"/>
<xsl:with-param name="setting" select="'journal/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>
<xsl:template name="CT_CollectedVolume_graphics"
match="cms:item[objectType='com.arsdigita.cms.contenttypes.Journal']"
mode="detailed_view">
<xsl:template name="CT_CollectedVolume_graphics"
match="cms:item[objectType='com.arsdigita.cms.contenttypes.Journal']"
mode="detailed_view">
<xsl:variable name="setArticles">
<xsl:call-template name="mandalay:getSetting">
<xsl:with-param name="module" select="'SciPublications'"/>
<xsl:with-param name="setting" select="'journal/setArticles'"/>
<xsl:with-param name="default" select="'true'"/>
</xsl:call-template>
</xsl:variable>
<xsl:variable name="setSymbol">
<xsl:call-template name="mandalay:getSetting">
<xsl:with-param name="module" select="'SciPublications'"/>
<xsl:with-param name="setting" select="'journal/setSymbol'"/>
<xsl:with-param name="default" select="'false'"/>
</xsl:call-template>
</xsl:variable>
<xsl:variable name="setIssn">
<xsl:call-template name="mandalay:getSetting">
<xsl:with-param name="module" select="'SciPublications'"/>
<xsl:with-param name="setting" select="'journal/setIssn'"/>
<xsl:with-param name="default" select="'false'"/>
</xsl:call-template>
</xsl:variable>
<xsl:variable name="setPeriodOfPublication">
<xsl:call-template name="mandalay:getSetting">
<xsl:with-param name="module" select="'SciPublications'"/>
<xsl:with-param name="setting" select="'journal/setIssn'"/>
<xsl:with-param name="default" select="'true'"/>
</xsl:call-template>
</xsl:variable>
<xsl:variable name="setAbstract">
<xsl:call-template name="mandalay:getSetting">
<xsl:with-param name="module" select="'SciPublications'"/>
<xsl:with-param name="setting" select="'journal/setAbstract'"/>
<xsl:with-param name="default" select="'true'"/>
</xsl:call-template>
</xsl:variable>
<xsl:variable name="setMisc">
<xsl:call-template name="mandalay:getSetting">
<xsl:with-param name="module" select="'SciPublications'"/>
<xsl:with-param name="setting" select="'journal/setMisc'"/>
<xsl:with-param name="default" select="'true'"/>
</xsl:call-template>
</xsl:variable>
<xsl:variable name="setArticles">
<xsl:call-template name="mandalay:getSetting">
<xsl:with-param name="module" select="'SciPublications'"/>
<xsl:with-param name="setting" select="'journal/setArticles'"/>
<xsl:with-param name="default" select="'true'"/>
</xsl:call-template>
</xsl:variable>
<xsl:variable name="setSymbol">
<xsl:call-template name="mandalay:getSetting">
<xsl:with-param name="module" select="'SciPublications'"/>
<xsl:with-param name="setting" select="'journal/setSymbol'"/>
<xsl:with-param name="default" select="'false'"/>
</xsl:call-template>
</xsl:variable>
<xsl:variable name="setIssn">
<xsl:call-template name="mandalay:getSetting">
<xsl:with-param name="module" select="'SciPublications'"/>
<xsl:with-param name="setting" select="'journal/setIssn'"/>
<xsl:with-param name="default" select="'false'"/>
</xsl:call-template>
</xsl:variable>
<xsl:variable name="setPeriodOfPublication">
<xsl:call-template name="mandalay:getSetting">
<xsl:with-param name="module" select="'SciPublications'"/>
<xsl:with-param name="setting" select="'journal/setIssn'"/>
<xsl:with-param name="default" select="'true'"/>
</xsl:call-template>
</xsl:variable>
<xsl:variable name="setAbstract">
<xsl:call-template name="mandalay:getSetting">
<xsl:with-param name="module" select="'SciPublications'"/>
<xsl:with-param name="setting" select="'journal/setAbstract'"/>
<xsl:with-param name="default" select="'true'"/>
</xsl:call-template>
</xsl:variable>
<xsl:variable name="setMisc">
<xsl:call-template name="mandalay:getSetting">
<xsl:with-param name="module" select="'SciPublications'"/>
<xsl:with-param name="setting" select="'journal/setMisc'"/>
<xsl:with-param name="default" select="'true'"/>
</xsl:call-template>
</xsl:variable>
<div class="mainBody publication publicationDetails publicationJournalDetails">
<div class="mainBody publication publicationDetails publicationJournalDetails">
<dl>
<xsl:if test="($setSymbol = 'true') and (string-length(./symbol) &gt; 0)">
<dt>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'"/>
<xsl:with-param name="id" select="'journal/symbol'"/>
</xsl:call-template>
</dt>
<dd>
<xsl:value-of select="./symbol"/>
</dd>
</xsl:if>
<xsl:if test="($setIssn = 'true') and (string-length(./issn) &gt; 0)">
<dt>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'"/>
<xsl:with-param name="id" select="'journal/issn'"/>
</xsl:call-template>
</dt>
<dd>
<xsl:value-of select="./issn"/>
</dd>
</xsl:if>
<dl>
<xsl:if test="($setSymbol = 'true') and (string-length(./symbol) &gt; 0)">
<dt>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'"/>
<xsl:with-param name="id" select="'journal/symbol'"/>
</xsl:call-template>
</dt>
<dd>
<xsl:value-of select="./symbol"/>
</dd>
</xsl:if>
<xsl:if test="($setIssn = 'true') and (string-length(./issn) &gt; 0)">
<dt>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'"/>
<xsl:with-param name="id" select="'journal/issn'"/>
</xsl:call-template>
</dt>
<dd>
<xsl:value-of select="./issn"/>
</dd>
</xsl:if>
<xsl:if test="($setPeriodOfPublication = 'true') and (string-length(./firstYear) &gt; 0)">
<dt>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'"/>
<xsl:with-param name="id" select="'journal/periodOfPublication'"/>
</xsl:call-template>
</dt>
<dd>
<xsl:value-of select="./firstYear"/>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'"/>
<xsl:with-param name="id" select="'journal/periodOfPublicationYearsSeparator'"/>
</xsl:call-template>
<xsl:if test="string-length(./lastYear) &gt; 0">
<xsl:value-of select="./lastYear"/>
</xsl:if>
</dd>
</xsl:if>
<xsl:if test="($setPeriodOfPublication = 'true') and (string-length(./firstYear) &gt; 0)">
<dt>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'"/>
<xsl:with-param name="id" select="'journal/periodOfPublication'"/>
</xsl:call-template>
</dt>
<dd>
<xsl:value-of select="./firstYear"/>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'"/>
<xsl:with-param name="id" select="'journal/periodOfPublicationYearsSeparator'"/>
</xsl:call-template>
<xsl:if test="string-length(./lastYear) &gt; 0">
<xsl:value-of select="./lastYear"/>
</xsl:if>
</dd>
</xsl:if>
</dl>
</dl>
<xsl:if test="($setAbstract = 'true') and (string-length(./abstract) &gt; 0)">
<div class="publicationAbstract">
<h3>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'"/>
<xsl:with-param name="id" select="'journal/abstract'"/>
</xsl:call-template>
</h3>
<div class="abstract">
<xsl:value-of disable-output-escaping="yes" select="./abstract"/>
</div>
</div>
</xsl:if>
<xsl:if test="($setAbstract = 'true') and (string-length(./abstract) &gt; 0)">
<div class="publicationAbstract">
<h3>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'"/>
<xsl:with-param name="id" select="'journal/abstract'"/>
</xsl:call-template>
</h3>
<div class="abstract">
<xsl:value-of disable-output-escaping="yes" select="./abstract"/>
</div>
</div>
</xsl:if>
<xsl:if test="($setMisc = 'true') and (string-length(normalize-space(./misc)) &gt; 0)">
<div class="publicationMisc">
<h3>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'"/>
<xsl:with-param name="id" select="'journal/misc'"/>
</xsl:call-template>
</h3>
<xsl:value-of select="./misc"/>
</div>
</xsl:if>
<xsl:if test="($setMisc = 'true') and (string-length(normalize-space(./misc)) &gt; 0)">
<div class="publicationMisc">
<h3>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'"/>
<xsl:with-param name="id" select="'journal/misc'"/>
</xsl:call-template>
</h3>
<xsl:value-of select="./misc"/>
</div>
</xsl:if>
<xsl:if test="($setArticles = 'true') and (count(./articles/article) &gt; 0)">
<h3>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'"/>
<xsl:with-param name="id" select="'journal/articles'"/>
</xsl:call-template>
</h3>
<ul class="articlesList">
<xsl:for-each select="./articles/article">
<xsl:sort select="./yearOfPublication" data-type="number" order="descending"/>
<li>
<xsl:call-template name="CT_ArticleInJournal_List"/>
</li>
</xsl:for-each>
</ul>
</xsl:if>
</div>
<xsl:if test="($setArticles = 'true') and (count(./articles/article) &gt; 0)">
<h3>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'"/>
<xsl:with-param name="id" select="'journal/articles'"/>
</xsl:call-template>
</h3>
<ul class="articlesList">
<xsl:for-each select="./articles/article">
<xsl:sort select="./yearOfPublication" data-type="number" order="descending"/>
<li>
<xsl:call-template name="CT_ArticleInJournal_List"/>
</li>
</xsl:for-each>
</ul>
</xsl:if>
</div>
</xsl:template>
</xsl:template>
<!--
List view
=========
-->
<xsl:template match="publications[objectType='com.arsdigita.cms.contenttypes.Journal']"
mode="list_view">
<xsl:param name="useRelativeUrl" select="'false'"/>
<xsl:call-template name="CT_Journal_List">
<xsl:with-param name="useRelativeUrl" select="$useRelativeUrl"/>
</xsl:call-template>
</xsl:template>
<!--
List view
=========
-->
<xsl:template match="publications[objectType='com.arsdigita.cms.contenttypes.Journal']"
mode="list_view">
<xsl:param name="useRelativeUrl" select="'false'"/>
<xsl:call-template name="CT_Journal_List">
<xsl:with-param name="useRelativeUrl" select="$useRelativeUrl"/>
</xsl:call-template>
</xsl:template>
<xsl:template match="publication[objectType='com.arsdigita.cms.contenttypes.Journal']"
mode="list_view">
<xsl:param name="useRelativeUrl" select="'false'"/>
<xsl:call-template name="CT_Journal_List">
<xsl:with-param name="useRelativeUrl" select="$useRelativeUrl"/>
</xsl:call-template>
</xsl:template>
<xsl:template match="publication[objectType='com.arsdigita.cms.contenttypes.Journal']"
mode="list_view">
<xsl:param name="useRelativeUrl" select="'false'"/>
<xsl:call-template name="CT_Journal_List">
<xsl:with-param name="useRelativeUrl" select="$useRelativeUrl"/>
</xsl:call-template>
</xsl:template>
<xsl:template name="CT_Journal_List"
match="nav:item[nav:attribute[@name='objectType'] ='com.arsdigita.cms.contenttypes.Journal']"
mode="list_view">
<xsl:param name="useRelativeUrl" select="'false'"/>
<xsl:variable name="formatDefFile">
<xsl:call-template name="mandalay:getSetting">
<xsl:with-param name="module" select="'SciPublications'"/>
<xsl:with-param name="setting" select="'formatDefFile'"/>
<xsl:with-param name="default" select="'SciPublicationsDefaultFormat.xml'"/>
</xsl:call-template>
</xsl:variable>
<xsl:template name="CT_Journal_List"
match="nav:item[nav:attribute[@name='objectType'] ='com.arsdigita.cms.contenttypes.Journal']"
mode="list_view">
<xsl:param name="useRelativeUrl" select="'false'"/>
<xsl:variable name="formatDefFile">
<xsl:call-template name="mandalay:getSetting">
<xsl:with-param name="module" select="'SciPublications'"/>
<xsl:with-param name="setting" select="'formatDefFile'"/>
<xsl:with-param name="default" select="'SciPublicationsDefaultFormat.xml'"/>
</xsl:call-template>
</xsl:variable>
<!-- Call template for journal format -->
<xsl:apply-templates select="document(concat($theme-prefix, '/settings/', $formatDefFile))/bibrefFormat/bibrefJournalFormat">
<xsl:with-param name="issn" select="./issn"/>
<xsl:with-param name="misc" select="./misc"/>
<xsl:with-param name="reviewed" select="./reviewed"/>
<xsl:with-param name="title" select="./title"/>
<xsl:with-param name="oid" select="./@oid"/>
<xsl:with-param name="useRelativeUrl" select="$useRelativeUrl"/>
</xsl:apply-templates>
<!-- Call template for journal format -->
<xsl:apply-templates select="document(concat($theme-prefix, '/settings/', $formatDefFile))/bibrefFormat/bibrefJournalFormat">
<xsl:with-param name="issn" select="./issn"/>
<xsl:with-param name="misc" select="./misc"/>
<xsl:with-param name="reviewed" select="./reviewed"/>
<xsl:with-param name="title" select="./title"/>
<xsl:with-param name="oid" select="./@oid"/>
<xsl:with-param name="useRelativeUrl" select="$useRelativeUrl"/>
</xsl:apply-templates>
</xsl:template>
</xsl:template>
<!-- Link view -->
<xsl:template
name="CT_Journal_Link"
match="*/cms:item/links[targetItem/objectType = 'com.arsdigita.cms.contenttypes.Journal']"
mode="link_view">
<!-- Simply call template for Publications , because there is
no difference for list view between these
two types -->
<xsl:call-template name="CT_Publication_Link"/>
</xsl:template>
<!-- Link view -->
<xsl:template
name="CT_Journal_Link"
match="*/cms:item/links[targetItem/objectType = 'com.arsdigita.cms.contenttypes.Journal']"
mode="link_view">
<!-- Simply call template for Publications , because there is
no difference for list view between these
two types -->
<xsl:call-template name="CT_Publication_Link"/>
</xsl:template>
</xsl:stylesheet>

View File

@ -461,7 +461,7 @@
<xsl:with-param name="id" select="'monograph/misc'" />
</xsl:call-template>
</h3>
<xsl:value-of select="./misc" />
<xsl:value-of disable-output-escaping="yes" select="./misc" />
</div>
</xsl:if>

View File

@ -520,7 +520,7 @@
<xsl:with-param name="id" select="'proceedings/misc'" />
</xsl:call-template>
</h3>
<xsl:value-of select="./misc" />
<xsl:value-of disable-output-escaping="yes" select="./misc" />
</div>
</xsl:if>
<xsl:if test="($setPapers = 'true') and (count(./papers/paper) &gt; 0)">

View File

@ -382,10 +382,10 @@
<h3>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'"/>
<xsl:with-param name="id" select="'researchReport/misc'"/>
<xsl:with-param name="id" select="'researchReport/misc'"/>
</xsl:call-template>
</h3>
<xsl:value-of select="./misc"/>
<xsl:value-of disable-output-escaping="yes" select="./misc"/>
</div>
</xsl:if>

View File

@ -104,8 +104,8 @@
</xsl:template>
<xsl:template name="CT_Review_graphics"
match="cms:item[objectType='com.arsdigita.cms.contenttypes.Review']"
mode="detailed_view">
match="cms:item[objectType='com.arsdigita.cms.contenttypes.Review']"
mode="detailed_view">
<xsl:variable name="setAbstract">
<xsl:call-template name="mandalay:getSetting">
@ -375,10 +375,10 @@
<h3>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'"/>
<xsl:with-param name="id" select="'review/misc'"/>
<xsl:with-param name="id" select="'review/misc'"/>
</xsl:call-template>
</h3>
<xsl:value-of select="./misc"/>
<xsl:value-of disable-output-escaping="yes" select="./misc"/>
</div>
</xsl:if>
@ -394,7 +394,7 @@
=========
-->
<xsl:template match="publications[objectType='com.arsdigita.cms.contenttypes.Review']"
mode="list_view">
mode="list_view">
<xsl:param name="useRelativeUrl" select="'false'"/>
<xsl:call-template name="CT_Review_List">
<xsl:with-param name="useRelativeUrl" select="$useRelativeUrl"/>
@ -402,7 +402,7 @@
</xsl:template>
<xsl:template match="publication[objectType='com.arsdigita.cms.contenttypes.Review']"
mode="list_view">
mode="list_view">
<xsl:param name="useRelativeUrl" select="'false'"/>
<xsl:call-template name="CT_Review_List">
<xsl:with-param name="useRelativeUrl" select="$useRelativeUrl"/>

View File

@ -21,358 +21,371 @@
-->
<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"
version="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">
<!-- DE Vollansicht -->
<!-- EN Detailed view -->
<!-- DE Leadtext -->
<!-- EN lead text view -->
<xsl:template match="cms:item[objectType='com.arsdigita.cms.contenttypes.SciAuthor']" mode="lead">
<xsl:variable name="setLeadText">
<xsl:call-template name="mandalay:getSetting">
<xsl:with-param name="module" select="'SciPublications'"/>
<xsl:with-param name="setting" select="'sciAuthor/setLeadText'"/>
<xsl:with-param name="default" select="'true'"/>
</xsl:call-template>
</xsl:variable>
<!-- DE Vollansicht -->
<!-- EN Detailed view -->
<!-- DE Leadtext -->
<!-- EN lead text view -->
<xsl:template match="cms:item[objectType='com.arsdigita.cms.contenttypes.SciAuthor']" mode="lead">
<xsl:variable name="setLeadText">
<xsl:call-template name="mandalay:getSetting">
<xsl:with-param name="module" select="'SciPublications'"/>
<xsl:with-param name="setting" select="'sciAuthor/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.SciAuthor']" mode="image">
<!-- DE Bild -->
<!-- EN image -->
<xsl:template match="cms:item[objectType='com.arsdigita.cms.contenttypes.SciAuthor']" 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="'SciPublications'"/>
<xsl:with-param name="setting" select="'sciAuthor/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="'SciPublications'"/>
<xsl:with-param name="setting" select="'sciAuthor/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="'SciPublications'"/>
<xsl:with-param name="setting" select="'sciAuthor/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="'SciPublications'"/>
<xsl:with-param name="setting" select="'sciAuthor/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="'SciPublications'"/>
<xsl:with-param name="setting" select="'sciAuthor/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="'SciPublications'"/>
<xsl:with-param name="setting" select="'sciAuthor/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="'SciPublications'"/>
<xsl:with-param name="setting" select="'sciAuthor/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="'SciPublications'"/>
<xsl:with-param name="setting" select="'sciAuthor/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>
<xsl:template name="CT_SciAuthor_graphics" match="cms:item[objectType='com.arsdigita.cms.contenttypes.SciAuthor']" mode="detailed_view">
<xsl:template name="CT_SciAuthor_graphics" match="cms:item[objectType='com.arsdigita.cms.contenttypes.SciAuthor']" mode="detailed_view">
<!-- DE Hole alle benötigten Einstellungen-->
<!-- EN Getting all needed setting-->
<xsl:variable name="setFullname">
<xsl:call-template name="mandalay:getSetting">
<xsl:with-param name="module" select="'SciPublications'"/>
<xsl:with-param name="setting" select="'sciAuthor/setFullname'"/>
<xsl:with-param name="default" select="'false'"/>
</xsl:call-template>
</xsl:variable>
<xsl:variable name="setNameDetails">
<xsl:call-template name="mandalay:getSetting">
<xsl:with-param name="module" select="'SciPublications'"/>
<xsl:with-param name="setting" select="'sciAuthor/setNameDetails'"/>
<xsl:with-param name="default" select="'true'"/>
</xsl:call-template>
</xsl:variable>
<xsl:variable name="setBirthdate">
<xsl:call-template name="mandalay:getSetting">
<xsl:with-param name="module" select="'SciPublications'"/>
<xsl:with-param name="setting" select="'sciAuthor/setBirthdate'"/>
<xsl:with-param name="default" select="'false'"/>
</xsl:call-template>
</xsl:variable>
<xsl:variable name="setGender">
<xsl:call-template name="mandalay:getSetting">
<xsl:with-param name="module" select="'SciPublications'"/>
<xsl:with-param name="setting" select="'sciAuthor/setGender'"/>
<xsl:with-param name="default" select="'false'"/>
</xsl:call-template>
</xsl:variable>
<xsl:variable name="setDescription">
<xsl:call-template name="mandalay:getSetting">
<xsl:with-param name="module" select="'SciPublications'"/>
<xsl:with-param name="setting" select="'sciAuthor/setDescription'"/>
<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="setFullname">
<xsl:call-template name="mandalay:getSetting">
<xsl:with-param name="module" select="'SciPublications'"/>
<xsl:with-param name="setting" select="'sciAuthor/setFullname'"/>
<xsl:with-param name="default" select="'false'"/>
</xsl:call-template>
</xsl:variable>
<xsl:variable name="setNameDetails">
<xsl:call-template name="mandalay:getSetting">
<xsl:with-param name="module" select="'SciPublications'"/>
<xsl:with-param name="setting" select="'sciAuthor/setNameDetails'"/>
<xsl:with-param name="default" select="'true'"/>
</xsl:call-template>
</xsl:variable>
<xsl:variable name="setBirthdate">
<xsl:call-template name="mandalay:getSetting">
<xsl:with-param name="module" select="'SciPublications'"/>
<xsl:with-param name="setting" select="'sciAuthor/setBirthdate'"/>
<xsl:with-param name="default" select="'false'"/>
</xsl:call-template>
</xsl:variable>
<xsl:variable name="setGender">
<xsl:call-template name="mandalay:getSetting">
<xsl:with-param name="module" select="'SciPublications'"/>
<xsl:with-param name="setting" select="'sciAuthor/setGender'"/>
<xsl:with-param name="default" select="'false'"/>
</xsl:call-template>
</xsl:variable>
<xsl:variable name="setDescription">
<xsl:call-template name="mandalay:getSetting">
<xsl:with-param name="module" select="'SciPublications'"/>
<xsl:with-param name="setting" select="'sciAuthor/setDescription'"/>
<xsl:with-param name="default" select="'true'"/>
</xsl:call-template>
</xsl:variable>
<div id="greeting">
<xsl:call-template name="CT_GenericPerson_details">
<xsl:with-param name="setFullname" select="$setFullname"/>
<xsl:with-param name="setNameDetails" select="$setNameDetails"/>
<xsl:with-param name="setGender" select="$setGender"/>
<xsl:with-param name="setBirthdate" select="$setBirthdate"/>
</xsl:call-template>
<div id="greeting">
<xsl:call-template name="CT_GenericPerson_details">
<xsl:with-param name="setFullname" select="$setFullname"/>
<xsl:with-param name="setNameDetails" select="$setNameDetails"/>
<xsl:with-param name="setGender" select="$setGender"/>
<xsl:with-param name="setBirthdate" select="$setBirthdate"/>
</xsl:call-template>
<xsl:if test="./pageDescription and $setDescription = 'true'">
<div id="lead">
<xsl:value-of disable-output-escaping="yes" select="./pageDescription"/>
<xsl:if test="./pageDescription and $setDescription = 'true'">
<div id="lead">
<xsl:value-of disable-output-escaping="yes" select="./pageDescription"/>
</div>
</xsl:if>
</div>
</xsl:if>
</div>
<xsl:for-each select="./contacts">
<xsl:call-template name="CT_GenericContact_details">
<xsl:with-param name="setFullname" select="'false'"/>
<xsl:with-param name="setNameDetails" select="'false'"/>
<xsl:with-param name="setGender" select="'false'"/>
<xsl:with-param name="setBirthdate" select="'false'"/>
</xsl:call-template>
</xsl:for-each>
<div class="endFloat"/>
</xsl:template>
<!-- DE Listenansicht -->
<!-- EN List view -->
<xsl:template name="CT_SciAuthor_List" match="nav:item[nav:attribute[@name='objectType'] = 'com.arsdigita.cms.contenttypes.SciAuthor']" 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="'SciAuthor'"/>
<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="'SciAuthor'"/>
<xsl:with-param name="setting" select="'listView/setLeadTextLength'"/>
<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="'SciAuthor'"/>
<xsl:with-param name="setting" select="'listView/setMoreButton'"/>
<xsl:with-param name="default" select="'false'"/>
</xsl:call-template>
</xsl:variable>
<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: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 = '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="'SciAuthor'"/>
<xsl:with-param name="id" select="'moreButtonTitle'"/>
</xsl:call-template>
</xsl:attribute>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciAuthor'"/>
<xsl:with-param name="id" select="'moreButton'"/>
</xsl:call-template>
</a>
</span>
</xsl:if>
</xsl:if>
</xsl:otherwise>
</xsl:choose>
</span>
</xsl:if>
</xsl:template>
<xsl:template name="CT_SciAuthor_Link" match="*/cms:item/links[targetItem/objectType = 'com.arsdigita.cms.contenttypes.SciAuthor']" 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="'SciAuthor'"/>
<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="'SciAuthor'"/>
<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="'SciAuthor'"/>
<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="'SciAuthor'"/>
<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="'SciAuthor'"/>
<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="'SciAuthor'"/>
<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="'SciAuthor'"/>
<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="'SciAuthor'"/>
<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>
<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 select="./contacts">
<xsl:call-template name="CT_GenericContact_details">
<xsl:with-param name="setFullname" select="'false'"/>
<xsl:with-param name="setNameDetails" select="'false'"/>
<xsl:with-param name="setGender" select="'false'"/>
<xsl:with-param name="setBirthdate" select="'false'"/>
</xsl:call-template>
</xsl:for-each>
</a>
</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="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 = '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="title">
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciAuthor'"/>
<xsl:with-param name="id" select="'moreButtonTitle'"/>
</xsl:call-template>
</xsl:attribute>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciAuthor'"/>
<xsl:with-param name="id" select="'moreButton'"/>
<div class="endFloat"/>
</xsl:template>
<!-- DE Listenansicht -->
<!-- EN List view -->
<xsl:template name="CT_SciAuthor_List" match="nav:item[nav:attribute[@name='objectType'] = 'com.arsdigita.cms.contenttypes.SciAuthor']" 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="'SciAuthor'"/>
<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="'SciAuthor'"/>
<xsl:with-param name="setting" select="'listView/setLeadTextLength'"/>
<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="'SciAuthor'"/>
<xsl:with-param name="setting" select="'listView/setMoreButton'"/>
<xsl:with-param name="default" select="'false'"/>
</xsl:call-template>
</xsl:variable>
<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: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 = '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="'SciAuthor'"/>
<xsl:with-param name="id" select="'moreButtonTitle'"/>
</xsl:call-template>
</xsl:attribute>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciAuthor'"/>
<xsl:with-param name="id" select="'moreButton'"/>
</xsl:call-template>
</a>
</span>
</xsl:if>
</xsl:if>
</xsl:otherwise>
</xsl:choose>
</span>
</xsl:if>
</xsl:template>
<xsl:template name="CT_SciAuthor_Link" match="*/cms:item/links[targetItem/objectType = 'com.arsdigita.cms.contenttypes.SciAuthor']" 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="'SciAuthor'"/>
<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="'SciAuthor'"/>
<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="'SciAuthor'"/>
<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="'SciAuthor'"/>
<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="'SciAuthor'"/>
<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="'SciAuthor'"/>
<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="'SciAuthor'"/>
<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="'SciAuthor'"/>
<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>
<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>
</a>
</span>
</xsl:if>
</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>
<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 = '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="title">
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciAuthor'"/>
<xsl:with-param name="id" select="'moreButtonTitle'"/>
</xsl:call-template>
</xsl:attribute>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciAuthor'"/>
<xsl:with-param name="id" select="'moreButton'"/>
</xsl:call-template>
</a>
</span>
</xsl:if>
</xsl:if>
</xsl:otherwise>
</xsl:choose>
</xsl:if>
</xsl:otherwise>
</xsl:choose>
</xsl:if>
</xsl:if>
</xsl:template>
</xsl:if>
</xsl:template>
</xsl:stylesheet>

View File

@ -22,51 +22,51 @@
-->
<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"
version="1.0"
>
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"
version="1.0"
>
<xsl:variable name="setSortLinks">
<xsl:call-template name="mandalay:getSetting">
<xsl:with-param name="module" select="'SciPublications'"/>
<xsl:with-param name="setting" select="'list/setSortLinks'"/>
<xsl:with-param name="default" select="'true'"/>
</xsl:call-template>
</xsl:variable>
<xsl:variable name="setSortLinks">
<xsl:call-template name="mandalay:getSetting">
<xsl:with-param name="module" select="'SciPublications'"/>
<xsl:with-param name="setting" select="'list/setSortLinks'"/>
<xsl:with-param name="default" select="'true'"/>
</xsl:call-template>
</xsl:variable>
<xsl:template
match="nav:complexObjectList[@customName='SciPublicationsList']">
<xsl:if test="setSortLinks = 'true'">
<h6>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'"/>
<xsl:with-param name="id" select="'orderByText'"/>
</xsl:call-template>
</h6>
<ul class="orderPublicationsList">
<li>
<a href="?orderBy=title">
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'"/>
<xsl:with-param name="id" select="'orderByTitle'"/>
</xsl:call-template>
</a>
</li>
<li>
<a href="?orderBy=year">
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'"/>
<xsl:with-param name="id" select="'orderByYear'"/>
</xsl:call-template>
</a>
</li>
</ul>
</xsl:if>
</xsl:template>
<xsl:template
match="nav:complexObjectList[@customName='SciPublicationsList']">
<xsl:if test="setSortLinks = 'true'">
<h6>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'"/>
<xsl:with-param name="id" select="'orderByText'"/>
</xsl:call-template>
</h6>
<ul class="orderPublicationsList">
<li>
<a href="?orderBy=title">
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'"/>
<xsl:with-param name="id" select="'orderByTitle'"/>
</xsl:call-template>
</a>
</li>
<li>
<a href="?orderBy=year">
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'"/>
<xsl:with-param name="id" select="'orderByYear'"/>
</xsl:call-template>
</a>
</li>
</ul>
</xsl:if>
</xsl:template>
</xsl:stylesheet>

View File

@ -384,7 +384,8 @@
<xsl:with-param name="id" select="'workingPaper/misc'"/>
</xsl:call-template>
</h3>
<xsl:value-of select="./misc"/>
<xsl:value-of disable-output-escaping="yes"
select="./misc"/>
</div>
</xsl:if>