Send TOC package in cron job
This workflow we discussed for sending TOCs to NCBI applies to all chapter-processed books:
- The TOC gets created or updated when any book component is published
- Daily at 2 am Eastern Time (ET) send all the created or updated TOC packages to Load to PMC
Specs
Send the toc to Load to PMC as its own package to ingest/chapter
. NCBI expects a zip file containing the toc.xml
and the book cover image, and a corresponding JSON file with:
"chapter": "toc"
"xml_file":"toc.xml"
"version":"1"
-
"thumb": "filename"
(the book cover file name).