Commit e8e6c446 authored by Bourdot's avatar Bourdot
Browse files

Volet Figures : bouton d'ouverture des images en fenêtre, comme dans le flux de texte

parent 99c9258b
Loading
Loading
Loading
Loading
+14 −0
Changes for xsl/jats/jats2html.xsl: 14 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -1155,6 +1155,20 @@
            <xsl:attribute name="id">
                <xsl:value-of select="@id"/>
            </xsl:attribute>
            <xsl:if test="graphic">
                <span class="fig-call-window">
                    <a href="#">
                        <xsl:attribute name="onclick">
                            <xsl:text>openFigureWindow('</xsl:text>
                            <xsl:value-of select="@id"/>
                            <xsl:text>'); return false;</xsl:text>
                        </xsl:attribute>
                        <img src="https://img.icons8.com/?size=100&amp;id=60664&amp;format=png&amp;color=0A84FF" 
                             alt="ouvrir" 
                             style="width: 16px; height: 16px; vertical-align: middle;"/>
                    </a>
                </span>
            </xsl:if>
            <xsl:apply-templates select=".//title" mode="right-panel"/>
            <xsl:apply-templates select="graphic" mode="right-panel"/>
            <xsl:if test=".//caption/p[@content-type='caption'] or attrib">
+28 −0
Changes for xsl/tei/03-tei2html_core.xsl: 28 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -1861,6 +1861,20 @@

    <xsl:template match="tei:figure[not(@rend='inline') and not(child::tei:figure)]" mode="panel">
        <figure id="{@xml:id}" class="figure">
            <xsl:if test="tei:graphic">
                <span class="fig-call-window">
                    <a href="#">
                        <xsl:attribute name="onclick">
                            <xsl:text>openFigureWindow('</xsl:text>
                            <xsl:value-of select="@xml:id"/>
                            <xsl:text>'); return false;</xsl:text>
                        </xsl:attribute>
                        <img src="https://img.icons8.com/?size=100&amp;id=60664&amp;format=png&amp;color=0A84FF" 
                             alt="ouvrir" 
                             style="width: 16px; height: 16px; vertical-align: middle;"/>
                    </a>
                </span>
            </xsl:if>
            <xsl:apply-templates select="tei:head" mode="panel"/>
            <xsl:apply-templates select="tei:graphic" mode="panel"/>
            <xsl:apply-templates select="tei:figDesc" mode="panel"/>
@@ -1874,6 +1888,20 @@
    
    <xsl:template match="bodyInclusion//tei:figure" mode="panel">
        <figure id="{concat(@xml:id, '-ann')}" class="figure">
            <xsl:if test="tei:graphic">
                <span class="fig-call-window">
                    <a href="#">
                        <xsl:attribute name="onclick">
                            <xsl:text>openFigureWindow('</xsl:text>
                            <xsl:value-of select="concat(@xml:id, '-ann')"/>
                            <xsl:text>'); return false;</xsl:text>
                        </xsl:attribute>
                        <img src="https://img.icons8.com/?size=100&amp;id=60664&amp;format=png&amp;color=0A84FF" 
                             alt="ouvrir" 
                             style="width: 16px; height: 16px; vertical-align: middle;"/>
                    </a>
                </span>
            </xsl:if>
            <xsl:apply-templates select="tei:head" mode="panel"/>
            <xsl:apply-templates select="tei:graphic" mode="panel"/>
            <xsl:apply-templates select="tei:figDesc" mode="panel"/>