<xsl:template name="M22">
<xsl:param name="lignesAccueil"/>
+
+ <xsl:variable name="liste.partie">
+ <n:titres>
+ <xsl:for-each select="$lignesAccueil[contains(@Titre, 'PARTIE')]">
+ <n:titre><xsl:value-of select="@Titre"/></n:titre>
+ </xsl:for-each>
+ </n:titres>
+ </xsl:variable>
+
<pre>
<h2><u>Le Compte de Gestion sur Chiffres</u></h2>
<table>
<xsl:choose>
<xsl:when test="string-length(@Etat) > 0">
<xsl:choose>
+ <xsl:when test="$browser-destination = 'internal' and not(contains(lower-case(@Titre),'signature')) and (contains(@Etat,'GB_PrevisionRealisationBudgetaire') or contains(@Etat,'ConsommationCredits'))">
+ <xsl:call-template name="row">
+ <xsl:with-param name="col2">
+ <a href="xemelios:/query?docId={$docId}&etatId={@Etat}&elementId=Page{@Etat}&collectivite={$siret}&budget={$budget}&sp1={$exercice}&path=[n:Pied/@NumPage='{@FirstPage}']"><xsl:value-of select="normalize-space(@Titre)"/></a>
+ </xsl:with-param>
+ </xsl:call-template>
+ </xsl:when>
<xsl:when test="$browser-destination = 'internal' and not(contains(lower-case(@Titre),'signature')) and not(contains(lower-case(@Etat),'actif'))">
<xsl:variable name="Etat">
<xsl:choose>
<xsl:when test="string-length(@Etat) = 0"><xsl:call-template name="partie-row"><xsl:with-param name="data"><xsl:value-of select="normalize-space(@Titre)"/></xsl:with-param></xsl:call-template></xsl:when>
</xsl:choose>
</xsl:for-each>
- <xsl:if test="count(//n:Sommaire/n:LigneSommaire[@Code='Signatures']) > 0">
+ <xsl:if test="count(//n:Sommaire/n:LigneSommaire[@Code='Signatures']) > 0 and count($lignesAccueil[contains(lower-case(@Titre),'signature')]) = 0">
<xsl:variable name="titre.signature" select="normalize-space(tokenize(//n:LigneAccueil[contains(@Titre,'signature')]/@Titre,'PARTIE : ')[2])"/>
<xsl:call-template name="partie-row"><xsl:with-param name="data"><xsl:value-of select="count($liste.partie/n:titres/n:titre)"/>EME PARTIE :</xsl:with-param></xsl:call-template>
<xsl:call-template name="row">