Commit 71ffbb73 authored by Jérôme Chauveau's avatar Jérôme Chauveau
Browse files

aller-retour note/appel de notes

parent dae7512b
Loading
Loading
Loading
Loading
+19 −6
Changes for certic.xsl: 19 added lines, 6 removed lines.
Original line number Diff line number Diff line
@@ -186,7 +186,7 @@
        </li>
    </xsl:template>
    <xsl:template match="fn/label[text()]">
        <span class="label">
        <span class="label" title="voir">
            <xsl:apply-templates/>
        </span>
    </xsl:template>
@@ -227,17 +227,30 @@

    </xsl:template>


    <!--generic meta template (block) -->
    <xsl:template match="journal-meta | journal-id | journal-title-group | publisher | title-group | article-title
        | publisher-name | article-categories | subj-group | subject">
        | publisher-name | article-categories | subj-group | subject | subtitle | trans-title-group | trans-title
        | abstract | trans-abstract | pub-date | kwd-group">
        <div>
            <xsl:attribute name="class">
                <xsl:value-of select="local-name(.)"></xsl:value-of>
                <xsl:value-of select="concat(local-name(.),' meta-field')"></xsl:value-of>
            </xsl:attribute>
            <xsl:apply-templates/>
        </div>
    </xsl:template>


    <!--generic inline template -->
    <xsl:template match="kwd">
        <span>
            <xsl:attribute name="class">
                <xsl:value-of select="local-name(.)"></xsl:value-of>
            </xsl:attribute>
            <xsl:apply-templates/>
        </span>
    </xsl:template>


    <xsl:template match="article-id">
        <div>
            <xsl:attribute name="class">
@@ -248,8 +261,7 @@
    </xsl:template>

    <xsl:template match="contrib-group">
        <h3>Contributeurs</h3>
        <!--<xsl:apply-templates/>-->
        <div class="contrib-group meta-field">
            <xsl:for-each select="./contrib">
                <div class="contrib">
                    <span class="surname">
@@ -269,6 +281,7 @@
                    </xsl:for-each>
                </div>
            </xsl:for-each>
        </div>
    </xsl:template>


+12 −1
Changes for resources/javascript/xml2html.js: 12 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -41,6 +41,7 @@ function darkMode(bool) {

function bindFootnotes() {
    document.querySelectorAll('.fn-call').forEach((fnc) => {
        let footnote = document.getElementById(fnc.dataset.target)
        fnc.addEventListener('click', () => {
            openTab('footnotes');
            console.log(fnc.dataset.target);
@@ -49,7 +50,17 @@ function bindFootnotes() {
                behavior: "smooth"
            });
            document.querySelectorAll('.footnote').forEach((fn) => fn.classList.remove('focus'));
            document.getElementById(fnc.dataset.target).classList.add('focus');
            footnote.classList.add('focus');
        });

        //click on footnote label will focus to the footnote call anchor
        let footnoteLabel = footnote.querySelector('span.label');
        footnoteLabel.addEventListener('click',() => {
            fnc.scrollIntoView({
                block :'start',
                behavior: "smooth"
            });
        })

    })
}
+55 −1
Changes for resources/styles/article.css: 55 added lines, 1 removed line.
Original line number Diff line number Diff line
:root {
    --dark-theme-bg: #22272e;
    --dark-theme-txt: #adbac7;
    --grey-color: #777;
    --nav-height: 4em;
    --third-color : #0a84ff;
    --right-width: 35%;
@@ -168,7 +169,7 @@ section.front ol, section.front ol {
}

.content-tab{
    padding-top: var(--btn-tabs-height);
    padding: calc(var(--btn-tabs-height) + 10px) 20px;
}

.focus-tab{
@@ -282,6 +283,10 @@ section.body h3:before{
    text-decoration: none;
}

#toc a:hover{
    color: var(--grey-color);
}

.dark #toc a {
    color: var(--dark-theme-txt);
}
@@ -312,6 +317,11 @@ span.fn-call {
#footnotes li .label {
    display: inline-block;
    margin-right:10px;
    cursor: pointer;
}

#footnotes li .label:hover{
    color: var(--grey-color);
}

#footnotes li .label:before {
@@ -338,3 +348,47 @@ span.fn-call {
    padding: 10px;
}

.meta-field:before {
    display: block;
    color: var(--grey-color);
    margin-top: 10px;
}
.subject:before{
    content : "Sujet";

}
.subtitle:before {
    content : "Sous-titre";
}

.trans-title:before{
    content : "Titre traduit";

}
.contrib-group:before{
    content : "Contributeurs";

}
.abstract:before{
    content : "Résumé";

}

.trans-abstract:before{
    content : "Résumé traduit";

}
.kwd-group:before{
    content: "Mots-clés";
}

.kwd {
    display:inline-block;
    margin-right:5px;

}

.kwd:after{
    margin-left:5px;
    content: "·";
}