Contributors are not getting written in to TOC XML
Expected behaviour
All metadata from converted XML should be accurately written into chapter-processed TOC XML. If there are contribs in the chapter-processed book metadata they should always without exception be tagged in the chapter-processed TOC XML no matter what other siblings or children/grandchildren are in the contrib-group.
Current behaviour
Contributors are sometimes not getting written into chapter-processed TOC XML.
Steps to reproduce
- Testing done in book: https://ncbi.cloud68.co/organizations/d400f251-44e8-44f4-9c27-58d25a09f849/bookmanager/37de885b-91ab-406a-a380-275df5ec66f5
- Example chapter component in the book: https://ncbi.cloud68.co/organizations/d400f251-44e8-44f4-9c27-58d25a09f849/bookmanager/37de885b-91ab-406a-a380-275df5ec66f5/7f9b6220-3b92-440f-b372-ec1d67df6f8c#c4af838d-02f0-4854-bf30-2b71d5184b34
- Reload Preview or publish a chapter that has a converted file (example above)
- See that the contributors metadata within the
book-part-meta
(copied below) does not display in the metadata UI
Note there are contributors in the book part metadata in attached file:
<contrib-group>
<contrib contrib-type="author" rid="RB-0020-Saavedra.bio1"><name><surname>Saavedra</surname><given-names>Lissette M.</given-names></name></contrib>
<contrib contrib-type="author" rid="RB-0020-Saavedra.bio2"><name><surname>Morgan-Lopez</surname><given-names>Antonio A.</given-names></name></contrib>
<contrib contrib-type="author" rid="RB-0020-Saavedra.bio3"><name><surname>Yaros</surname><given-names>Anna C.</given-names></name></contrib>
<contrib contrib-type="author" rid="RB-0020-Saavedra.bio4"><name><surname>Buben</surname><given-names>Alex</given-names></name></contrib>
<contrib contrib-type="author" rid="RB-0020-Saavedra.bio5"><name><surname>Trudeau</surname><given-names>James V.</given-names></name></contrib>
<bio id="RB-0020-Saavedra.bio1"><p><bold>Lissette M. Saavedra</bold>, PhD, is a research psychologist in the Mental Health, Risk and Resilience Research Program at RTI International.</p></bio>
<bio id="RB-0020-Saavedra.bio2"><p><bold>Antonio A. Morgan-Lopez</bold>, PhD, is a Fellow in quantitative psychology in the Substance Use, Prevention, Evaluation and Research Program at RTI International.</p></bio>
<bio id="RB-0020-Saavedra.bio3"><p><bold>Anna C. Yaros</bold>, PhD, is the program manager of the Mental Health, Risk, and Resilience Research Program at RTI International.</p></bio>
<bio id="RB-0020-Saavedra.bio4"><p><bold>Alex Buben</bold>, BA, is a public health analyst in the Substance Use, Prevention, Evaluation and Research Program at RTI International.</p></bio>
<bio id="RB-0020-Saavedra.bio5"><p><bold>James V. Trudeau</bold>, PhD, is a chief scientist in the Applied Justice Research at RTI International.</p>
</bio>
</contrib-group>
- Go to TOC and download TOC.XML and see that these contributors are not tagged in the TOC XML as they should be
<toc-entry>
<title>Provider Resistance to Evidence-Based Practice in Schools: Why It Happens and How to Plan for It in Evaluations</title>
<?epub 20190501?>
<nav-pointer>
<related-object document-id="RB-0020-Saavedra" document-type="chapter">
<?xml_file RB-0020-Saavedra.bxml?>
<?version 1?>
</related-object>
</nav-pointer>
<toc-entry>
<title>Future Research: Steps Toward Rapprochement</title>
<nav-pointer>
<related-object document-id="RB-0020-Saavedra" document-type="chapter" object-id="RB-0020-Saavedra.sec4" object-type="sec"/>
</nav-pointer>
</toc-entry>
</toc-entry>
Environment
Possible solution
Best guess without checking the code is that <bio></bio>
tags within <contrib-group></contrib-group>
are not supported by the BCMS yet.
https://jats.nlm.nih.gov/extensions/bits/tag-library/2.1/element/contrib-group.html
QA Steps
[To be completed by Coko once dev is done]