XML/PDF Wholebooks: Metadata modal validates disabled fields
Expected behaviour
Opening the metadata modal should allow to add content to the editable fields and save those.
Current behaviour
Adding cover, book source type & grants is not saved because of validation errors on publisher fields and pub date.
Steps to reproduce
- Create a PDF WholeBook & a XML Wholebook
- While status is 'New book', go to the metadata modal of the book
- Add a value for book source type
- Save
You will see the following validation issue:
Possible solution
Since those fields for publisher and publication date are populated from the converted file in the case of XML & pdf wholebooks. I think we should remove the validation for it.
QA Steps
- Create a PDF WholeBook & a XML Wholebook
- While status is 'New book', go to the metadata modal of the book
- Add a value for book source type
- Save. This should save successfully
- Also check the validation work fine for chapter processed books metadata modals.