You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Retornar no front, metadados (por hora apenas título de artigo) com a "formatação" mantida (#231)
* Cria uma função para obter metadados (títulos dos artigos) mantendo os estilos (tags xml sps)
* Inclui no front a chave `display-format`
* Faz a conversão de italic para i e bold para b
* Troca hífen por `underscore`
<article-title>Uma Reflexão de Professores sobre Demonstrações Relativas à Irracionalidade de <inline-formula><mml:math display="inline" id="m1"><mml:mrow><mml:msqrt><mml:mn>2</mml:mn></mml:msqrt></mml:mrow></mml:math></inline-formula> </article-title>
1988
+
<trans-title-group xml:lang="en">
1989
+
<trans-title>Teachers' Considerations on the Irrationality Proof of <inline-formula><mml:math display="inline" id="m2"><mml:mrow><mml:msqrt><mml:mn>2</mml:mn></mml:msqrt></mml:mrow></mml:math></inline-formula> </trans-title>
<article-title>Heparin solution in the prevention of occlusions in Hickman<sup>®</sup> catheters a randomized clinical trial<xref ref-type="fn" rid="fn1">*</xref></article-title>
<article-title>Solução de <bold>heparina</bold> na prevenção de oclusão do Cateter de Hickman<sup>®</sup> ensaio clínico randomizado<xref ref-type="fn" rid="fn2">*</xref></article-title>
<article-title>Solución <italic>de heparina para prevenir</italic> oclusiones en catéteres de Hickman<sup>®</sup> un ensayo clínico aleatorizado<xref ref-type="fn" rid="fn3">*</xref></article-title>
2053
+
</title-group>
2054
+
</front-stub>
2055
+
</sub-article>
2056
+
'''
2057
+
'</article>'
2058
+
).encode("utf-8")
2059
+
2060
+
deftest_display_format_removes_xref(self):
2061
+
result=domain.display_format(self.xml)
2062
+
expected= {
2063
+
"article_title": {
2064
+
"en": (
2065
+
"""Heparin solution in the prevention of occlusions """
2066
+
"""in Hickman<sup>®</sup> catheters a randomized """
2067
+
"""clinical trial"""
2068
+
),
2069
+
"pt": (
2070
+
"""Solução de <b>heparina</b> na prevenção de oclusão do """
2071
+
"""Cateter de Hickman<sup>®</sup> ensaio clínico """
2072
+
"""randomizado"""),
2073
+
"es": (
2074
+
"""Solución <i>de heparina para prevenir</i> oclusiones en """
2075
+
"""catéteres de Hickman<sup>®</sup> un ensayo clínico """
0 commit comments