Commit 77d2f475 authored by Eva Huet's avatar Eva Huet
Browse files

fix lien appel / figure 2

parent e9a181b9
Loading
Loading
Loading
Loading
+6 −1
Changes for resources/styles/xml_2_html.css: 6 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -1369,12 +1369,17 @@ body.dark #drag-bar:hover {
    text-align: right;
}

a {
a,
span.fig-call {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-fast);
}

label span.fig-call {
    color: var(--text-primary);
}

a:hover {
    color: var(--primary-hover);
}
+12 −0
Changes for xsl/jats/jats2html.xsl: 12 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -1121,12 +1121,24 @@
        <!-- figures -->

    <xsl:template match="xref[@ref-type='fig']">
        <xsl:choose>
            <xsl:when test="@rid = //table-wrap/@id">
                <a>
                    <xsl:attribute name="href">
                        <xsl:value-of select="concat('#main-', @rid)"/>
                    </xsl:attribute>
                    <xsl:apply-templates select="node()"/>
                </a>
            </xsl:when>
            <xsl:otherwise>
                <span class="fig-call">
                    <xsl:attribute name="data-target">
                        <xsl:value-of select="@rid"/>
                    </xsl:attribute>
                    <xsl:apply-templates/>
                </span> 
            </xsl:otherwise>
        </xsl:choose>
    </xsl:template>

    <xsl:template match="inline-graphic">
+12 −0
Changes for xsl/tei/03-tei2html_core.xsl: 12 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -829,6 +829,8 @@
                </span>
            </xsl:when>
            <xsl:when test="@type='fig'">
                <xsl:choose>
                    <xsl:when test="substring-after(@target,'#') = //tei:figure[child::tei:table]/@xml:id">
                        <a>
                            <xsl:attribute name="href">
                                <xsl:value-of select="concat('#main-', substring-after(@target,'#'))"/>
@@ -836,6 +838,16 @@
                            <xsl:apply-templates/>
                        </a>
                    </xsl:when>
                    <xsl:otherwise>
                        <span class="fig-call">
                            <xsl:attribute name="data-target">
                                <xsl:value-of select="substring-after(@target,'#')"/>
                            </xsl:attribute>
                            <xsl:apply-templates/>
                        </span> 
                    </xsl:otherwise>
                </xsl:choose>
            </xsl:when>
            <xsl:when test="@type='bibl'">
                <span class="bib-ref-call">
                    <xsl:attribute name="data-target">