Grants applied directly to chapter components not written in to JSON sent in PMC ingest package
cc @douglassue
Expected behaviour
Grants applied to chapters by any supported methods should be accurately written into JSON files sent in PMC ingest packages.
Current behaviour
Grants applied directly to chapters components are not written into JSON files sent in PMC ingest packages.
Steps to reproduce
- Created wt funded book (bcms3293) containing 2 chapters with different grants (ch3/bcms3295 - 088225 and ch7/bcms3296 - 108580) https://ncbi.cloud68.co/organizations/93053cc4-8e49-40e5-abca-3b95c10c2cc7/bookmanager/66b39b0e-cdad-4519-9482-b3b6a7f8f3f2
- Added grants directly to chapter meta
- Uploaded converted xml and reloaded previews for both chapters
- No grant added to json files
QA steps
- Created xml chapter processed book containing 2 chapters and added individual award Id in the chapter meta of two chapters. https://ncbidev.cloud68.co/organizations/f97f097e-8102-4d6f-81db-387cd6c235ff/bookmanager/b72acdb3-ef17-410d-8c93-85283bea30ef
- uploaded the source and converted files.
- reloaded preview for both the chapters.
- found the json file sent in PMC ingest packages in
ingest/chapter
folder . - found the grants section the award ID added to the chapters.
Priority
Y, for deployment