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:call-template>
|
||||
</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 -->
|
||||
<!-- EN Calculate local variables -->
|
||||
|
|
@ -280,12 +287,14 @@
|
|||
<!-- </xsl:call-template> -->
|
||||
</xsl:if>
|
||||
|
||||
<xsl:if test="$setSectionHeading = 'true'">
|
||||
<h2>
|
||||
<xsl:attribute name="id">
|
||||
<xsl:value-of select="concat('section_', rank)"/>
|
||||
</xsl:attribute>
|
||||
<xsl:value-of disable-output-escaping="yes" select="title"/>
|
||||
</h2>
|
||||
</xsl:if>
|
||||
<xsl:if test="$setLinkToTopBefore = 'true' and rank > $first">
|
||||
<div class="top">
|
||||
<a href="#" class="topLink" title="Seitenanfang">
|
||||
|
|
@ -396,7 +405,9 @@
|
|||
|
||||
<xsl:if test="$setImage = 'true' and nav:attribute[@name='imageAttachments.image.id']">
|
||||
<a>
|
||||
<xsl:attribute name="href"><xsl:value-of select="nav:path"/></xsl:attribute>
|
||||
<xsl:attribute name="href">
|
||||
<xsl:value-of select="nav:path"/>
|
||||
</xsl:attribute>
|
||||
<xsl:attribute name="title">
|
||||
<xsl:call-template name="mandalay:shying">
|
||||
<xsl:with-param name="title">
|
||||
|
|
@ -410,8 +421,12 @@
|
|||
<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:if test="nav:attribute[@name='imageAttachments.caption']">
|
||||
<xsl:attribute name="alt"><xsl:value-of select="nav:attribute[@name='imageAttachments.caption']"/></xsl:attribute>
|
||||
<xsl:attribute name="title"><xsl:value-of select="nav:attribute[@name='imageAttachments.caption']"/></xsl:attribute>
|
||||
<xsl:attribute name="alt">
|
||||
<xsl:value-of select="nav:attribute[@name='imageAttachments.caption']"/>
|
||||
</xsl:attribute>
|
||||
<xsl:attribute name="title">
|
||||
<xsl:value-of select="nav:attribute[@name='imageAttachments.caption']"/>
|
||||
</xsl:attribute>
|
||||
</xsl:if>
|
||||
</img>
|
||||
</div>
|
||||
|
|
@ -419,7 +434,9 @@
|
|||
</xsl:if>
|
||||
|
||||
<a class="CIname">
|
||||
<xsl:attribute name="href"><xsl:value-of select="nav:path"/></xsl:attribute>
|
||||
<xsl:attribute name="href">
|
||||
<xsl:value-of select="nav:path"/>
|
||||
</xsl:attribute>
|
||||
<xsl:attribute name="title">
|
||||
<xsl:call-template name="mandalay:shying">
|
||||
<xsl:with-param name="title">
|
||||
|
|
@ -541,7 +558,11 @@
|
|||
<!-- EN -->
|
||||
<xsl:if test="./targetItem/imageAttachments and $setImage = 'true'">
|
||||
<a class="CIname">
|
||||
<xsl:attribute name="href"><xsl:text>/redirect/?oid=</xsl:text><xsl:value-of select="./targetItem/@oid"/><xsl: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:call-template name="mandalay:shying">
|
||||
<xsl:with-param name="title">
|
||||
|
|
@ -561,7 +582,11 @@
|
|||
</xsl:if>
|
||||
<xsl:if test="$setImageAndText = 'true' or not(./targetItem/imageAttachments) or $setImage = 'false'">
|
||||
<a class="CIname">
|
||||
<xsl:attribute name="href"><xsl:text>/redirect/?oid=</xsl:text><xsl:value-of select="./targetItem/@oid"/><xsl: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:call-template name="mandalay:shying">
|
||||
<xsl:with-param name="title">
|
||||
|
|
|
|||
|
|
@ -27,6 +27,7 @@
|
|||
<setting id="setSummary">true</setting>
|
||||
<setting id="setSummaryFisrtPageOnly">true</setting>
|
||||
<setting id="setSectionListHeading">false</setting>
|
||||
<setting id="setSectionHeading">true</setting>
|
||||
|
||||
<setting id="setImage">true</setting>
|
||||
<setting id="setImageMaxHeight">300</setting>
|
||||
|
|
|
|||
Loading…
Reference in New Issue