Skip to content

Commit 8172e78

Browse files
[página do artigo] Aprimora modal autoria e questões de acessibilidade (#989)
* feat: melhora acessibilidade de imagens e tabelas - Adiciona atributos alt vazios para imagens decorativas - Implementa captions com classe sr-only para screen readers - Melhora estrutura semântica de elementos visuais * feat: redesenha modal de autores com layout em cards - Implementa novo design com cards para cada autor - Adiciona ícones Material Design para melhor UX - Melhora apresentação de informações de contato e afiliações - Adiciona CSS inline para estilização consistente * refactor: melhora hierarquia semântica substituindo h3 por h2 com classe h5 - Atualiza títulos de seções em todos os templates XSL - Melhora acessibilidade e SEO com estrutura de headings mais consistente * feat: implementa configuração dinâmica de caminhos CSS - Substitui URLs hardcoded por variável CSS_PATH - Permite maior flexibilidade na configuração de recursos CSS * test: atualiza fixtures para refletir mudanças estruturais do HTML - Atualiza estrutura de headings nos arquivos de teste - Corrige caminhos CSS nos fixtures - Atualiza estrutura de modais e componentes
1 parent 5720b39 commit 8172e78

18 files changed

+588
-371
lines changed

packtools/catalogs/htmlgenerator/v3.0/article-meta-abstract.xsl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
</xsl:variable>
6868

6969
<div class="articleSection" data-anchor="{$title}">
70-
<h3 class="articleSectionTitle"><xsl:value-of select="$title"/></h3>
70+
<h2 class="h5"><xsl:value-of select="$title"/></h2>
7171
</div>
7272
</xsl:if>
7373
</xsl:template>
@@ -90,10 +90,10 @@
9090
</xsl:if>
9191

9292
<!-- título -->
93-
<h3>
93+
<h2>
9494
<xsl:attribute name="class">h5</xsl:attribute>
9595
<xsl:apply-templates select="." mode="title"></xsl:apply-templates>
96-
</h3>
96+
</h2>
9797
</xsl:template>
9898

9999
<xsl:template match="*[contains(name(),'abstract')]" mode="index">

packtools/catalogs/htmlgenerator/v3.0/article-text-back.xsl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@
77

88
<xsl:template match="*" mode="back-section-h">
99
<xsl:if test="title or label">
10-
<h3 class="articleSectionTitle">
10+
<h2 class="h5">
1111
<xsl:apply-templates select="label"/>
1212
<xsl:if test="label and title">&#160;</xsl:if>
1313
<xsl:apply-templates select="title"/>
14-
</h3>
14+
</h2>
1515
</xsl:if>
1616
</xsl:template>
1717

packtools/catalogs/htmlgenerator/v3.0/article-text-fn.xsl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,11 @@
3838
-->
3939
<xsl:variable name="name" select="@fn-type"/>
4040
<xsl:if test="not(preceding-sibling::node()) or preceding-sibling::*[1][not(@fn-type)] or preceding-sibling::*[1][@fn-type!=$name]">
41-
<h3 class="articleSectionTitle">
41+
<h2 class="h5">
4242
<xsl:apply-templates select="." mode="text-labels">
4343
<xsl:with-param name="text"><xsl:value-of select="@fn-type"/></xsl:with-param>
4444
</xsl:apply-templates>
45-
</h3>
45+
</h2>
4646
</xsl:if>
4747
</xsl:template>
4848

packtools/catalogs/htmlgenerator/v3.0/article-text-ref.xsl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@
1919
<!-- manter pareado class="articleSection" e data-anchor="nome da seção no menu esquerdo" -->
2020
<xsl:attribute name="class">articleSection</xsl:attribute>
2121
<xsl:attribute name="data-anchor"><xsl:apply-templates select="." mode="title"/></xsl:attribute>
22-
<h3>
23-
<xsl:attribute name="class">articleSectionTitle</xsl:attribute>
22+
<h2>
23+
<xsl:attribute name="class">h5</xsl:attribute>
2424
<xsl:apply-templates select="." mode="title"/>
25-
</h3>
25+
</h2>
2626
<div class="row">
2727
<div class="col ref-list">
2828
<ul class="refList articleFootnotes">

packtools/catalogs/htmlgenerator/v3.0/article-text-section-data-availability.xsl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,15 +47,15 @@
4747
<!-- manter pareado class="articleSection" e data-anchor="nome da seção no menu esquerdo" -->
4848
<div class="articleSection">
4949
<xsl:attribute name="data-anchor"><xsl:value-of select="$title"/></xsl:attribute>
50-
<h3 class="articleSectionTitle"><xsl:value-of select="$title"/></h3>
50+
<h2 class="h5"><xsl:value-of select="$title"/></h2>
5151
</div>
5252
</xsl:template>
5353

5454
<xsl:template match="ref-list" mode="data-availability">
5555
<xsl:if test=".//element-citation[@publication-type='data' or @publication-type='database']">
56-
<h3><xsl:apply-templates select="." mode="text-labels">
56+
<h2 class="h5"><xsl:apply-templates select="." mode="text-labels">
5757
<xsl:with-param name="text">Data citations</xsl:with-param>
58-
</xsl:apply-templates></h3>
58+
</xsl:apply-templates></h2>
5959
<xsl:apply-templates select=".//element-citation[@publication-type='data' or @publication-type='database']" mode="data-availability"/>
6060
</xsl:if>
6161
</xsl:template>

packtools/catalogs/htmlgenerator/v3.0/article-text-sub-article.xsl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<xsl:include href="../v2.0/article-text-sub-article.xsl"/>
77

88
<xsl:template match="sub-article[@article-type!='translation']//subject | response//subject">
9-
<h3 class="articleSectionTitle"><xsl:apply-templates select="*|text()"></xsl:apply-templates></h3>
9+
<h2 class="h5"><xsl:apply-templates select="*|text()"></xsl:apply-templates></h2>
1010
</xsl:template>
1111

1212
</xsl:stylesheet>

packtools/catalogs/htmlgenerator/v3.0/article-text.xsl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
<xsl:include href="../v2.0/article-text.xsl"/>
77

88
<xsl:template match="body/sec/title">
9-
<h3 class="articleSectionTitle">
9+
<h2 class="h5">
1010
<xsl:apply-templates select="*|text()"/>
11-
</h3>
11+
</h2>
1212
</xsl:template>
1313

1414
<xsl:template match="sec/sec/title">

packtools/catalogs/htmlgenerator/v3.0/article.xsl

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,10 @@
129129
</xsl:template>
130130

131131
<xsl:template match="/" mode="css">
132-
<link rel="stylesheet" href="https://ds.scielo.org/css/bootstrap.css"/>
133-
<link rel="stylesheet" href="https://ds.scielo.org/css/article.css"/>
132+
<!--link rel="stylesheet" href="https://ds.scielo.org/css/bootstrap.css"/>
133+
<link rel="stylesheet" href="https://ds.scielo.org/css/article.css"/-->
134+
<link rel="stylesheet" href="{$CSS_PATH}/bootstrap.css"/>
135+
<link rel="stylesheet" href="{$CSS_PATH}/article.css"/>
134136
</xsl:template>
135137

136138
<xsl:template match="/" mode="js">

packtools/catalogs/htmlgenerator/v3.0/generic-history.xsl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111
<xsl:attribute name="data-anchor"><xsl:apply-templates select="." mode="text-labels">
1212
<xsl:with-param name="text">History</xsl:with-param>
1313
</xsl:apply-templates></xsl:attribute>
14-
<h3 class="articleSectionTitle"><xsl:apply-templates select="." mode="text-labels">
14+
<h2 class="h5"><xsl:apply-templates select="." mode="text-labels">
1515
<xsl:with-param name="text">History</xsl:with-param>
16-
</xsl:apply-templates></h3>
16+
</xsl:apply-templates></h2>
1717
<div class="row">
1818
<div class="col-md-12 col-sm-12">
1919
<ul class="articleTimeline">

packtools/catalogs/htmlgenerator/v3.0/generic-pub-date.xsl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
1212
<xsl:attribute name="data-anchor"><xsl:apply-templates select="." mode="text-labels">
1313
<xsl:with-param name="text">Publication Dates</xsl:with-param>
1414
</xsl:apply-templates></xsl:attribute>
15-
<h3 class="articleSectionTitle"><xsl:apply-templates select="." mode="text-labels">
15+
<h2 class="h5"><xsl:apply-templates select="." mode="text-labels">
1616
<xsl:with-param name="text">Publication Dates</xsl:with-param>
17-
</xsl:apply-templates></h3>
17+
</xsl:apply-templates></h2>
1818
<div class="row">
1919
<div class="col-md-12 col-sm-12">
2020
<ul class="articleTimeline">

0 commit comments

Comments
 (0)