Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
17 commits
Select commit Hold shift + click to select a range
99ac66e
Insere a classe `thumbImg` para que a miniatura fique ajustada no mod…
robertatakenaka Feb 24, 2022
9c212c4
Faz ajustes para considerar figuras que não tem `@id`
robertatakenaka Feb 24, 2022
807d4e8
Junta os templates que tem conteúdo idêntico
robertatakenaka Feb 24, 2022
cdc4e36
Refatora: apaga templates, move seu conteúdo para o bloco que o aplic…
robertatakenaka Feb 24, 2022
aa9fd4b
Reduz templates parecidos
robertatakenaka Feb 24, 2022
8c6d7e4
Reduz a quantidade de templates, testa a existência de tradução no te…
robertatakenaka Feb 24, 2022
99e9b32
Cria templates mais genéricos para montar o conteúdo das abas: figure…
robertatakenaka Feb 24, 2022
4f61f92
Generaliza os templates que somam os elementos tables, figures e schemes
robertatakenaka Feb 24, 2022
292ee55
Cria um template genérico para apresentar os rótulos das abas
robertatakenaka Feb 24, 2022
a0439a1
Cria um template genérico para apresentar o conteúdo das abas
robertatakenaka Feb 24, 2022
dc1ae77
Corrige comentário
robertatakenaka Feb 24, 2022
e4a9421
Remove `@id` para considerar que é válido haver 1 figura sem `@id`
robertatakenaka Feb 25, 2022
17bb8ea
Faz testes para apresentação de figura sem `@id` e faz ajustes em XSL…
robertatakenaka Feb 25, 2022
869b9cf
Inclui testes pra `fig[@id]`
robertatakenaka Feb 25, 2022
44c6a1f
Cria testes para `table-wrap[@id]`
robertatakenaka Feb 26, 2022
52c8c48
Cria teste para o modal que contém as abas para figuras e tabelas
robertatakenaka Feb 26, 2022
91f820a
Inclui fixtures para as fig-group e table-wrap-group
robertatakenaka Mar 2, 2022
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
4 changes: 2 additions & 2 deletions packtools/catalogs/htmlgenerator/v2.0/article-text-fig.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
exclude-result-prefixes="xlink mml"
version="1.0">

<xsl:template match="fig[@id] | fig-group[@id]">
<xsl:template match="fig | fig-group[@id]">
<!--
Cria a miniatura no texto completo, que ao ser clicada mostra a figura
ampliada
Expand Down Expand Up @@ -50,7 +50,7 @@
<xsl:apply-templates select="." mode="label-caption-thumb"/><br/>
</xsl:template>

<xsl:template match="fig[@id] | fig-group[@id]" mode="figure-id">
<xsl:template match="fig | fig-group[@id]" mode="figure-id">
<xsl:value-of select="@id"/>
</xsl:template>

Expand Down
609 changes: 248 additions & 361 deletions packtools/catalogs/htmlgenerator/v2.0/html-modals.xsl

Large diffs are not rendered by default.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

1,019 changes: 1,019 additions & 0 deletions tests/fixtures/fig_sem_id/2236-8906-hoehnea-49-e1112020/expected.html

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

811 changes: 811 additions & 0 deletions tests/test_htmlgenerator.py

Large diffs are not rendered by default.