Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
85 changes: 85 additions & 0 deletions packtools/catalogs/htmlgenerator/v2.0/config-labels.xml
Original file line number Diff line number Diff line change
Expand Up @@ -618,4 +618,89 @@
<name lang="pt">Navegação do artigo</name>
<name lang="es">Navegación del artículo</name>
</term>

<term>
<name>author-notes-fn-edited-by</name>
<name lang="en">Edited by</name>
<name lang="pt">Editado por</name>
<name lang="es">Editado por</name>
</term>
<term>
<name>author-notes-fn-corresp</name>
<name lang="en">Correspondence</name>
<name lang="pt">Correspondência</name>
<name lang="es">Correspondencia</name>
</term>
<term>
<name>author-notes-fn-abbr</name>
<name lang="en">Abbreviations</name>
<name lang="pt">Abreviações</name>
<name lang="es">Abreviaciones</name>
</term>
<term>
<name>author-notes-fn-con</name>
<name lang="en">Contributions</name>
<name lang="pt">Contribuições</name>
<name lang="es">Contribuciones</name>
</term>
<term>
<name>author-notes-fn-coi-statement</name>
<name lang="en">Conflict of Interest</name>
<name lang="pt">Conflito de Interesse</name>
<name lang="es">Conflicto de Interés</name>
</term>
<term>
<name>author-notes-fn-current-aff</name>
<name lang="en">Current Affiliation</name>
<name lang="pt">Afiliação Atual</name>
<name lang="es">Afiliación Actual</name>
</term>
<term>
<name>author-notes-fn-deceased</name>
<name lang="en">Deceased</name>
<name lang="pt">Falecido</name>
<name lang="es">Fallecido</name>
</term>
<term>
<name>author-notes-fn-equal</name>
<name lang="en">Equal Contribution</name>
<name lang="pt">Contribuição Igualitária</name>
<name lang="es">Contribución Igualitaria</name>
</term>
<term>
<name>author-notes-fn-on-leave</name>
<name lang="en">On Leave</name>
<name lang="pt">Em Licença</name>
<name lang="es">Con Licencia</name>
</term>
<term>
<name>author-notes-fn-participating-researchers</name>
<name lang="en">Researchers</name>
<name lang="pt">Pesquisadores</name>
<name lang="es">Investigadores</name>
</term>
<term>
<name>author-notes-fn-previously-at</name>
<name lang="en">Previous Affiliation</name>
<name lang="pt">Afiliação Anterior</name>
<name lang="es">Afiliación Anterior</name>
</term>
<term>
<name>author-notes-fn-study-group-members</name>
<name lang="en">Study Group</name>
<name lang="pt">Grupo de Estudo</name>
<name lang="es">Grupo de Estudio</name>
</term>
<term>
<name>author-notes-fn-present-address</name>
<name lang="en">Present Address</name>
<name lang="pt">Endereço Atual</name>
<name lang="es">Dirección Actual</name>
</term>
<term>
<name>author-notes-fn-presented-by</name>
<name lang="en">Presented by</name>
<name lang="pt">Apresentado por</name>
<name lang="es">Presentado por</name>
</term>
</labels>
15 changes: 13 additions & 2 deletions packtools/catalogs/htmlgenerator/v3.0/article-meta-contrib.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,23 @@
<xsl:include href="../v2.0/article-meta-contrib.xsl"/>

<xsl:template match="article | sub-article" mode="contrib-group">
<xsl:variable name="id"><xsl:value-of select="@id"/></xsl:variable>
<div>
<xsl:attribute name="class">scielo__contribGroup</xsl:attribute>
<xsl:apply-templates select="front | front-stub" mode="contrib-group"/>
<xsl:apply-templates select="front | front-stub" mode="scimago-button">
<xsl:with-param name="id"><xsl:value-of select="$id"/></xsl:with-param>
</xsl:apply-templates>
</div>
</xsl:template>

<xsl:template match="front | front-stub" mode="contrib-group">
<xsl:variable name="AUTHOR_LIST_LABEL"><xsl:apply-templates select="." mode="interface">
<xsl:with-param name="text">Author list</xsl:with-param>
</xsl:apply-templates></xsl:variable>
<ul aria-label="{$AUTHOR_LIST_LABEL}" class="author-list" id="authorList"></ul>
</xsl:template>

<xsl:template match="contrib-group" mode="about-the-contrib-group-button">
<xsl:param name="id"/>
<!--
Expand All @@ -27,15 +38,15 @@
</xsl:if>
</xsl:template>

<xsl:template match="front | front-stub" mode="scimago-button">
<xsl:template match="article-meta | front | front-stub" mode="scimago-button">
<xsl:param name="id"/>
<!--
Adiciona o botão 'SCIMAGO INSTITUTIONS RANKINGS'
-->
<xsl:if test=".//aff">
<a href="" class="btn btn-secondary btn-sm outlineFadeLink"
data-bs-toggle="modal"
data-bs-target="#ModalScimago{$id}">SCIMAGO INSTITUTIONS RANKINGS</a>
data-bs-target="#ModalScimago{$id}">SCImago Institutions Rankings</a>
</xsl:if>
</xsl:template>

Expand Down
29 changes: 27 additions & 2 deletions packtools/catalogs/htmlgenerator/v3.0/article-text-fn.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -32,18 +32,43 @@
</div>
</xsl:template>

<xsl:template match="fn[@fn-type='edited-by'] | fn[ @fn-type='data-availability']" mode="back-section-h">
<xsl:template match="fn| fn[@fn-type='edited-by'] | fn[@fn-type='data-availability']" mode="back-section-h">
<!--
Apresenta o título da seção no texto completo
-->
<xsl:variable name="name" select="@fn-type"/>
<xsl:if test="not(preceding-sibling::node()) or preceding-sibling::*[1][not(@fn-type)] or preceding-sibling::*[1][@fn-type!=$name]">
<h2 class="h5">
<xsl:apply-templates select="." mode="text-labels">
<xsl:with-param name="text"><xsl:value-of select="@fn-type"/></xsl:with-param>
<xsl:with-param name="text">author-notes-fn-<xsl:value-of select="@fn-type"/></xsl:with-param>
</xsl:apply-templates>
</h2>
</xsl:if>
</xsl:template>

<xsl:template match="author-notes" mode="author-notes-as-sections">
<!-- apresenta todas as notas de autores -->
<xsl:apply-templates select="fn" mode="back-section"/>
</xsl:template>

<xsl:template match="fn" mode="back-section-menu">
<xsl:variable name="name" select="@fn-type"/>
<!--
Evita que no menu apareça o mesmo título mais de uma vez
-->
<xsl:if test="not(preceding-sibling::node()) or preceding-sibling::*[1][not(@fn-type)] or preceding-sibling::*[1][@fn-type!=$name]">
<!-- manter pareado class="articleSection" e data-anchor="nome da seção no menu esquerdo" -->
<xsl:attribute name="class">articleSection</xsl:attribute>
<xsl:attribute name="data-anchor">
<xsl:apply-templates select="." mode="text-labels">
<xsl:with-param name="text">author-notes-fn-<xsl:value-of select="@fn-type"/></xsl:with-param>
</xsl:apply-templates>
</xsl:attribute>
</xsl:if>
</xsl:template>

<xsl:template match="fn" mode="back-section-content">
<xsl:apply-templates select="label|p" mode="div-fn-list-item"/>
</xsl:template>

</xsl:stylesheet>
9 changes: 7 additions & 2 deletions packtools/catalogs/htmlgenerator/v3.0/article.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,15 @@
<xsl:include href="html-modals-graphics.xsl"/>
<xsl:include href="html-modals.xsl"/>
<xsl:include href="html-modals-contribs.xsl"/>
<xsl:include href="html-modals-contrib-group.xsl"/>
<xsl:include href="html-modals-tables.xsl"/>
<xsl:include href="html-modals-figs.xsl"/>
<xsl:include href="html-modals-scheme.xsl"/>
<xsl:include href="html-modals-how2cite.xsl"/>
<xsl:include href="html-head.xsl"/>

<xsl:include href="bottom-floating-menu.xsl"/>
<xsl:include href="article-css.xsl"/>

<xsl:variable name="ref" select="//ref"/>
<xsl:variable name="fn" select="//*[name()!='table-wrap-foot']//fn"/>
Expand Down Expand Up @@ -133,12 +135,13 @@
<link rel="stylesheet" href="https://ds.scielo.org/css/article.css"/-->
<link rel="stylesheet" href="{$CSS_PATH}/bootstrap.css"/>
<link rel="stylesheet" href="{$CSS_PATH}/article.css"/>
<style>
<style type="text/css">
.modal-dialog-scrollable .modal-body {
overflow-y:auto;
scrollbar-gutter:stable;
}
</style>
<xsl:apply-templates select="." mode="modal-contrib-group-css"/>
</xsl:template>

<xsl:template match="/" mode="js">
Expand All @@ -163,7 +166,9 @@
</xsl:if>
<xsl:if test="$CROSSMARK_POLICY_PAGE!=''">
<script src="https://crossmark-cdn.crossref.org/widget/v2.0/widget.js"/>
</xsl:if>
</xsl:if>

<xsl:apply-templates select="." mode="modal-contrib-js"/>
</xsl:template>

<xsl:template match="article" mode="article">
Expand Down
Loading