Pass version_number and version_name On load to PMC.
We need to add two more fields when we send to load to PMC.
We start the Load to PMC in this file : server/services/CommandService/chapterCommands/commands/ingestToPMC.js
However this includes the process both for chapter-based and whole book cases . In that issue we want to add two more fields at the json file that we send only for the whole book cases.
All we need to do is to add version_name
and version_number
at the files, we can do that by adding those fields at the files :
server/services/ncbiConnectionManager/wholeBookPdfConversion.js
server/services/ncbiConnectionManager/wholeBookPreview.js
server/services/ncbiConnectionManager/wholeBookXmlConversion.js
-
version_name
is the contentType at the settings of the book when we create it -
version_number
is the number of the version which is a new field that we need to add at the book