Allow contributors with no first name or no surname to be saved in metadata, and accurately added to XML (for chapter books, wholebooks, collections)
cc @douglassue
Expected behaviour
Contributors added to metadata via UI should be accurately written into the metadata in the respective XML, even if a first or last name is not given for a contributor (at least a first OR last name must be given for contributor to be added to XML).
Current behaviour
-
For the chapter processed word metadata, surname and given name are required fields, they shouldn't be required but metadata for contributors should only be written to XML when at least one exists (either first name or surname).
-
For the Word wholebooks case, first name is not currently required, but when not provided the contributor is not written into the XML but should be.
-
Contributors without first/given names which are input by user for collections are also not being written into metadata in XML but should be.
Steps to reproduce
- Go to: https://ncbi.cloud68.co/organizations/97635691-11c5-482c-adcb-d16e69b49e79/bookmanager/e855db41-fdb6-4262-8681-8be8e9726fa0/dcf46e4b-f57f-4cdd-bddd-d2d60bbdacb4
- Look at preview
- Compare to metadata in UI:
- See the contributor who had no first name given is missing in the XML:
<contrib-group><contrib contrib-type="author"><name><surname>McGowan</surname><given-names>Joseph P.</given-names></name><degrees>MD, FACP, FIDSA</degrees><role>Writing Group</role></contrib><contrib contrib-type="author"><name><surname>Fine</surname><given-names>Steven M.</given-names></name><degrees>MD, PhD</degrees><role>Writing Group</role></contrib></contrib-group>
NCBI's priority feedback
Y, for deployment for accurate metadata display
QA Steps
[To be completed by Coko once dev is done]