Loading resources/javascript/xml_2_html.js +18 −14 Original line number Diff line number Diff line Loading @@ -2,6 +2,9 @@ const dict = { fr : { 'toc' : 'Table des matières', 'refs': 'Références', 'figures': 'Figures', 'notes': 'Notes', 'index': "Index", 'pagination': 'Pagination : ', 'date-received': 'Date de réception', 'date-accepted': 'Date d’acceptation', Loading Loading @@ -54,11 +57,17 @@ const dict = { 'cite-issue': 'Citer ce numéro', 'cite-article': 'Citer cet article', 'long-desc' : 'Description longue', 'ai-policy': 'Usage par les IA', 'ai-policy-in': 'Autorisé', 'ai-policy-out': 'Interdit', }, en: { 'toc' : 'Table of contents', 'refs': 'References', 'figures': 'Figures', 'notes': 'Notes', 'index': "Index", 'pagination': 'Pagination: ', 'date-received': 'Reception date', 'date-accepted': 'Acceptation date', Loading Loading @@ -111,11 +120,17 @@ const dict = { 'cite-issue': 'Cite this issue', 'cite-article': 'Cite this article', 'long-desc' : 'Long description', 'ai-policy': 'AI Policy', 'ai-policy-in': 'Use by AI permitted', 'ai-policy-out': 'Use by AI prohibited', }, es: { 'toc' : 'Índice', 'refs': 'Referencias', 'figures': 'Figuras', 'notes': 'Notas', 'index': "Índice", 'pagination': 'Paginación: ', 'date-received': 'Fecha de recepción', 'date-accepted': 'Fecha de aceptación', Loading Loading @@ -168,6 +183,9 @@ const dict = { 'cite-issue': 'Citar este número', 'cite-article': 'Citar este artículo', 'long-desc' : 'Descripción larga', 'ai-policy': 'Política de IA', 'ai-policy-in': 'Uso autorizado por parte de la IA', 'ai-policy-out': 'Uso prohibido por parte de la IA', } } Loading Loading @@ -345,20 +363,6 @@ function initialiseTableaux() { } } function afficheTableau(numero) { let tableCourante = figTables[numero].getElementsByTagName("table")[0]; let triangle = figTables[numero].getElementsByClassName("expand")[0]; if (tableCourante.style.display === 'none' || tableCourante.style.display === '') { tableCourante.style.display = 'table'; tableCourante.style.backgroundColor = 'white'; triangle.textContent = "▾ "; } else { tableCourante.style.display = 'none'; triangle.textContent = "▸ "; } } ///////////////////////////////////////////////////////////// ////// Fonctions pour les index (collapsible) [EC] /// ///////////////////////////////////////////////////////////// Loading resources/styles/xml_2_html.css +40 −16 Original line number Diff line number Diff line Loading @@ -466,8 +466,6 @@ figure { border: 1px solid #e2e8f0; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 70px; } Loading Loading @@ -498,7 +496,13 @@ figure img { border-radius: 8px; box-shadow: var(--shadow-md); padding-bottom: 0px; margin-bottom: 3px; margin-bottom: 7px; } figure .fig-call-window img, figure .table-call-window img { border-radius: 0px; box-shadow: none; } body.dark .caption { Loading @@ -511,8 +515,11 @@ body.dark .caption { .table-call-window, .table-call-window a, .table-call-window a:visited { color: var(--third-color); text-decoration: none; align-self: flex-end; margin-top: -13px; margin-right: -6px; margin-bottom: -15px; } /* recensions */ Loading Loading @@ -545,7 +552,7 @@ div[id='figures'] figure { border-top: none; background-color: inherit; border: none; margin-top: var(--spacing-md); margin-top: -15px; margin-bottom: var(--spacing-md); padding-bottom: var(--spacing-md); padding-right: var(--spacing-md); Loading Loading @@ -608,7 +615,7 @@ table caption { table { width: 100%; border-collapse: collapse; display: none; display: table; text-indent: initial; line-height: normal; font-weight: normal; Loading @@ -619,9 +626,11 @@ table { border-spacing: 2px; white-space: normal; font-variant: normal; margin: var(--spacing-lg) 0; margin: 0 0; margin-bottom: 7px; font-family: var(--font-sans); font-size: 0.9375rem; background-color: white; } table.linguistic { Loading Loading @@ -654,7 +663,7 @@ td { padding: var(--spacing-sm); text-align: left; border-bottom: 1px solid #e2e8f0; font-size: 1.1rem; font-size: 0.9rem; padding-left: 2px; } Loading Loading @@ -685,13 +694,12 @@ table.lg td { font-size: 150%; } .fig-table .label, .fig-ill .label { .fig-table label, .fig-ill label { padding: 10px; margin: 0; cursor: pointer; padding-left: 1em; max-width: 80%; margin-bottom: 5px; line-height: 1.5; } .expand { Loading Loading @@ -723,7 +731,7 @@ figure .caption { } label { margin-bottom: 10px; margin-bottom: 15px; } .caption-right-panel, Loading Loading @@ -767,8 +775,8 @@ section.body h4:not(div.boxed-text *) { details.floating-note { width: 100%; margin-left: 18px; margin-top: 10px; margin-left: 9px; margin-top: 12px; } details.floating-note .body { Loading @@ -790,6 +798,22 @@ details.floating-note p { margin-top: 6px; } summary::marker { color: var(--third-color); content: "⇱ "; font-size: 105%; } .floating-note[open] summary::marker { content: "⇲ "; } summary span.idno { color: var(--third-color); font-family: var(--font-sans); font-size: 95%; } /****** annexe ******/ .appendix, .right-panel-appendix { Loading xsl/jats/jats2html.xsl +93 −7 Original line number Diff line number Diff line Loading @@ -239,8 +239,9 @@ <xsl:apply-templates select="./article-meta/history"/> <xsl:apply-templates select="./article-meta/fpage"/> <xsl:apply-templates select="./article-meta/custom-meta-group[.//meta-name = 'cite this article']"/> <xsl:apply-templates select="./article-meta/permissions/license[@specific-use='article']"/> <xsl:apply-templates select="./article-meta/permissions/copyright-statement[@content-type='article']"/> <xsl:apply-templates select="./article-meta/permissions/license[@xlink:href and @specific-use='article']"/> <xsl:apply-templates select="./article-meta/permissions/copyright-statement[@specific-use='article']"/> <xsl:call-template name="AI-policy-article"/> <xsl:apply-templates select="./article-meta/article-id"/> </div> </div> Loading @@ -263,8 +264,9 @@ <xsl:apply-templates select="./article-meta//page-count"/> <xsl:apply-templates select="./article-meta/issue-sponsor"/> <xsl:apply-templates select="./article-meta/custom-meta-group[.//meta-name = 'cite this issue']"/> <xsl:apply-templates select="./article-meta/permissions/license[@specific-use='issue']"/> <xsl:apply-templates select="./article-meta/permissions/copyright-statement[@content-type='issue']"/> <xsl:apply-templates select="./article-meta/permissions/license[@xlink:href and @specific-use='issue']"/> <xsl:apply-templates select="./article-meta/permissions/copyright-statement[@specific-use='issue']"/> <xsl:call-template name="AI-policy-issue"/> <xsl:apply-templates select="./article-meta/isbn"/> <xsl:apply-templates select="./article-meta/issue-id"/> Loading Loading @@ -451,7 +453,7 @@ </xsl:template> <!-- template global pour les métadonnées --> <xsl:template match="journal-title | copyright-statement | license <xsl:template match="journal-title | copyright-statement | license[@xlink:href] | publisher-name | trans-title-group | alt-title[@alt-title-type='short'] | funding-group | abstract | trans-abstract | pub-date | date[@date-type='received'] | date[@date-type='accepted'] | issue-title | issue-subtitle | page-count | issue-sponsor[1] | issue-id[@pub-id-type='doi'] | article-id[@pub-id-type='doi'] | volume | issue | isbn | issn[normalize-space()] Loading @@ -478,6 +480,11 @@ <xsl:value-of select="'sponsor-group meta-field'"/> </xsl:attribute> </xsl:when> <xsl:when test="self::license[@license-type='AI-usage']"> <xsl:attribute name="class"> <xsl:value-of select="'AI-policy meta-field'"/> </xsl:attribute> </xsl:when> <xsl:otherwise> <xsl:attribute name="class"> <xsl:value-of select="concat(local-name(.),' meta-field')"/> Loading Loading @@ -581,7 +588,7 @@ <xsl:when test="self::copyright-statement"> <div><span class="idno trans" data-key='copyright'/><span class="lb"></span></div> </xsl:when> <xsl:when test="self::license"> <xsl:when test="self::license[@xlink:href]"> <div><span class="idno trans" data-key='license'/><span class="lb"></span></div> </xsl:when> <xsl:otherwise/> Loading Loading @@ -640,6 +647,85 @@ </div> </xsl:template> <!-- Template pour AI policy article --> <xsl:template name="AI-policy-article"> <xsl:variable name="articlePolicy" select="//license[@license-type='AI-usage' and @specific-use='article']/license-p/text()"/> <xsl:variable name="issuePolicy" select="//license[@license-type='AI-usage' and @specific-use='issue']/license-p/text()"/> <xsl:variable name="effectivePolicy"> <xsl:choose> <!-- Si articlePolicy existe --> <xsl:when test="$articlePolicy and $articlePolicy != ''"> <xsl:value-of select="$articlePolicy"/> </xsl:when> <!-- Sinon utiliser issuePolicy --> <xsl:otherwise> <xsl:value-of select="$issuePolicy"/> </xsl:otherwise> </xsl:choose> </xsl:variable> <!-- Toujours afficher pour l'article s'il y a une policy (article ou issue) --> <xsl:if test="$effectivePolicy != ''"> <div class="AI-policy meta-field"> <div><span class="idno trans" data-key='ai-policy'/><span class="lb"></span></div> <xsl:choose> <xsl:when test="$effectivePolicy = 'Yes'"> <span class="indo trans" data-key='ai-policy-in'/> </xsl:when> <xsl:otherwise> <span class="indo trans" data-key='ai-policy-out'/> </xsl:otherwise> </xsl:choose> </div> </xsl:if> </xsl:template> <!-- Template pour AI policy issue --> <xsl:template name="AI-policy-issue"> <xsl:variable name="articlePolicy" select="//license[@license-type='AI-usage' and @specific-use='article']/license-p/text()"/> <xsl:variable name="issuePolicy" select="//license[@license-type='AI-usage' and @specific-use='issue']/license-p/text()"/> <xsl:variable name="effectivePolicy"> <xsl:choose> <!-- Si issuePolicy existe --> <xsl:when test="$issuePolicy and $issuePolicy != ''"> <xsl:choose> <!-- Si articlePolicy est No, alors No (plus restrictif) --> <xsl:when test="$articlePolicy = 'No'"> <xsl:text>No</xsl:text> </xsl:when> <!-- Sinon utiliser issuePolicy --> <xsl:otherwise> <xsl:value-of select="$issuePolicy"/> </xsl:otherwise> </xsl:choose> </xsl:when> <!-- Si issuePolicy n'existe pas, utiliser articlePolicy seulement si c'est No --> <xsl:when test="$articlePolicy = 'No'"> <xsl:text>No</xsl:text> </xsl:when> <!-- Sinon ne rien afficher --> <xsl:otherwise></xsl:otherwise> </xsl:choose> </xsl:variable> <!-- Afficher seulement si effectivePolicy n'est pas vide --> <xsl:if test="$effectivePolicy != ''"> <div class="AI-policy meta-field"> <div><span class="idno trans" data-key='ai-policy'/><span class="lb"></span></div> <xsl:choose> <xsl:when test="$effectivePolicy = 'Yes'"> <span class="indo trans" data-key='ai-policy-in'/> </xsl:when> <xsl:otherwise> <span class="indo trans" data-key='ai-policy-out'/> </xsl:otherwise> </xsl:choose> </div> </xsl:if> </xsl:template> <xsl:template match="issue-sponsor[preceding-sibling::issue-sponsor]"/> <xsl:template match="publisher-loc"/> Loading xsl/tei/03-tei2html_core.xsl +149 −73 File changed.Preview size limit exceeded, changes collapsed. Show changes Loading
resources/javascript/xml_2_html.js +18 −14 Original line number Diff line number Diff line Loading @@ -2,6 +2,9 @@ const dict = { fr : { 'toc' : 'Table des matières', 'refs': 'Références', 'figures': 'Figures', 'notes': 'Notes', 'index': "Index", 'pagination': 'Pagination : ', 'date-received': 'Date de réception', 'date-accepted': 'Date d’acceptation', Loading Loading @@ -54,11 +57,17 @@ const dict = { 'cite-issue': 'Citer ce numéro', 'cite-article': 'Citer cet article', 'long-desc' : 'Description longue', 'ai-policy': 'Usage par les IA', 'ai-policy-in': 'Autorisé', 'ai-policy-out': 'Interdit', }, en: { 'toc' : 'Table of contents', 'refs': 'References', 'figures': 'Figures', 'notes': 'Notes', 'index': "Index", 'pagination': 'Pagination: ', 'date-received': 'Reception date', 'date-accepted': 'Acceptation date', Loading Loading @@ -111,11 +120,17 @@ const dict = { 'cite-issue': 'Cite this issue', 'cite-article': 'Cite this article', 'long-desc' : 'Long description', 'ai-policy': 'AI Policy', 'ai-policy-in': 'Use by AI permitted', 'ai-policy-out': 'Use by AI prohibited', }, es: { 'toc' : 'Índice', 'refs': 'Referencias', 'figures': 'Figuras', 'notes': 'Notas', 'index': "Índice", 'pagination': 'Paginación: ', 'date-received': 'Fecha de recepción', 'date-accepted': 'Fecha de aceptación', Loading Loading @@ -168,6 +183,9 @@ const dict = { 'cite-issue': 'Citar este número', 'cite-article': 'Citar este artículo', 'long-desc' : 'Descripción larga', 'ai-policy': 'Política de IA', 'ai-policy-in': 'Uso autorizado por parte de la IA', 'ai-policy-out': 'Uso prohibido por parte de la IA', } } Loading Loading @@ -345,20 +363,6 @@ function initialiseTableaux() { } } function afficheTableau(numero) { let tableCourante = figTables[numero].getElementsByTagName("table")[0]; let triangle = figTables[numero].getElementsByClassName("expand")[0]; if (tableCourante.style.display === 'none' || tableCourante.style.display === '') { tableCourante.style.display = 'table'; tableCourante.style.backgroundColor = 'white'; triangle.textContent = "▾ "; } else { tableCourante.style.display = 'none'; triangle.textContent = "▸ "; } } ///////////////////////////////////////////////////////////// ////// Fonctions pour les index (collapsible) [EC] /// ///////////////////////////////////////////////////////////// Loading
resources/styles/xml_2_html.css +40 −16 Original line number Diff line number Diff line Loading @@ -466,8 +466,6 @@ figure { border: 1px solid #e2e8f0; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 70px; } Loading Loading @@ -498,7 +496,13 @@ figure img { border-radius: 8px; box-shadow: var(--shadow-md); padding-bottom: 0px; margin-bottom: 3px; margin-bottom: 7px; } figure .fig-call-window img, figure .table-call-window img { border-radius: 0px; box-shadow: none; } body.dark .caption { Loading @@ -511,8 +515,11 @@ body.dark .caption { .table-call-window, .table-call-window a, .table-call-window a:visited { color: var(--third-color); text-decoration: none; align-self: flex-end; margin-top: -13px; margin-right: -6px; margin-bottom: -15px; } /* recensions */ Loading Loading @@ -545,7 +552,7 @@ div[id='figures'] figure { border-top: none; background-color: inherit; border: none; margin-top: var(--spacing-md); margin-top: -15px; margin-bottom: var(--spacing-md); padding-bottom: var(--spacing-md); padding-right: var(--spacing-md); Loading Loading @@ -608,7 +615,7 @@ table caption { table { width: 100%; border-collapse: collapse; display: none; display: table; text-indent: initial; line-height: normal; font-weight: normal; Loading @@ -619,9 +626,11 @@ table { border-spacing: 2px; white-space: normal; font-variant: normal; margin: var(--spacing-lg) 0; margin: 0 0; margin-bottom: 7px; font-family: var(--font-sans); font-size: 0.9375rem; background-color: white; } table.linguistic { Loading Loading @@ -654,7 +663,7 @@ td { padding: var(--spacing-sm); text-align: left; border-bottom: 1px solid #e2e8f0; font-size: 1.1rem; font-size: 0.9rem; padding-left: 2px; } Loading Loading @@ -685,13 +694,12 @@ table.lg td { font-size: 150%; } .fig-table .label, .fig-ill .label { .fig-table label, .fig-ill label { padding: 10px; margin: 0; cursor: pointer; padding-left: 1em; max-width: 80%; margin-bottom: 5px; line-height: 1.5; } .expand { Loading Loading @@ -723,7 +731,7 @@ figure .caption { } label { margin-bottom: 10px; margin-bottom: 15px; } .caption-right-panel, Loading Loading @@ -767,8 +775,8 @@ section.body h4:not(div.boxed-text *) { details.floating-note { width: 100%; margin-left: 18px; margin-top: 10px; margin-left: 9px; margin-top: 12px; } details.floating-note .body { Loading @@ -790,6 +798,22 @@ details.floating-note p { margin-top: 6px; } summary::marker { color: var(--third-color); content: "⇱ "; font-size: 105%; } .floating-note[open] summary::marker { content: "⇲ "; } summary span.idno { color: var(--third-color); font-family: var(--font-sans); font-size: 95%; } /****** annexe ******/ .appendix, .right-panel-appendix { Loading
xsl/jats/jats2html.xsl +93 −7 Original line number Diff line number Diff line Loading @@ -239,8 +239,9 @@ <xsl:apply-templates select="./article-meta/history"/> <xsl:apply-templates select="./article-meta/fpage"/> <xsl:apply-templates select="./article-meta/custom-meta-group[.//meta-name = 'cite this article']"/> <xsl:apply-templates select="./article-meta/permissions/license[@specific-use='article']"/> <xsl:apply-templates select="./article-meta/permissions/copyright-statement[@content-type='article']"/> <xsl:apply-templates select="./article-meta/permissions/license[@xlink:href and @specific-use='article']"/> <xsl:apply-templates select="./article-meta/permissions/copyright-statement[@specific-use='article']"/> <xsl:call-template name="AI-policy-article"/> <xsl:apply-templates select="./article-meta/article-id"/> </div> </div> Loading @@ -263,8 +264,9 @@ <xsl:apply-templates select="./article-meta//page-count"/> <xsl:apply-templates select="./article-meta/issue-sponsor"/> <xsl:apply-templates select="./article-meta/custom-meta-group[.//meta-name = 'cite this issue']"/> <xsl:apply-templates select="./article-meta/permissions/license[@specific-use='issue']"/> <xsl:apply-templates select="./article-meta/permissions/copyright-statement[@content-type='issue']"/> <xsl:apply-templates select="./article-meta/permissions/license[@xlink:href and @specific-use='issue']"/> <xsl:apply-templates select="./article-meta/permissions/copyright-statement[@specific-use='issue']"/> <xsl:call-template name="AI-policy-issue"/> <xsl:apply-templates select="./article-meta/isbn"/> <xsl:apply-templates select="./article-meta/issue-id"/> Loading Loading @@ -451,7 +453,7 @@ </xsl:template> <!-- template global pour les métadonnées --> <xsl:template match="journal-title | copyright-statement | license <xsl:template match="journal-title | copyright-statement | license[@xlink:href] | publisher-name | trans-title-group | alt-title[@alt-title-type='short'] | funding-group | abstract | trans-abstract | pub-date | date[@date-type='received'] | date[@date-type='accepted'] | issue-title | issue-subtitle | page-count | issue-sponsor[1] | issue-id[@pub-id-type='doi'] | article-id[@pub-id-type='doi'] | volume | issue | isbn | issn[normalize-space()] Loading @@ -478,6 +480,11 @@ <xsl:value-of select="'sponsor-group meta-field'"/> </xsl:attribute> </xsl:when> <xsl:when test="self::license[@license-type='AI-usage']"> <xsl:attribute name="class"> <xsl:value-of select="'AI-policy meta-field'"/> </xsl:attribute> </xsl:when> <xsl:otherwise> <xsl:attribute name="class"> <xsl:value-of select="concat(local-name(.),' meta-field')"/> Loading Loading @@ -581,7 +588,7 @@ <xsl:when test="self::copyright-statement"> <div><span class="idno trans" data-key='copyright'/><span class="lb"></span></div> </xsl:when> <xsl:when test="self::license"> <xsl:when test="self::license[@xlink:href]"> <div><span class="idno trans" data-key='license'/><span class="lb"></span></div> </xsl:when> <xsl:otherwise/> Loading Loading @@ -640,6 +647,85 @@ </div> </xsl:template> <!-- Template pour AI policy article --> <xsl:template name="AI-policy-article"> <xsl:variable name="articlePolicy" select="//license[@license-type='AI-usage' and @specific-use='article']/license-p/text()"/> <xsl:variable name="issuePolicy" select="//license[@license-type='AI-usage' and @specific-use='issue']/license-p/text()"/> <xsl:variable name="effectivePolicy"> <xsl:choose> <!-- Si articlePolicy existe --> <xsl:when test="$articlePolicy and $articlePolicy != ''"> <xsl:value-of select="$articlePolicy"/> </xsl:when> <!-- Sinon utiliser issuePolicy --> <xsl:otherwise> <xsl:value-of select="$issuePolicy"/> </xsl:otherwise> </xsl:choose> </xsl:variable> <!-- Toujours afficher pour l'article s'il y a une policy (article ou issue) --> <xsl:if test="$effectivePolicy != ''"> <div class="AI-policy meta-field"> <div><span class="idno trans" data-key='ai-policy'/><span class="lb"></span></div> <xsl:choose> <xsl:when test="$effectivePolicy = 'Yes'"> <span class="indo trans" data-key='ai-policy-in'/> </xsl:when> <xsl:otherwise> <span class="indo trans" data-key='ai-policy-out'/> </xsl:otherwise> </xsl:choose> </div> </xsl:if> </xsl:template> <!-- Template pour AI policy issue --> <xsl:template name="AI-policy-issue"> <xsl:variable name="articlePolicy" select="//license[@license-type='AI-usage' and @specific-use='article']/license-p/text()"/> <xsl:variable name="issuePolicy" select="//license[@license-type='AI-usage' and @specific-use='issue']/license-p/text()"/> <xsl:variable name="effectivePolicy"> <xsl:choose> <!-- Si issuePolicy existe --> <xsl:when test="$issuePolicy and $issuePolicy != ''"> <xsl:choose> <!-- Si articlePolicy est No, alors No (plus restrictif) --> <xsl:when test="$articlePolicy = 'No'"> <xsl:text>No</xsl:text> </xsl:when> <!-- Sinon utiliser issuePolicy --> <xsl:otherwise> <xsl:value-of select="$issuePolicy"/> </xsl:otherwise> </xsl:choose> </xsl:when> <!-- Si issuePolicy n'existe pas, utiliser articlePolicy seulement si c'est No --> <xsl:when test="$articlePolicy = 'No'"> <xsl:text>No</xsl:text> </xsl:when> <!-- Sinon ne rien afficher --> <xsl:otherwise></xsl:otherwise> </xsl:choose> </xsl:variable> <!-- Afficher seulement si effectivePolicy n'est pas vide --> <xsl:if test="$effectivePolicy != ''"> <div class="AI-policy meta-field"> <div><span class="idno trans" data-key='ai-policy'/><span class="lb"></span></div> <xsl:choose> <xsl:when test="$effectivePolicy = 'Yes'"> <span class="indo trans" data-key='ai-policy-in'/> </xsl:when> <xsl:otherwise> <span class="indo trans" data-key='ai-policy-out'/> </xsl:otherwise> </xsl:choose> </div> </xsl:if> </xsl:template> <xsl:template match="issue-sponsor[preceding-sibling::issue-sponsor]"/> <xsl:template match="publisher-loc"/> Loading
xsl/tei/03-tei2html_core.xsl +149 −73 File changed.Preview size limit exceeded, changes collapsed. Show changes