Add a Manuscript Picker for embedding in third-party applications
- Add a view at
/picker
that displays a list of the user's projects. - When a project is selected, display a list of the project's manuscripts.
- When a manuscript is selected, display the manuscript with minimal metadata (title + contributors) and a button to choose this manuscript.
- When the button is pressed, fetch a scoped token from
manuscripts-api
and pass it to the parent frame (if the origin is whitelisted), along with the project ID and manuscript ID. - The third-party application can then use that token to fetch a ZIP file from a new authenticated service, containing HTML and XML generated from the manuscript data, plus any attachments.
A new environment variable - PICKER_ORIGINS
- specifies a semicolon-separated whitelist of origins that are allowed to embed the picker.
closes #212 (closed)
Edited by Mikhail Bartenev