book publication date range not updating in metadata modal
Expected behaviour
In wholebooks, metadata UI should reflect the metadata in the converted file (received from conversion or manually uploaded by System admins).
Current behaviour
Book publication date with date range is not being update in metadata modal
Steps to reproduce
- create whole xml book
- manually upload source file (and related suppl/images)
- submit and wait for preview
- got to bookmeta modal - see that publication date is empty
see also pdfexample https://ncbi.cloud68.co/organizations/669d427c-32b6-45bf-abd2-c28e7dc65b07/bookmanager/c79a07ef-370e-491b-873e-2c67a760b51d
NCBI's priority feedback
QA Steps
-
Create an xml wholebook
-
Upload the converted file like in the example above TOX_100_mod__1_.bxml
-
Go to the metadata tab and confirm that the date is updated as expected on a range 07/2021 - 10/2021
-
Additionally you can update the xml file
<pub-date date-type="pubr" publication-format="electronic"><month>07</month><year>2021</year></pub-date><pub-date date-type="pubr" publication-format="electronic"><month>10</month><year>2021</year></pub-date>
By removing months or the end date, to confirm that it updates correctly (since ranges without a month are supported, as well as ranges without an end date).