elifesciences / refract

Convert NLM XML files into the Lens JSON
Other
9 stars 3 forks source link

0.2.x converter issues #7

Closed michael closed 11 years ago

michael commented 11 years ago

http://cl.ly/code/2M3g281s2J1R

There's no type caption anymore. We're referencing paragraphs with the caption property. So

    "caption_52": {
      "type": "caption",
      "id": "caption_52",
      "content": "(A). Representative plates in a colony forming assay, showing growth of Gram-negative (Escherichia coli DH5α, top) and..."
    }

becomes

    "paragraph_caption_52": {
      "type": "paragraph",
      "id": "paragraph_caption_52",
      "content": "(A). Representative plates in a colony forming assay, showing growth of Gram-negative (Escherichia coli DH5α, top) and..."
    }