Wholebook Files UI and functionality amendments and new dev
We have established these use cases for uploading source files to wholebooks
There can be a many-to-one relationship between source and converted files, and as confirmed for chapter-processed books, uploaded files are not sent straight to conversion. So:
For both Workflows:
-
Separate source and converted sections in the UI -
Allow upload of multiple files to "Source" section -
In addition to the filename validations changes in #484 (closed) and #486 (closed), check if the file being uploaded exists. If filename exists, create file version 2 unless the current file has status "New upload", then overwrite. If filename does not exist, create file version 1. -
Move functionality of "load preview" and "replace converted xml" to the "Converted" section -
The files uploaded and the book get status "New upload" -
Add submit button bottom bar -
as shown below, Source file status and Converted file status match unless there is a new upload. -
Since there can be multiple source files with multiple versions, use the "show all version" functionality currently used for supplementary files.
NOTE: To reduce complexity I think this component for source files can be used for all sections (except "review") -- I'll raise a separate issue for differences between these sections in all workflows, then you can decide.
Additionally, for the XML workflow ONLY
-
On "Submit" in the XML workflow files are sent to conversion and status changes to "Converting". This should send all current file versions of Source. -
Block all file uploads to a book with status "Converting" and "Loading Preview" (This is done for "Converting" already)