Skip to content

Commit 61199bd

Browse files
Faz ajuste na apresentação de imagem que não é de figura (imagem solta)
1 parent d39056e commit 61199bd

4 files changed

Lines changed: 20 additions & 60 deletions

File tree

packtools/catalogs/htmlgenerator/v2.0/article-text-graphic.xsl

Lines changed: 2 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -63,18 +63,7 @@
6363
APRESENTA PREFERENCIALMENTE A MINIATURA PARA EXPANDIR OU
6464
NA AUSÊNCIA DA MINIATURA, APRESENTA A IMAGEM PADRÃO
6565
-->
66-
<xsl:variable name="img_id"><xsl:apply-templates select="." mode="image-id"/></xsl:variable>
67-
<div class="row fig" id="{$img_id}">
68-
<a name="{$img_id}"></a>
69-
<div class="col-md-4 col-sm-4">
70-
<!-- manter href="" -->
71-
<a href="" data-toggle="modal" data-target="#ModalImg{$img_id}">
72-
<div class="thumbImg">
73-
<xsl:apply-templates select="." mode="display-thubmnail-graphic"/>
74-
</div>
75-
</a>
76-
</div>
77-
</div>
66+
<xsl:apply-templates select="graphic[@xlink:href!='' and @specific-use='scielo-web' and starts-with(@content-type, 'scielo-')][1]" mode="thumbnail-div"/>
7867
</xsl:template>
7968

8069
<xsl:template match="graphic" mode="thumbnail-div">
@@ -83,18 +72,7 @@
8372
APRESENTA PREFERENCIALMENTE A MINIATURA PARA EXPANDIR OU
8473
NA AUSÊNCIA DA MINIATURA, APRESENTA A IMAGEM PADRÃO
8574
-->
86-
<xsl:variable name="img_id"><xsl:apply-templates select="." mode="image-id"/></xsl:variable>
87-
<div class="row fig" id="{$img_id}">
88-
<a name="{$img_id}"></a>
89-
<div class="col-md-4 col-sm-4">
90-
<!-- manter href="" -->
91-
<a href="" data-toggle="modal" data-target="#ModalImg{$img_id}">
92-
<div class="thumbImg">
93-
<xsl:apply-templates select="." mode="display-graphic"/>
94-
</div>
95-
</a>
96-
</div>
97-
</div>
75+
<img class="rounded img-fluid" src="{@xlink:href}"/>
9876
</xsl:template>
9977

10078
<!-- MODAL FILE LOCATION -->

tests/fixtures/htmlgenerator/alternatives/imagens_fora_de_fig.en.html

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
<meta charset="utf-8">
55
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
66
<title></title>
7-
<link rel="stylesheet" href="/Users/roberta.takenaka/github.com/scieloorg/packtools/packtools/catalogs/htmlgenerator/static/scielo-article-standalone.css">
8-
<link rel="stylesheet" href="/Users/roberta.takenaka/github.com/scieloorg/packtools/packtools/catalogs/htmlgenerator/static/scielo-bundle-print.css" media="print">
7+
<link rel="stylesheet" href="/Users/roberta.takenaka/github.com/scieloorg/packtools2/packtools/packtools/catalogs/htmlgenerator/static/scielo-article-standalone.css">
8+
<link rel="stylesheet" href="/Users/roberta.takenaka/github.com/scieloorg/packtools2/packtools/packtools/catalogs/htmlgenerator/static/scielo-bundle-print.css" media="print">
99
<link rel="alternate" type="application/rss+xml" title="SciELO" href="">
1010
</head>
1111
<body class="journal article">
@@ -35,9 +35,7 @@ <h1 class="article-title">
3535
<article id="articleText" class="col-md-10 col-md-offset-2 col-sm-12 col-sm-offset-0"><div class="articleSection" data-anchor="Text">
3636
<p></p>
3737
<p>
38-
<div class="row fig" id="d9b80494cba33a6e60786bdfc56a0c9c048125af">
39-
<a name="d9b80494cba33a6e60786bdfc56a0c9c048125af"></a><div class="col-md-4 col-sm-4"><a href="" data-toggle="modal" data-target="#ModalImgd9b80494cba33a6e60786bdfc56a0c9c048125af"><div class="thumbImg"><img style="max-width:100%" src="https://minio.scielo.br/documentstore/1518-8345/L34w8qg8ccfQxW79FZH3Bnh/352c2528e5e3489f3d2c9d4a958bccd776b2667d.jpg"></div></a></div>
40-
</div>
38+
<img class="rounded img-fluid" src="https://minio.scielo.br/documentstore/1518-8345/L34w8qg8ccfQxW79FZH3Bnh/352c2528e5e3489f3d2c9d4a958bccd776b2667d.jpg"><img class="rounded img-fluid" src="https://minio.scielo.br/documentstore/1518-8345/L34w8qg8ccfQxW79FZH3Bnh/8d6031a105ac49f92d2bac1dab55785ec62ed139.tif"><img class="rounded img-fluid" src="https://minio.scielo.br/documentstore/1518-8345/L34w8qg8ccfQxW79FZH3Bnh/d9b80494cba33a6e60786bdfc56a0c9c048125af.png"><img class="rounded img-fluid" src="https://minio.scielo.br/documentstore/1518-8345/L34w8qg8ccfQxW79FZH3Bnh/352c2528e5e3489f3d2c9d4a958bccd776b2667d.jpg">
4139
</p>
4240
<p></p>
4341
<p>The pandemic due to COVID-19, an infection caused by the SARS-CoV-2 coronavirus initiated in Wuhan(China) in 2019, overlapped with a pre-existing pandemic, that of Type2 Diabetes Mellitus(DM2)(<span class="ref"><sup class="xref xrefblue">1</sup><span class="refCtt closed"><span>1 Anghebem MI, Rego FGM, Picheth G. COVID-19 and Diabetes: two distinct pandemics and their relationship. Rev Bras Anal Clin. 2020;52(2):154-9. doi: http://doi.org/10.21877/2448-3877.20200001</span><br><a href="http://doi.org/10.21877/2448-3877.20200001" target="_blank">http://doi.org/10.21877/2448-3877.202000...
@@ -46,17 +44,13 @@ <h1 class="article-title">
4644
</a></span></span>).</p>
4745
<p></p>
4846
<p>
49-
<div class="row fig" id="c225686bbd2607bacabd946fcb55b30a10b9e5d2">
50-
<a name="c225686bbd2607bacabd946fcb55b30a10b9e5d2"></a><div class="col-md-4 col-sm-4"><a href="" data-toggle="modal" data-target="#ModalImgc225686bbd2607bacabd946fcb55b30a10b9e5d2"><div class="thumbImg"><img style="max-width:100%" src="https://minio.scielo.br/documentstore/1518-8345/L34w8qg8ccfQxW79FZH3Bnh/d414c6174f0a5069a63c1f4450df8011666a1e35.jpg"></div></a></div>
51-
</div>
47+
<img class="rounded img-fluid" src="https://minio.scielo.br/documentstore/1518-8345/L34w8qg8ccfQxW79FZH3Bnh/d414c6174f0a5069a63c1f4450df8011666a1e35.jpg"><img class="rounded img-fluid" src="https://minio.scielo.br/documentstore/1518-8345/L34w8qg8ccfQxW79FZH3Bnh/6c7e45494816692122f9467ee9b5ee7a88f86e01.tif"><img class="rounded img-fluid" src="https://minio.scielo.br/documentstore/1518-8345/L34w8qg8ccfQxW79FZH3Bnh/c225686bbd2607bacabd946fcb55b30a10b9e5d2.png"><img class="rounded img-fluid" src="https://minio.scielo.br/documentstore/1518-8345/L34w8qg8ccfQxW79FZH3Bnh/d414c6174f0a5069a63c1f4450df8011666a1e35.jpg">
5248
</p>
5349
<p></p>
5450
<p>The UK Prospective Diabetes Study(UKPDS) showed that DM2 control prevents chronic complications(<span class="ref"><sup class="xref xrefblue">3</sup><span class="refCtt closed"><span>3 UK Prospective Diabetes Study (UKPDS) Group. Intensive blood-glucose control with sulphonylureas or insulin compared with conventional treatment and risk of complications in patients with type 2 diabetes (UKPDS 33). Lancet. 1998;352:837-53</span></span></span>). In view of COVID-19, new knowledge reiterates the importance of controlling DM2, now focusing on preventing the severe form of an acute infectious disease.</p>
5551
<p></p>
5652
<p>
57-
<div class="row fig" id="0d201e31cd5186c2a53f178bfd0509401f2d1ca6">
58-
<a name="0d201e31cd5186c2a53f178bfd0509401f2d1ca6"></a><div class="col-md-4 col-sm-4"><a href="" data-toggle="modal" data-target="#ModalImg0d201e31cd5186c2a53f178bfd0509401f2d1ca6"><div class="thumbImg"><img style="max-width:100%" src="https://minio.scielo.br/documentstore/1518-8345/L34w8qg8ccfQxW79FZH3Bnh/0be8783d8e1eb3e4b98cf803ff71ce829a652a1b.jpg"></div></a></div>
59-
</div>
53+
<img class="rounded img-fluid" src="https://minio.scielo.br/documentstore/1518-8345/L34w8qg8ccfQxW79FZH3Bnh/0be8783d8e1eb3e4b98cf803ff71ce829a652a1b.jpg"><img class="rounded img-fluid" src="https://minio.scielo.br/documentstore/1518-8345/L34w8qg8ccfQxW79FZH3Bnh/7172c66d1c5fa56dc230efa7123dea014f21e62f.tif"><img class="rounded img-fluid" src="https://minio.scielo.br/documentstore/1518-8345/L34w8qg8ccfQxW79FZH3Bnh/0d201e31cd5186c2a53f178bfd0509401f2d1ca6.png"><img class="rounded img-fluid" src="https://minio.scielo.br/documentstore/1518-8345/L34w8qg8ccfQxW79FZH3Bnh/0be8783d8e1eb3e4b98cf803ff71ce829a652a1b.jpg">
6054
</p>
6155
<p></p>
6256
<p>DM2 is defined by changes in glucose homeostasis and by a chronic inflammation condition, but it also induces changes in the immune system, making the patient affected by this disease more susceptible to infections, including those caused by viruses such as SARS-CoV-2. DM2 also causes activation of the renin-angiotensin-aldosterone system and endothelial damage, with a consequent increase in the risk of thrombosis. However, COVID-19 is a disease that can cause hyperinflammation and has been associated with an increased risk of occurrence of thromboembolic phenomena, especially pulmonary thromboembolism, more frequently observed in patients with severe pneumonia admitted to intensive care units(ICUs)(<span class="ref"><sup class="xref xrefblue">4</sup><span class="refCtt closed"><span>4 Lim S, Bae JH, Kwon, HS, Nauck MA. COVID-19 and diabetes mellitus: from pathophysiology to clinical management. Nat Rev Endocrinol. 2021;17:11-30 https://doi.org/10.1038/s41574-020-00435-4</span><br><a href="https://doi.org/10.1038/s41574-020-00435-4" target="_blank">https://doi.org/10.1038/s41574-020-00435...
@@ -207,6 +201,6 @@ <h1 class="articleSectionTitle">Publication Dates</h1>
207201
document.getElementById('citationCut').value = citation.replace('&lt;', '<').replace('&gt;', ">");
208202
</script>
209203
</div>
210-
<script src="/Users/roberta.takenaka/github.com/scieloorg/packtools/packtools/catalogs/htmlgenerator/static/scielo-article-standalone-min.js"></script>
204+
<script src="/Users/roberta.takenaka/github.com/scieloorg/packtools2/packtools/packtools/catalogs/htmlgenerator/static/scielo-article-standalone-min.js"></script>
211205
</body>
212206
</html>

tests/fixtures/htmlgenerator/alternatives/imagens_fora_de_fig.es.html

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
<meta charset="utf-8">
55
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
66
<title></title>
7-
<link rel="stylesheet" href="/Users/roberta.takenaka/github.com/scieloorg/packtools/packtools/catalogs/htmlgenerator/static/scielo-article-standalone.css">
8-
<link rel="stylesheet" href="/Users/roberta.takenaka/github.com/scieloorg/packtools/packtools/catalogs/htmlgenerator/static/scielo-bundle-print.css" media="print">
7+
<link rel="stylesheet" href="/Users/roberta.takenaka/github.com/scieloorg/packtools2/packtools/packtools/catalogs/htmlgenerator/static/scielo-article-standalone.css">
8+
<link rel="stylesheet" href="/Users/roberta.takenaka/github.com/scieloorg/packtools2/packtools/packtools/catalogs/htmlgenerator/static/scielo-bundle-print.css" media="print">
99
<link rel="alternate" type="application/rss+xml" title="SciELO" href="">
1010
</head>
1111
<body class="journal article">
@@ -35,9 +35,7 @@ <h1 class="article-title">
3535
<article id="articleText" class="col-md-10 col-md-offset-2 col-sm-12 col-sm-offset-0"><div>
3636
<p></p>
3737
<p>
38-
<div class="row fig" id="d9b80494cba33a6e60786bdfc56a0c9c048125af">
39-
<a name="d9b80494cba33a6e60786bdfc56a0c9c048125af"></a><div class="col-md-4 col-sm-4"><a href="" data-toggle="modal" data-target="#ModalImgd9b80494cba33a6e60786bdfc56a0c9c048125af"><div class="thumbImg"><img style="max-width:100%" src="https://minio.scielo.br/documentstore/1518-8345/L34w8qg8ccfQxW79FZH3Bnh/352c2528e5e3489f3d2c9d4a958bccd776b2667d.jpg"></div></a></div>
40-
</div>
38+
<img class="rounded img-fluid" src="https://minio.scielo.br/documentstore/1518-8345/L34w8qg8ccfQxW79FZH3Bnh/352c2528e5e3489f3d2c9d4a958bccd776b2667d.jpg"><img class="rounded img-fluid" src="https://minio.scielo.br/documentstore/1518-8345/L34w8qg8ccfQxW79FZH3Bnh/9a4a202884a687ad4858fc95fbf3be801e63215b.tif"><img class="rounded img-fluid" src="https://minio.scielo.br/documentstore/1518-8345/L34w8qg8ccfQxW79FZH3Bnh/d9b80494cba33a6e60786bdfc56a0c9c048125af.png"><img class="rounded img-fluid" src="https://minio.scielo.br/documentstore/1518-8345/L34w8qg8ccfQxW79FZH3Bnh/352c2528e5e3489f3d2c9d4a958bccd776b2667d.jpg">
4139
</p>
4240
<p></p>
4341
<p>La pandemia de COVID-19, una infección causada por el coronavirus SARS-CoV-2, que comenzó en Wuhan (China) en 2019, se superpuso a una pandemia preexistente, la de Diabetes Mellitus tipo 2 (DM2)(<span class="ref"><sup class="xref xrefblue">1</sup><span class="refCtt closed"><span>1 Anghebem MI, Rego FGM, Picheth G. COVID-19 and Diabetes: two distinct pandemics and their relationship. Rev Bras Anal Clin. 2020;52(2):154-9. doi: http://doi.org/10.21877/2448-3877.20200001</span><br><a href="http://doi.org/10.21877/2448-3877.20200001" target="_blank">http://doi.org/10.21877/2448-3877.202000...
@@ -46,17 +44,13 @@ <h1 class="article-title">
4644
</a></span></span>).</p>
4745
<p></p>
4846
<p>
49-
<div class="row fig" id="c225686bbd2607bacabd946fcb55b30a10b9e5d2">
50-
<a name="c225686bbd2607bacabd946fcb55b30a10b9e5d2"></a><div class="col-md-4 col-sm-4"><a href="" data-toggle="modal" data-target="#ModalImgc225686bbd2607bacabd946fcb55b30a10b9e5d2"><div class="thumbImg"><img style="max-width:100%" src="https://minio.scielo.br/documentstore/1518-8345/L34w8qg8ccfQxW79FZH3Bnh/d414c6174f0a5069a63c1f4450df8011666a1e35.jpg"></div></a></div>
51-
</div>
47+
<img class="rounded img-fluid" src="https://minio.scielo.br/documentstore/1518-8345/L34w8qg8ccfQxW79FZH3Bnh/d414c6174f0a5069a63c1f4450df8011666a1e35.jpg"><img class="rounded img-fluid" src="https://minio.scielo.br/documentstore/1518-8345/L34w8qg8ccfQxW79FZH3Bnh/1fdbee345fae2065d9bd0fd0b4b09a4f77e99e90.tif"><img class="rounded img-fluid" src="https://minio.scielo.br/documentstore/1518-8345/L34w8qg8ccfQxW79FZH3Bnh/c225686bbd2607bacabd946fcb55b30a10b9e5d2.png"><img class="rounded img-fluid" src="https://minio.scielo.br/documentstore/1518-8345/L34w8qg8ccfQxW79FZH3Bnh/d414c6174f0a5069a63c1f4450df8011666a1e35.jpg">
5248
</p>
5349
<p></p>
5450
<p>El UK Prospective Diabetes Study (UKPDS) demostró que el control de la DM2 previene las complicaciones crónicas(<span class="ref"><sup class="xref xrefblue">3</sup><span class="refCtt closed"><span>3 UK Prospective Diabetes Study (UKPDS) Group. Intensive blood-glucose control with sulphonylureas or insulin compared with conventional treatment and risk of complications in patients with type 2 diabetes (UKPDS 33). Lancet. 1998;352:837-53</span></span></span>). Ante el COVID-19, hay nuevos conocimientos que reiteran la importancia de controlar la DM2, que ahora se enfocan en la prevención de la forma severa de una enfermedad infecciosa aguda.</p>
5551
<p></p>
5652
<p>
57-
<div class="row fig" id="0d201e31cd5186c2a53f178bfd0509401f2d1ca6">
58-
<a name="0d201e31cd5186c2a53f178bfd0509401f2d1ca6"></a><div class="col-md-4 col-sm-4"><a href="" data-toggle="modal" data-target="#ModalImg0d201e31cd5186c2a53f178bfd0509401f2d1ca6"><div class="thumbImg"><img style="max-width:100%" src="https://minio.scielo.br/documentstore/1518-8345/L34w8qg8ccfQxW79FZH3Bnh/0be8783d8e1eb3e4b98cf803ff71ce829a652a1b.jpg"></div></a></div>
59-
</div>
53+
<img class="rounded img-fluid" src="https://minio.scielo.br/documentstore/1518-8345/L34w8qg8ccfQxW79FZH3Bnh/0be8783d8e1eb3e4b98cf803ff71ce829a652a1b.jpg"><img class="rounded img-fluid" src="https://minio.scielo.br/documentstore/1518-8345/L34w8qg8ccfQxW79FZH3Bnh/aa495447d05a9156d0d15f5f95f8890ee1d55743.tif"><img class="rounded img-fluid" src="https://minio.scielo.br/documentstore/1518-8345/L34w8qg8ccfQxW79FZH3Bnh/0d201e31cd5186c2a53f178bfd0509401f2d1ca6.png"><img class="rounded img-fluid" src="https://minio.scielo.br/documentstore/1518-8345/L34w8qg8ccfQxW79FZH3Bnh/0be8783d8e1eb3e4b98cf803ff71ce829a652a1b.jpg">
6054
</p>
6155
<p></p>
6256
<p>La DM2 es definida por cambios en la homeostasis de la glucosa y por un cuadro de inflamación crónica, pero también induce cambios en el sistema inmunológico, haciendo que el paciente afectado por esta enfermedad sea más susceptible a infecciones, incluso a las causadas por virus como el SARS-CoV-2. La DM2 también provoca la activación del sistema renina-angiotensina-aldosterona y daño endotelial, con un consecuente aumento del riesgo de trombosis. El COVID-19 es una enfermedad que puede causar hiperinflamación y se ha asociado con un mayor riesgo de aparición de fenómenos tromboembólicos, especialmente tromboembolismo pulmonar, que se observa con mayor frecuencia en pacientes con neumonía grave ingresados en unidades de terapia intensiva (UTI)(<span class="ref"><sup class="xref xrefblue">4</sup><span class="refCtt closed"><span>4 Lim S, Bae JH, Kwon, HS, Nauck MA. COVID-19 and diabetes mellitus: from pathophysiology to clinical management. Nat Rev Endocrinol. 2021;17:11-30 https://doi.org/10.1038/s41574-020-00435-4</span><br><a href="https://doi.org/10.1038/s41574-020-00435-4" target="_blank">https://doi.org/10.1038/s41574-020-00435...
@@ -207,6 +201,6 @@ <h1 class="articleSectionTitle">Fechas de Publicación</h1>
207201
document.getElementById('citationCut').value = citation.replace('&lt;', '<').replace('&gt;', ">");
208202
</script>
209203
</div>
210-
<script src="/Users/roberta.takenaka/github.com/scieloorg/packtools/packtools/catalogs/htmlgenerator/static/scielo-article-standalone-min.js"></script>
204+
<script src="/Users/roberta.takenaka/github.com/scieloorg/packtools2/packtools/packtools/catalogs/htmlgenerator/static/scielo-article-standalone-min.js"></script>
211205
</body>
212206
</html>

0 commit comments

Comments
 (0)