Added a setting to disable the section heading in the MultiPartArticle
git-svn-id: https://svn.libreccm.org/ccm/trunk@2599 8810af33-2d31-482b-a856-94f89814c4dfmaster
parent
10fe48e2e8
commit
b91f1aec72
|
|
@ -258,6 +258,13 @@
|
||||||
<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="setSectionHeading">
|
||||||
|
<xsl:call-template name="mandalay:getSetting">
|
||||||
|
<xsl:with-param name="module" select="'MultiPartArticle'"/>
|
||||||
|
<xsl:with-param name="setting" select="'setSectionHeading'"/>
|
||||||
|
<xsl:with-param name="default" select="'true'"/>
|
||||||
|
</xsl:call-template>
|
||||||
|
</xsl:variable>
|
||||||
|
|
||||||
<!-- DE Berechne lokale Variablen -->
|
<!-- DE Berechne lokale Variablen -->
|
||||||
<!-- EN Calculate local variables -->
|
<!-- EN Calculate local variables -->
|
||||||
|
|
@ -271,21 +278,23 @@
|
||||||
<div class="MPASection">
|
<div class="MPASection">
|
||||||
|
|
||||||
<xsl:if test="$setImage = 'true'">
|
<xsl:if test="$setImage = 'true'">
|
||||||
<!-- <xsl:call-template name="mandalay:imageAttachment"> -->
|
<!-- <xsl:call-template name="mandalay:imageAttachment"> -->
|
||||||
<xsl:apply-templates select="./image">
|
<xsl:apply-templates select="./image">
|
||||||
<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:apply-templates>
|
</xsl:apply-templates>
|
||||||
<!-- </xsl:call-template> -->
|
<!-- </xsl:call-template> -->
|
||||||
</xsl:if>
|
</xsl:if>
|
||||||
|
|
||||||
|
<xsl:if test="$setSectionHeading = 'true'">
|
||||||
<h2>
|
<h2>
|
||||||
<xsl:attribute name="id">
|
<xsl:attribute name="id">
|
||||||
<xsl:value-of select="concat('section_', rank)"/>
|
<xsl:value-of select="concat('section_', rank)"/>
|
||||||
</xsl:attribute>
|
</xsl:attribute>
|
||||||
<xsl:value-of disable-output-escaping="yes" select="title"/>
|
<xsl:value-of disable-output-escaping="yes" select="title"/>
|
||||||
</h2>
|
</h2>
|
||||||
|
</xsl:if>
|
||||||
<xsl:if test="$setLinkToTopBefore = 'true' and rank > $first">
|
<xsl:if test="$setLinkToTopBefore = 'true' and rank > $first">
|
||||||
<div class="top">
|
<div class="top">
|
||||||
<a href="#" class="topLink" title="Seitenanfang">
|
<a href="#" class="topLink" title="Seitenanfang">
|
||||||
|
|
@ -396,7 +405,9 @@
|
||||||
|
|
||||||
<xsl:if test="$setImage = 'true' and nav:attribute[@name='imageAttachments.image.id']">
|
<xsl:if test="$setImage = 'true' and nav:attribute[@name='imageAttachments.image.id']">
|
||||||
<a>
|
<a>
|
||||||
<xsl:attribute name="href"><xsl:value-of select="nav:path"/></xsl:attribute>
|
<xsl:attribute name="href">
|
||||||
|
<xsl:value-of select="nav:path"/>
|
||||||
|
</xsl:attribute>
|
||||||
<xsl:attribute name="title">
|
<xsl:attribute name="title">
|
||||||
<xsl:call-template name="mandalay:shying">
|
<xsl:call-template name="mandalay:shying">
|
||||||
<xsl:with-param name="title">
|
<xsl:with-param name="title">
|
||||||
|
|
@ -410,8 +421,12 @@
|
||||||
<img>
|
<img>
|
||||||
<xsl:attribute name="src">/ccm/cms-service/stream/image/?image_id=<xsl:value-of select="nav:attribute[@name='imageAttachments.image.id']"/>&maxWidth=150&maxHeight=100</xsl:attribute>
|
<xsl:attribute name="src">/ccm/cms-service/stream/image/?image_id=<xsl:value-of select="nav:attribute[@name='imageAttachments.image.id']"/>&maxWidth=150&maxHeight=100</xsl:attribute>
|
||||||
<xsl:if test="nav:attribute[@name='imageAttachments.caption']">
|
<xsl:if test="nav:attribute[@name='imageAttachments.caption']">
|
||||||
<xsl:attribute name="alt"><xsl:value-of select="nav:attribute[@name='imageAttachments.caption']"/></xsl:attribute>
|
<xsl:attribute name="alt">
|
||||||
<xsl:attribute name="title"><xsl:value-of select="nav:attribute[@name='imageAttachments.caption']"/></xsl:attribute>
|
<xsl:value-of select="nav:attribute[@name='imageAttachments.caption']"/>
|
||||||
|
</xsl:attribute>
|
||||||
|
<xsl:attribute name="title">
|
||||||
|
<xsl:value-of select="nav:attribute[@name='imageAttachments.caption']"/>
|
||||||
|
</xsl:attribute>
|
||||||
</xsl:if>
|
</xsl:if>
|
||||||
</img>
|
</img>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -419,7 +434,9 @@
|
||||||
</xsl:if>
|
</xsl:if>
|
||||||
|
|
||||||
<a class="CIname">
|
<a class="CIname">
|
||||||
<xsl:attribute name="href"><xsl:value-of select="nav:path"/></xsl:attribute>
|
<xsl:attribute name="href">
|
||||||
|
<xsl:value-of select="nav:path"/>
|
||||||
|
</xsl:attribute>
|
||||||
<xsl:attribute name="title">
|
<xsl:attribute name="title">
|
||||||
<xsl:call-template name="mandalay:shying">
|
<xsl:call-template name="mandalay:shying">
|
||||||
<xsl:with-param name="title">
|
<xsl:with-param name="title">
|
||||||
|
|
@ -541,7 +558,11 @@
|
||||||
<!-- EN -->
|
<!-- EN -->
|
||||||
<xsl:if test="./targetItem/imageAttachments and $setImage = 'true'">
|
<xsl:if test="./targetItem/imageAttachments and $setImage = 'true'">
|
||||||
<a class="CIname">
|
<a class="CIname">
|
||||||
<xsl:attribute name="href"><xsl:text>/redirect/?oid=</xsl:text><xsl:value-of select="./targetItem/@oid"/><xsl:value-of select="$params"/></xsl:attribute>
|
<xsl:attribute name="href">
|
||||||
|
<xsl:text>/redirect/?oid=</xsl:text>
|
||||||
|
<xsl:value-of select="./targetItem/@oid"/>
|
||||||
|
<xsl:value-of select="$params"/>
|
||||||
|
</xsl:attribute>
|
||||||
<xsl:attribute name="title">
|
<xsl:attribute name="title">
|
||||||
<xsl:call-template name="mandalay:shying">
|
<xsl:call-template name="mandalay:shying">
|
||||||
<xsl:with-param name="title">
|
<xsl:with-param name="title">
|
||||||
|
|
@ -561,7 +582,11 @@
|
||||||
</xsl:if>
|
</xsl:if>
|
||||||
<xsl:if test="$setImageAndText = 'true' or not(./targetItem/imageAttachments) or $setImage = 'false'">
|
<xsl:if test="$setImageAndText = 'true' or not(./targetItem/imageAttachments) or $setImage = 'false'">
|
||||||
<a class="CIname">
|
<a class="CIname">
|
||||||
<xsl:attribute name="href"><xsl:text>/redirect/?oid=</xsl:text><xsl:value-of select="./targetItem/@oid"/><xsl:value-of select="$params"/></xsl:attribute>
|
<xsl:attribute name="href">
|
||||||
|
<xsl:text>/redirect/?oid=</xsl:text>
|
||||||
|
<xsl:value-of select="./targetItem/@oid"/>
|
||||||
|
<xsl:value-of select="$params"/>
|
||||||
|
</xsl:attribute>
|
||||||
<xsl:attribute name="title">
|
<xsl:attribute name="title">
|
||||||
<xsl:call-template name="mandalay:shying">
|
<xsl:call-template name="mandalay:shying">
|
||||||
<xsl:with-param name="title">
|
<xsl:with-param name="title">
|
||||||
|
|
|
||||||
|
|
@ -27,6 +27,7 @@
|
||||||
<setting id="setSummary">true</setting>
|
<setting id="setSummary">true</setting>
|
||||||
<setting id="setSummaryFisrtPageOnly">true</setting>
|
<setting id="setSummaryFisrtPageOnly">true</setting>
|
||||||
<setting id="setSectionListHeading">false</setting>
|
<setting id="setSectionListHeading">false</setting>
|
||||||
|
<setting id="setSectionHeading">true</setting>
|
||||||
|
|
||||||
<setting id="setImage">true</setting>
|
<setting id="setImage">true</setting>
|
||||||
<setting id="setImageMaxHeight">300</setting>
|
<setting id="setImageMaxHeight">300</setting>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue