elifesciences/lens

Nested Lists with JATS/NLM tags (list and list-item) repeat data in Lens

Closed this issue · 2 comments

Hi @michael I have a sample of xml jats where there is a nested list and when it is converted through Lens the data of the sublist appear in the its corresponding level but after it is repeated in the upper level too. This is the sample:

<list id="mylist" list-type="bullet">
        <list-item><p>A</p></list-item>
        <list-item><p>B</p></list-item>
        <list-item><p>C</p></list-item>
        <list-item>
          <p>D
            <list id="mysublist" list-type="ordered">
                <list-item><p>E</p></list-item>
           </list>
          </p>
        </list-item>
 </list>

This sample produces the following result:

  • A
  • B
  • C
  • D
    1. E
  • E

I would like to know if someone has the same trouble with the nested lists?, greetings.

gnott commented

I can repeat this, and looks like a bug to me. Thanks for the report @juanCure.

gnott commented

One example for eLife is https://lens.elifesciences.org/12470/. Previewing this article on the develop branch now has removed the duplicate list items (which should be deployed soon for eLife).