scieloorg / document-store-migracao

Document Store (Kernel) - Migração
BSD 2-Clause "Simplified" License
1 stars 6 forks source link

[dsm][conversao] Corrigir a conversão de Figura que foi convertida a nota de rodapé #238

Closed robertatakenaka closed 4 years ago

robertatakenaka commented 4 years ago

Descrição do problema

Corrigir a conversão de Figura que foi convertida a nota de rodapé. http://www.scielo.br/scielo.php?script=sci_arttext&pid=S0100-879X2010001000001 Observar a Figura 1 e 2. Ocorre também em S0100-879X2010001000007, ou seja, em outros arquivos da BJMBR.

Passos para reproduzir o problema

ds_migracao convert --file xml/source/S0100-879X2010001000001.xml

Comportamento esperado

Deveria gerar <fig>

Screenshots ou vídeos

n/a

Anexos

Original S0100-879X2010001000001.xml.zip Convertido com erro S0100-879X2010001000001.en.xml.zip

robertatakenaka commented 4 years ago

O html original está assim:

<a href="/img/revistas/bjmbr/v43n10/html/650i02.htm">
<img src="/img/revistas/bjmbr/v43n10/650i02peq.jpg" border="2">
</a>
<font face="Arial, Helvetica, sans-serif">
<a name="Fig2"></a>
Figure 2. During early life (postnatal day 8), pairing an odor with a 0.5-mA shock does not produce a change in pCREB expression (top) or <em>2</em>-<em>deoxy-d-glucose</em> (2-DG) uptake (bottom) in the lateral (LA) and basolateral (BLA) amygdala. The expression of phosphorylated cAMP response element binding protein (pCREB) in the cortical amygdala (CoA), a component of the olfactory cortex, appears to be heightened by odor exposure.
</font>

O conteúdo de:

http://www.scielo.br/img/revistas/bjmbr/v43n10/html/650i02.htm, mencionado dentro do body é:

<P ALIGN=left>
<font size="2" face="Arial, Helvetica, sans-serif">
<span lang="EN">
<span lang="EN">C. Raineki, A. Pickenhagen, T.L. Roth, D.M. Babstock, J.H. McLean, C.W. Harley, A.B. Lucion and R.M. Sullivan</span>. The neurobiology of infant maternal odor learning. <SPAN 
class=facepage-title>
<SPAN class=facepage-authors->Braz J Med Biol Res 2010; 43: 914-919.</SPAN> </SPAN></span></font>
 <CENTER>
   <p>
<FONT SIZE=4><b>
<a href="javascript:history.back()">
<img src="/img/revistas/bjmbr/v43n10/650i02.jpg" align=BOTTOM border=0 vspace=0 hspace=0 width="800" height="349"></a>
</b></FONT></p>
   <div align="left">
     <p ALIGN="LEFT">
<span lang="EN">
<span lang="EN">
<font face="Arial, Helvetica, sans-serif">Figure 2. During early life (postnatal day 8), pairing an odor with a 0.5-mA shock does not produce a change in pCREB expression (top) or <em>2</em>-<em>deoxy-d-glucose</em> (2-DG) uptake (bottom) in the lateral (LA) and basolateral (BLA) amygdala. The expression of phosphorylated cAMP response element binding protein (pCREB) in the cortical amygdala (CoA), a component of the olfactory cortex, appears to be heightened by odor exposure.</font></span></span></p>
   </div>
 </CENTER>

Resultado até o pipe RemoveInvalidBRPipe, antes de ConvertElementsWhichHaveIdPipe:

<a href="#650i02" link-type="internal">
  <img src="/img/revistas/bjmbr/v43n10/650i02peq.jpg" border="2"/>
</a>
<p content-type="html">
  <a id="650i02" name="650i02"/>&#13;
 <p align="left">C. Raineki, A. Pickenhagen, T.L. Roth, D.M. Babstock, J.H. McLean, C.W. Harley, A.B. Lucion and R.M. Sullivan. The neurobiology of infant maternal odor learning. Braz J Med Biol Res 2010; 43: 914-919. &#13;
 </p>&#13;
   <p>
    <ext-link ext-link-type="uri" xlink:href="javascript:history.back()">
    <img src="/img/revistas/bjmbr/v43n10/650i02.jpg" align="BOTTOM" border="0" vspace="0" hspace="0" width="800" height="349" imported="true"/>
 </ext-link>
 </p>&#13;
   <p>&#13;
     <p align="LEFT">Figure 2. During early life (postnatal day 8), pairing an odor with a 0.5-mA shock does not produce a change in pCREB expression (top) or <italic>2</italic>-<italic>deoxy-d-glucose</italic> (2-DG) uptake (bottom) in the lateral (LA) and basolateral (BLA) amygdala. The expression of phosphorylated cAMP response element binding protein (pCREB) in the cortical amygdala (CoA), a component of the olfactory cortex, appears to be heightened by odor exposure.</p>&#13;
   </p>&#13;
 &#13;
 &#13;
</p>
<a name="Fig2" id="Fig2"/>
Figure 2. During early life (postnatal day 8), pairing an odor with a 0.5-mA shock does not produce a change in pCREB expression (top) or <italic>2</italic>-<italic>deoxy-d-glucose</italic> (2-DG) uptake (bottom) in the lateral (LA) and basolateral (BLA) amygdala. The expression of phosphorylated cAMP response element binding protein (pCREB) in the cortical amygdala (CoA), a component of the olfactory cortex, appears to be heightened by odor exposure. <p>[View larger version of this image (340 K JPG file)]</p>  
<hr align="LEFT" size="2"/>

Gerou:

<p>
  <xref ref-type="fn" rid="fn650i02">
  <inline-graphic xlink:href="/img/revistas/bjmbr/v43n10/650i02peq.jpg"/>
</xref>
</p>
<p>
  <fn id="fn650i02">
  <p>C. Raineki, A. Pickenhagen, T.L. Roth, D.M. Babstock, J.H. McLean, C.W. Harley, A.B. Lucion and R.M. Sullivan. The neurobiology of infant maternal odor learning. Braz J Med Biol Res 2010; 43: 914-919. &#13;
 </p>
 <p>&#13;
   </p>
 </fn>
 </p>
   <p>
    <ext-link ext-link-type="uri" xlink:href="javascript:history.back()">
    <inline-graphic xlink:href="/img/revistas/bjmbr/v43n10/650i02.jpg"/>
 </ext-link>
 </p>&#13;
   &#13;
     <p>Figure 2. During early life (postnatal day 8), pairing an odor with a 0.5-mA shock does not produce a change in pCREB expression (top) or <italic>2</italic>-<italic>deoxy-d-glucose</italic> (2-DG) uptake (bottom) in the lateral (LA) and basolateral (BLA) amygdala. The expression of phosphorylated cAMP response element binding protein (pCREB) in the cortical amygdala (CoA), a component of the olfactory cortex, appears to be heightened by odor exposure.</p>&#13;
   &#13;
 &#13;
 &#13;
<fig id="fig2"/>
<p>
  <bold label-of="Fig2">Figure 2.</bold> During early life (postnatal day 8), pairing an odor with a 0.5-mA shock does not produce a change in pCREB expression (top) or </p>
<p>
  <italic>2</italic>-</p>
<p>
  <italic>deoxy-d-glucose</italic> (2-DG) uptake (bottom) in the lateral (LA) and basolateral (BLA) amygdala. The expression of phosphorylated cAMP response element binding protein (pCREB) in the cortical amygdala (CoA), a component of the olfactory cortex, appears to be heightened by odor exposure. </p>
<p>[View larger version of this image (340 K JPG file)]</p>
robertatakenaka commented 4 years ago

Outro caso similar de figura com miniatura.

<table border="0">    
<tbody>
<tr valign="top" align="left">      
<td><a href="/img/revistas/bjmbr/v43n10/html/472i01.htm">
<img src="/img/revistas/bjmbr/v43n10/472i01peq.jpg" border="2"></a></td>      
<td>    <p align="left">
<font face="Arial, Helvetica, sans-serif"><span lang="EN">
<a name="Fig1"></a>Figure 1. Concentration of IL-6 (pg/10<sup>6 </sup>cells) produced by the suspension of plasmacytoid dendritic cells (pDC). Concentration (Conc.) 1: 20 IU/mL penicillin, 5 µg/mL vancomycin, 5 µg/mL amoxicillin, 75 ng/mL anti-FcεRI/mL, and 100 nM CpG. Concentration 2: 200 IU/mL penicillin, 50 µg/mL vancomycin, and 50 µg/mL amoxicillin. Concentration 3: 1000 IU/mL penicillin, 250 µg/mL vancomycin, and 250 µg/mL amoxicillin.</span></font></p>
      </td>    </tr>  </tbody></table>      
<p><font face="Arial, Helvetica, sans-serif">[View larger version of this image (90 K JPG file)]</font></p>  

Conteúdo de /img/revistas/bjmbr/v43n10/html/472i01.htm

<P ALIGN=left>
<font size="2" face="Arial, Helvetica, sans-serif">
<span lang="EN">C.M.F. Lima, J.T. Schroeder, C.E.S. Galv&atilde;o, F.M. Castro, J. Kalil and N.F. Adkinson Jr. Functional changes of dendritic cells in hypersensitivity reactions to amoxicillin. <SPAN 
class=facepage-title><SPAN class=facepage-authors->Braz J Med Biol Res 2010; 43: 964-968.</SPAN> </SPAN></span></font>
 <CENTER>

   <p><FONT SIZE=4><b><a href="javascript:history.back()">
<img src="/img/revistas/bjmbr/v43n10/472i01.jpg" align=BOTTOM border=0 vspace=0 hspace=0 width="800" height="403"></a></b></FONT></p>
   <div align="left">
     <p ALIGN="left"><font face="Arial, Helvetica, sans-serif"><span lang="EN">Figure 1. Concentration of IL-6 (pg/10<sup>6 </sup>cells) produced by the suspension of plasmacytoid dendritic cells (pDC). Concentration (Conc.) 1: 20 IU/mL penicillin, 5 &micro;g/mL vancomycin, 5 &micro;g/mL amoxicillin, 75 ng/mL anti-Fc&epsilon;RI/mL, and 100 nM CpG. Concentration 2: 200 IU/mL penicillin, 50 &micro;g/mL vancomycin, and 50 &micro;g/mL amoxicillin. Concentration 3: 1000 IU/mL penicillin, 250 &micro;g/mL vancomycin, and 250 &micro;g/mL amoxicillin.</span></font></p>
   </div>
 </CENTER>

Resultado da conversão até o pipe anterior a ConvertElementsWhichHaveIdPipe:

  <table border="0">
    <tr align="left" valign="top">
    <td>
    <a href="#472i01" link-type="internal">
    <img src="/img/revistas/bjmbr/v43n10/472i01peq.jpg" border="2"/>
</a>
</td> <td> <p align="left">
  <a name="Fig1" id="Fig1"/>Figure 1. Concentration of IL-6 (pg/10<sup>6 </sup>cells) produced by the suspension of plasmacytoid dendritic cells (pDC). Concentration (Conc.) 1: 20 IU/mL penicillin, 5 µg/mL vancomycin, 5 µg/mL amoxicillin, 75 ng/mL anti-FcεRI/mL, and 100 nM CpG. Concentration 2: 200 IU/mL penicillin, 50 µg/mL vancomycin, and 50 µg/mL amoxicillin. Concentration 3: 1000 IU/mL penicillin, 250 µg/mL vancomycin, and 250 µg/mL amoxicillin.</p> </td> </tr>
</table>
  <p content-type="html">
    <a id="472i01" name="472i01"/>&#13;
 <p align="left">C.M.F. Lima, J.T. Schroeder, C.E.S. Galvão, F.M. Castro, J. Kalil and N.F. Adkinson Jr. Functional changes of dendritic cells in hypersensitivity reactions to amoxicillin. Braz J Med Biol Res 2010; 43: 964-968. &#13;
 </p>&#13;
   <p>
    <ext-link ext-link-type="uri" xlink:href="javascript:history.back()">
    <img src="/img/revistas/bjmbr/v43n10/472i01.jpg" align="BOTTOM" border="0" vspace="0" hspace="0" width="800" height="403" imported="true"/>
 </ext-link>
 </p>&#13;
   <p>&#13;
     <p align="left">Figure 1. Concentration of IL-6 (pg/10<sup>6 </sup>cells) produced by the suspension of plasmacytoid dendritic cells (pDC). Concentration (Conc.) 1: 20 IU/mL penicillin, 5 µg/mL vancomycin, 5 µg/mL amoxicillin, 75 ng/mL anti-FcεRI/mL, and 100 nM CpG. Concentration 2: 200 IU/mL penicillin, 50 µg/mL vancomycin, and 50 µg/mL amoxicillin. Concentration 3: 1000 IU/mL penicillin, 250 µg/mL vancomycin, and 250 µg/mL amoxicillin.</p>&#13;
   </p>&#13;
 &#13;
 &#13;
</p>
<p>[View larger version of this image (90 K JPG file)]</p> <hr align="LEFT" size="2"/>

Resultado final:

 <array>
    <tbody>
    <tr align="left" valign="top">
    <td>
    <xref ref-type="fn" rid="fn472i01">
    <inline-graphic xlink:href="/img/revistas/bjmbr/v43n10/472i01peq.jpg"/>
</xref>
</td> <td> <p>
  <fig id="fig1"/>
  <bold label-of="Fig1">Figure 1.</bold> Concentration of IL-6 (pg/10<sup>6 </sup>cells) produced by the suspension of plasmacytoid dendritic cells (pDC). Concentration (Conc.) 1: 20 IU/mL penicillin, 5 µg/mL vancomycin, 5 µg/mL amoxicillin, 75 ng/mL anti-FcεRI/mL, and 100 nM CpG. Concentration 2: 200 IU/mL penicillin, 50 µg/mL vancomycin, and 50 µg/mL amoxicillin. Concentration 3: 1000 IU/mL penicillin, 250 µg/mL vancomycin, and 250 µg/mL amoxicillin.</p> </td> </tr>
</tbody>
</array>
  <p>
    <fn id="fn472i01">
    <p>C.M.F. Lima, J.T. Schroeder, C.E.S. Galvão, F.M. Castro, J. Kalil and N.F. Adkinson Jr. Functional changes of dendritic cells in hypersensitivity reactions to amoxicillin. Braz J Med Biol Res 2010; 43: 964-968. &#13;
 </p>
 <p>&#13;
   </p>
 </fn>
 </p>
   <p>
    <ext-link ext-link-type="uri" xlink:href="javascript:history.back()">
    <inline-graphic xlink:href="/img/revistas/bjmbr/v43n10/472i01.jpg"/>
 </ext-link>
 </p>&#13;
   &#13;
     <p>Figure 1. Concentration of IL-6 (pg/10<sup>6 </sup>cells) produced by the suspension of plasmacytoid dendritic cells (pDC). Concentration (Conc.) 1: 20 IU/mL penicillin, 5 µg/mL vancomycin, 5 µg/mL amoxicillin, 75 ng/mL anti-FcεRI/mL, and 100 nM CpG. Concentration 2: 200 IU/mL penicillin, 50 µg/mL vancomycin, and 50 µg/mL amoxicillin. Concentration 3: 1000 IU/mL penicillin, 250 µg/mL vancomycin, and 250 µg/mL amoxicillin.</p>&#13;
   &#13;
 &#13;
 &#13;
<p>[View larger version of this image (90 K JPG file)]</p>