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

View File

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

View File

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

View File

@ -242,7 +242,7 @@
</dd> </dd>
</xsl:if> </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> <dt>
<xsl:call-template name="mandalay:getStaticText"> <xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'"/> <xsl:with-param name="module" select="'SciPublications'"/>
@ -276,7 +276,8 @@
</xsl:otherwise> </xsl:otherwise>
</xsl:choose> </xsl:choose>
</dd> </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> <dt>
<xsl:call-template name="mandalay:getStaticText"> <xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'" /> <xsl:with-param name="module" select="'SciPublications'" />
@ -422,7 +423,7 @@
<xsl:with-param name="id" select="'greyLiterature/misc'" /> <xsl:with-param name="id" select="'greyLiterature/misc'" />
</xsl:call-template> </xsl:call-template>
</h3> </h3>
<xsl:value-of select="./misc" /> <xsl:value-of disable-output-escaping="yes" select="./misc" />
</div> </div>
</xsl:if> </xsl:if>
<!-- <xsl:call-template name="scipublicationsDownload"/> --> <!-- <xsl:call-template name="scipublicationsDownload"/> -->

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -21,358 +21,371 @@
--> -->
<xsl:stylesheet <xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:bebop="http://www.arsdigita.com/bebop/1.0" xmlns:bebop="http://www.arsdigita.com/bebop/1.0"
xmlns:cms="http://www.arsdigita.com/cms/1.0" xmlns:cms="http://www.arsdigita.com/cms/1.0"
xmlns:nav="http://ccm.redhat.com/navigation" xmlns:nav="http://ccm.redhat.com/navigation"
xmlns:mandalay="http://mandalay.quasiweb.de" xmlns:mandalay="http://mandalay.quasiweb.de"
exclude-result-prefixes="xsl bebop cms" exclude-result-prefixes="xsl bebop cms"
version="1.0"> version="1.0">
<!-- DE Vollansicht --> <!-- DE Vollansicht -->
<!-- EN Detailed view --> <!-- EN Detailed view -->
<!-- DE Leadtext --> <!-- DE Leadtext -->
<!-- EN lead text view --> <!-- EN lead text view -->
<xsl:template match="cms:item[objectType='com.arsdigita.cms.contenttypes.SciAuthor']" mode="lead"> <xsl:template match="cms:item[objectType='com.arsdigita.cms.contenttypes.SciAuthor']" mode="lead">
<xsl:variable name="setLeadText"> <xsl:variable name="setLeadText">
<xsl:call-template name="mandalay:getSetting"> <xsl:call-template name="mandalay:getSetting">
<xsl:with-param name="module" select="'SciPublications'"/> <xsl:with-param name="module" select="'SciPublications'"/>
<xsl:with-param name="setting" select="'sciAuthor/setLeadText'"/> <xsl:with-param name="setting" select="'sciAuthor/setLeadText'"/>
<xsl:with-param name="default" select="'true'"/> <xsl:with-param name="default" select="'true'"/>
</xsl:call-template> </xsl:call-template>
</xsl:variable> </xsl:variable>
<xsl:if test="./lead and $setLeadText = 'true'"> <xsl:if test="./lead and $setLeadText = 'true'">
<div class="lead"> <div class="lead">
<xsl:value-of disable-output-escaping="yes" select="./lead"/> <xsl:value-of disable-output-escaping="yes" select="./lead"/>
</div> </div>
</xsl:if> </xsl:if>
</xsl:template> </xsl:template>
<!-- DE Bild --> <!-- DE Bild -->
<!-- EN image --> <!-- EN image -->
<xsl:template match="cms:item[objectType='com.arsdigita.cms.contenttypes.SciAuthor']" mode="image"> <xsl:template match="cms:item[objectType='com.arsdigita.cms.contenttypes.SciAuthor']" mode="image">
<!-- DE Hole alle benötigten Einstellungen--> <!-- DE Hole alle benötigten Einstellungen-->
<!-- EN Getting all needed setting--> <!-- EN Getting all needed setting-->
<xsl:variable name="setImage"> <xsl:variable name="setImage">
<xsl:call-template name="mandalay:getSetting"> <xsl:call-template name="mandalay:getSetting">
<xsl:with-param name="module" select="'SciPublications'"/> <xsl:with-param name="module" select="'SciPublications'"/>
<xsl:with-param name="setting" select="'sciAuthor/setImage'"/> <xsl:with-param name="setting" select="'sciAuthor/setImage'"/>
<xsl:with-param name="default" select="'true'"/> <xsl:with-param name="default" select="'true'"/>
</xsl:call-template> </xsl:call-template>
</xsl:variable> </xsl:variable>
<xsl:variable name="setImageMaxHeight"> <xsl:variable name="setImageMaxHeight">
<xsl:call-template name="mandalay:getSetting"> <xsl:call-template name="mandalay:getSetting">
<xsl:with-param name="module" select="'SciPublications'"/> <xsl:with-param name="module" select="'SciPublications'"/>
<xsl:with-param name="setting" select="'sciAuthor/setImageMaxHeight'"/> <xsl:with-param name="setting" select="'sciAuthor/setImageMaxHeight'"/>
<xsl:with-param name="default" select="''"/> <xsl:with-param name="default" select="''"/>
</xsl:call-template> </xsl:call-template>
</xsl:variable> </xsl:variable>
<xsl:variable name="setImageMaxWidth"> <xsl:variable name="setImageMaxWidth">
<xsl:call-template name="mandalay:getSetting"> <xsl:call-template name="mandalay:getSetting">
<xsl:with-param name="module" select="'SciPublications'"/> <xsl:with-param name="module" select="'SciPublications'"/>
<xsl:with-param name="setting" select="'sciAuthor/setImageMaxWidth'"/> <xsl:with-param name="setting" select="'sciAuthor/setImageMaxWidth'"/>
<xsl:with-param name="default" select="''"/> <xsl:with-param name="default" select="''"/>
</xsl:call-template> </xsl:call-template>
</xsl:variable> </xsl:variable>
<xsl:variable name="setImageCaption"> <xsl:variable name="setImageCaption">
<xsl:call-template name="mandalay:getSetting"> <xsl:call-template name="mandalay:getSetting">
<xsl:with-param name="module" select="'SciPublications'"/> <xsl:with-param name="module" select="'SciPublications'"/>
<xsl:with-param name="setting" select="'sciAuthor/setImageCaption'"/> <xsl:with-param name="setting" select="'sciAuthor/setImageCaption'"/>
<xsl:with-param name="default" select="'true'"/> <xsl:with-param name="default" select="'true'"/>
</xsl:call-template> </xsl:call-template>
</xsl:variable> </xsl:variable>
<xsl:if test="$setImage = 'true'"> <xsl:if test="$setImage = 'true'">
<xsl:call-template name="mandalay:imageAttachment"> <xsl:call-template name="mandalay:imageAttachment">
<xsl:with-param name="showCaption" select="$setImageCaption"/> <xsl:with-param name="showCaption" select="$setImageCaption"/>
<xsl:with-param name="maxHeight" select="$setImageMaxHeight" /> <xsl:with-param name="maxHeight" select="$setImageMaxHeight" />
<xsl:with-param name="maxWidth" select="$setImageMaxWidth" /> <xsl:with-param name="maxWidth" select="$setImageMaxWidth" />
</xsl:call-template> </xsl:call-template>
</xsl:if> </xsl:if>
</xsl:template> </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--> <!-- DE Hole alle benötigten Einstellungen-->
<!-- EN Getting all needed setting--> <!-- EN Getting all needed setting-->
<xsl:variable name="setFullname"> <xsl:variable name="setFullname">
<xsl:call-template name="mandalay:getSetting"> <xsl:call-template name="mandalay:getSetting">
<xsl:with-param name="module" select="'SciPublications'"/> <xsl:with-param name="module" select="'SciPublications'"/>
<xsl:with-param name="setting" select="'sciAuthor/setFullname'"/> <xsl:with-param name="setting" select="'sciAuthor/setFullname'"/>
<xsl:with-param name="default" select="'false'"/> <xsl:with-param name="default" select="'false'"/>
</xsl:call-template> </xsl:call-template>
</xsl:variable> </xsl:variable>
<xsl:variable name="setNameDetails"> <xsl:variable name="setNameDetails">
<xsl:call-template name="mandalay:getSetting"> <xsl:call-template name="mandalay:getSetting">
<xsl:with-param name="module" select="'SciPublications'"/> <xsl:with-param name="module" select="'SciPublications'"/>
<xsl:with-param name="setting" select="'sciAuthor/setNameDetails'"/> <xsl:with-param name="setting" select="'sciAuthor/setNameDetails'"/>
<xsl:with-param name="default" select="'true'"/> <xsl:with-param name="default" select="'true'"/>
</xsl:call-template> </xsl:call-template>
</xsl:variable> </xsl:variable>
<xsl:variable name="setBirthdate"> <xsl:variable name="setBirthdate">
<xsl:call-template name="mandalay:getSetting"> <xsl:call-template name="mandalay:getSetting">
<xsl:with-param name="module" select="'SciPublications'"/> <xsl:with-param name="module" select="'SciPublications'"/>
<xsl:with-param name="setting" select="'sciAuthor/setBirthdate'"/> <xsl:with-param name="setting" select="'sciAuthor/setBirthdate'"/>
<xsl:with-param name="default" select="'false'"/> <xsl:with-param name="default" select="'false'"/>
</xsl:call-template> </xsl:call-template>
</xsl:variable> </xsl:variable>
<xsl:variable name="setGender"> <xsl:variable name="setGender">
<xsl:call-template name="mandalay:getSetting"> <xsl:call-template name="mandalay:getSetting">
<xsl:with-param name="module" select="'SciPublications'"/> <xsl:with-param name="module" select="'SciPublications'"/>
<xsl:with-param name="setting" select="'sciAuthor/setGender'"/> <xsl:with-param name="setting" select="'sciAuthor/setGender'"/>
<xsl:with-param name="default" select="'false'"/> <xsl:with-param name="default" select="'false'"/>
</xsl:call-template> </xsl:call-template>
</xsl:variable> </xsl:variable>
<xsl:variable name="setDescription"> <xsl:variable name="setDescription">
<xsl:call-template name="mandalay:getSetting"> <xsl:call-template name="mandalay:getSetting">
<xsl:with-param name="module" select="'SciPublications'"/> <xsl:with-param name="module" select="'SciPublications'"/>
<xsl:with-param name="setting" select="'sciAuthor/setDescription'"/> <xsl:with-param name="setting" select="'sciAuthor/setDescription'"/>
<xsl:with-param name="default" select="'true'"/> <xsl:with-param name="default" select="'true'"/>
</xsl:call-template> </xsl:call-template>
</xsl:variable> </xsl:variable>
<div id="greeting"> <div id="greeting">
<xsl:call-template name="CT_GenericPerson_details"> <xsl:call-template name="CT_GenericPerson_details">
<xsl:with-param name="setFullname" select="$setFullname"/> <xsl:with-param name="setFullname" select="$setFullname"/>
<xsl:with-param name="setNameDetails" select="$setNameDetails"/> <xsl:with-param name="setNameDetails" select="$setNameDetails"/>
<xsl:with-param name="setGender" select="$setGender"/> <xsl:with-param name="setGender" select="$setGender"/>
<xsl:with-param name="setBirthdate" select="$setBirthdate"/> <xsl:with-param name="setBirthdate" select="$setBirthdate"/>
</xsl:call-template> </xsl:call-template>
<xsl:if test="./pageDescription and $setDescription = 'true'"> <xsl:if test="./pageDescription and $setDescription = 'true'">
<div id="lead"> <div id="lead">
<xsl:value-of disable-output-escaping="yes" select="./pageDescription"/> <xsl:value-of disable-output-escaping="yes" select="./pageDescription"/>
</div>
</xsl:if>
</div> </div>
</xsl:if>
</div>
<xsl:for-each select="./contacts"> <xsl:for-each select="./contacts">
<xsl:call-template name="CT_GenericContact_details"> <xsl:call-template name="CT_GenericContact_details">
<xsl:with-param name="setFullname" select="'false'"/> <xsl:with-param name="setFullname" select="'false'"/>
<xsl:with-param name="setNameDetails" select="'false'"/> <xsl:with-param name="setNameDetails" select="'false'"/>
<xsl:with-param name="setGender" select="'false'"/> <xsl:with-param name="setGender" select="'false'"/>
<xsl:with-param name="setBirthdate" select="'false'"/> <xsl:with-param name="setBirthdate" select="'false'"/>
</xsl:call-template> </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> </xsl:for-each>
</a>
</xsl:if> <div class="endFloat"/>
<xsl:if test="$setImageAndText = 'true' or not(./targetItem/imageAttachments) or $setImage = 'false'"> </xsl:template>
<a>
<xsl:attribute name="href"><xsl:text>/redirect/?oid=</xsl:text><xsl:value-of select="./targetItem/@oid"/></xsl:attribute> <!-- DE Listenansicht -->
<xsl:attribute name="title"> <!-- EN List view -->
<xsl:call-template name="mandalay:shying"> <xsl:template name="CT_SciAuthor_List" match="nav:item[nav:attribute[@name='objectType'] = 'com.arsdigita.cms.contenttypes.SciAuthor']" mode="list_view">
<xsl:with-param name="title">
<xsl:value-of select="./linkTitle"/> <!-- DE Hole alle benötigten Einstellungen-->
</xsl:with-param> <!-- EN Getting all needed setting-->
<xsl:with-param name="mode">dynamic</xsl:with-param> <xsl:variable name="setLeadText">
</xsl:call-template> <xsl:call-template name="mandalay:getSetting">
</xsl:attribute> <xsl:with-param name="module" select="'SciAuthor'"/>
<xsl:call-template name="mandalay:shying"> <xsl:with-param name="setting" select="'listView/setLeadText'"/>
<xsl:with-param name="title"> <xsl:with-param name="default" select="'true'"/>
<xsl:value-of disable-output-escaping="yes" select="./linkTitle"/> </xsl:call-template>
</xsl:with-param> </xsl:variable>
<xsl:with-param name="mode">dynamic</xsl:with-param> <xsl:variable name="setLeadTextLength">
</xsl:call-template> <xsl:call-template name="mandalay:getSetting">
</a> <xsl:with-param name="module" select="'SciAuthor'"/>
<xsl:if test="./linkDescription and $setDescription"> <xsl:with-param name="setting" select="'listView/setLeadTextLength'"/>
<br /> <xsl:with-param name="default" select="'0'"/>
<xsl:choose> </xsl:call-template>
<xsl:when test="$setDescriptionLength = '0'"> </xsl:variable>
<xsl:value-of disable-output-escaping="yes" select="./linkDescription" /> <xsl:variable name="setMoreButton">
</xsl:when> <xsl:call-template name="mandalay:getSetting">
<xsl:otherwise> <xsl:with-param name="module" select="'SciAuthor'"/>
<xsl:value-of disable-output-escaping="yes" select="substring(./linkDescription, 1, $setDescriptionLength)" /> <xsl:with-param name="setting" select="'listView/setMoreButton'"/>
<xsl:if test="string-length(./linkDescription) > $setDescriptionLength"> <xsl:with-param name="default" select="'false'"/>
<xsl:text>...</xsl:text> </xsl:call-template>
<xsl:if test="$setMoreButton = 'true'"> </xsl:variable>
<span class="moreButton">
<a> <a>
<xsl:attribute name="href"><xsl:text>/redirect/?oid=</xsl:text><xsl:value-of select="./targetItem/@oid"/></xsl:attribute> <xsl:attribute name="href">
<xsl:attribute name="title"> <xsl:value-of select="nav:path"/>
<xsl:call-template name="mandalay:getStaticText"> </xsl:attribute>
<xsl:with-param name="module" select="'SciAuthor'"/> <xsl:attribute name="title">
<xsl:with-param name="id" select="'moreButtonTitle'"/> <xsl:call-template name="mandalay:shying">
</xsl:call-template> <xsl:with-param name="title">
</xsl:attribute> <xsl:value-of select="nav:attribute[@name='title']"/>
<xsl:call-template name="mandalay:getStaticText"> </xsl:with-param>
<xsl:with-param name="module" select="'SciAuthor'"/> <xsl:with-param name="mode">dynamic</xsl:with-param>
<xsl:with-param name="id" select="'moreButton'"/> </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:call-template>
</a> </xsl:attribute>
</span> <xsl:for-each select="./targetItem">
</xsl:if> <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:if>
</xsl:otherwise> </xsl:if>
</xsl:choose> </xsl:template>
</xsl:if>
</xsl:if>
</xsl:template>
</xsl:stylesheet> </xsl:stylesheet>

View File

@ -22,51 +22,51 @@
--> -->
<xsl:stylesheet <xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:bebop="http://www.arsdigita.com/bebop/1.0" xmlns:bebop="http://www.arsdigita.com/bebop/1.0"
xmlns:nav="http://ccm.redhat.com/navigation" xmlns:nav="http://ccm.redhat.com/navigation"
xmlns:cms="http://www.arsdigita.com/cms/1.0" xmlns:cms="http://www.arsdigita.com/cms/1.0"
xmlns:mandalay="http://mandalay.quasiweb.de" xmlns:mandalay="http://mandalay.quasiweb.de"
exclude-result-prefixes="xsl bebop cms nav" exclude-result-prefixes="xsl bebop cms nav"
version="1.0" version="1.0"
> >
<xsl:variable name="setSortLinks"> <xsl:variable name="setSortLinks">
<xsl:call-template name="mandalay:getSetting"> <xsl:call-template name="mandalay:getSetting">
<xsl:with-param name="module" select="'SciPublications'"/> <xsl:with-param name="module" select="'SciPublications'"/>
<xsl:with-param name="setting" select="'list/setSortLinks'"/> <xsl:with-param name="setting" select="'list/setSortLinks'"/>
<xsl:with-param name="default" select="'true'"/> <xsl:with-param name="default" select="'true'"/>
</xsl:call-template> </xsl:call-template>
</xsl:variable> </xsl:variable>
<xsl:template <xsl:template
match="nav:complexObjectList[@customName='SciPublicationsList']"> match="nav:complexObjectList[@customName='SciPublicationsList']">
<xsl:if test="setSortLinks = 'true'"> <xsl:if test="setSortLinks = 'true'">
<h6> <h6>
<xsl:call-template name="mandalay:getStaticText"> <xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'"/> <xsl:with-param name="module" select="'SciPublications'"/>
<xsl:with-param name="id" select="'orderByText'"/> <xsl:with-param name="id" select="'orderByText'"/>
</xsl:call-template> </xsl:call-template>
</h6> </h6>
<ul class="orderPublicationsList"> <ul class="orderPublicationsList">
<li> <li>
<a href="?orderBy=title"> <a href="?orderBy=title">
<xsl:call-template name="mandalay:getStaticText"> <xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'"/> <xsl:with-param name="module" select="'SciPublications'"/>
<xsl:with-param name="id" select="'orderByTitle'"/> <xsl:with-param name="id" select="'orderByTitle'"/>
</xsl:call-template> </xsl:call-template>
</a> </a>
</li> </li>
<li> <li>
<a href="?orderBy=year"> <a href="?orderBy=year">
<xsl:call-template name="mandalay:getStaticText"> <xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciPublications'"/> <xsl:with-param name="module" select="'SciPublications'"/>
<xsl:with-param name="id" select="'orderByYear'"/> <xsl:with-param name="id" select="'orderByYear'"/>
</xsl:call-template> </xsl:call-template>
</a> </a>
</li> </li>
</ul> </ul>
</xsl:if> </xsl:if>
</xsl:template> </xsl:template>
</xsl:stylesheet> </xsl:stylesheet>

View File

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