Commit 139d61be authored by Jérôme Chauveau's avatar Jérôme Chauveau
Browse files

Merge branch 'ag/pluginBreadcrumb' into 'dev'

Modification de la xsl pour l'affichage du fragmentTitle

See merge request pdn-certic/MaX!31
parents d1e2fe75 4f6f9fb5
Loading
Loading
Loading
Loading
+29 −2
Changes for plugins/breadcrumb/_breadcrumb.xsl: 29 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -4,13 +4,40 @@
    transformation du texte -->

    <xsl:template match="/">
        <span>
        <span class="fragmentTitle">
            <xsl:apply-templates select=".//*:head"/>
        </span>
    </xsl:template>

<!--    <xsl:template match="*:head">-->
<!--        <xsl:value-of select=".//text()"/>-->
<!--    </xsl:template>-->

    <xsl:template match="*:head">
        <xsl:value-of select=".//text()"/>
        <xsl:if test="preceding-sibling::*:head"><xsl:text> </xsl:text></xsl:if><xsl:apply-templates />
     </xsl:template>

    <!-- on masque les notes -->
    <xsl:template match="*:note">
      </xsl:template>

    <xsl:template match="*:fw">
    </xsl:template>

    <!-- on gère les enrichissements typographiques-->
    <xsl:template match="*:hi" >
        <span>
            <xsl:attribute name="class">
                <xsl:value-of select="@rend"/>
            </xsl:attribute>
            <xsl:apply-templates/>
        </span>
    </xsl:template>
    <xsl:template match="@rend">
        <xsl:attribute name="class">
            <xsl:value-of select="."/>
        </xsl:attribute>
    </xsl:template>


</xsl:stylesheet>
 No newline at end of file
+8
Changes for plugins/breadcrumb/breadcrumb.css: 8 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -29,6 +29,14 @@
    content: "";
}

.fragmentTitle {
display: inline-block;
white-space: nowrap;
overflow: hidden;
max-width: 350px;
text-overflow: '[...]';
}

.currentPart{
    display :inline-block;
    white-space: nowrap;