CPB: Data for contributors missing when there are affiliations tags
Expected behaviour
For chapter-proccessed books when the file goes to loading preview or when we upload a converted file, the content on the metadata tab of the book component should be updated, for all the related fields.
Current behaviour
For chapter-processed books, when file has contributors with affiliations, the contributors do not appear on the metadata tab of the book component. This happens only for the files where the content for contributors is structured as below:
<contrib contrib-type="author">
<name>
<surname>Devanarayan</surname>
<given-names>Viswanath</given-names>
</name>
<aff>Eli Lilly & Company, IN</aff>
</contrib>
Steps to reproduce
Example book here
On the example link if you download the converted file, you will see there are a couple of authors. Which if you check on the metadata tab of this book component the contributors section is empty.
- Create a word chapter processed book
- Upload the same source file as in the book above (qbiogloss.docx)
- Submit the file and wait for it to go to loading preview
- Check the metadata tab that the contributor info is not there
- If you try to upload the converted file you will face the bug on issue #1422
Environment
Possible solution
QA Steps
[To be completed by Coko once dev is done]
Scheduling
-
This issue is blocking current user testing -
This issue is blocking current migration testing -
Fixing this issue is required for Priority 1: Deploy MVP -
This issue should be triaged into later epics in the PM weekly meeting