Apply new XSweet conversion to manuscript docx files
New pubsweet component: https://gitlab.coko.foundation/pubsweet/pubsweet/tree/master/packages/components/job-xsweet
-
This needs to be added to the project
-
When a docx file is uploaded as the manuscript file, it needs to be converted to a HTML preview using this new package. Look at the upload-files/ component for potential entry points.
-
The HTML generated should be uploaded as a file on the manuscript, with type 'source'.
-
In Submit and ReviewPage, the source file needs to be sent to ManuscriptPreview.jsx as the 'file' prop. There needs to be a check—if the file with type==='manuscript' is a pdf, send that pdf as the file prop, otherwise send the 'source' file as the file prop.
-
Check that display is actually working; may need to edit ManuscriptPreview.jsx
-
Work with @nmarinos to ensure steps 2-3 are applied to and working in the FTP bulk upload.
-
Remove all INK references in config etc.
Completing this ticket should close #63 and #223 (closed)
Let me know if you have any questions