Open jabrah opened 2 years ago
acceptance testing had not raised an issue with our current pdf display. So we wont take on this work unprompted.
This would be applicable to Paged Content
repository items.\
Firstly, we would need to update our generated IIIF manifests to add the viewingHint: 'Paged'
on the Sequence (only on Paged Content items) here in this PHP file: https://github.com/jhu-idc/idc_ui_module/blob/main/src/Plugin/views/style/IDCIIIFSerializer.php
We'd need to modify our Mirador config (https://github.com/jhu-idc/idc-ui-theme/blob/main/js/packages/mirador/index.js#L35-L65), by adding
config.window.views = [
{ key: 'single', behaviors: ['individuals'] },
{ key: 'book', behaviors: ['paged'] },
];
config.window.allowTopMenuButton = true; // Change from 'false' to 'true'
This will add a button to the top menu, which, when clicked, will open a control panel that would let a user choose view modes. .
Optionally, we could change config.windows.view
to 'book'``, from
'single'`. This would show the "book" view by default instead of the single image view.
Currently, paged content is rendered using Mirador, but is configured in a way that will display only one image at a time. Is it important to view paged content with the left and right sides of an opening visible side by side?
Here's an example from the Mirador instance used in AoR:
Single view
"Book" view
If we want to enable the book view, I believe we'd need to add a
viewingHint: paged
to the generated IIIF sequences (this can be done inidc_ui_module/plugin/views/style/IDCIIIFSerializer
)