Bulk download of book and book component files
(Updated 15 July)
Use case
As explained in &11 (closed) here:
...it can't be assumed whoever is doing the bulk submission will have files locally. The assumption is the BCMS is the source of the "record of version" source files - we often have to download source files for this reason. Also, it could be Bookshelf staff have to download ALL files and do some edit on them, and then upload them again.
So all users with access to the files tab should be able to bulk download files.
Dev task
is blocked by #588 (closed)
This issue is only for the files tab. For book manager multi-file downloads see #590 (closed)
On the files tab of a book or book component:
- User should be able to select (via the checkbox) a file
- User should be able to select multiple files
- User should be able to select a whole section with one checkbox
- User should be able to download everything (all files from all sections)
- By default selection of a section / everything will only select the latest versions of the files (ie. the files the user can see)
- User should be able to expand a section and select multiple versions
- Selected files' ids should be handled via the ui's state
- If there is no file selected, the option 'Download selected' should be disabled
- Clicking the download button should trigger the endpoint described in #588 (closed), which in turn should trigger a zip file download