jhu-idc / iDC-general

Contains non-code-base specific tickets relating to the Islandora8 for Digital Collection project
0 stars 0 forks source link

Is it important to have a "book view" for paged content? #448

Open jabrah opened 2 years ago

jabrah commented 2 years ago

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

image

"Book" view

image

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 in idc_ui_module/plugin/views/style/IDCIIIFSerializer)

htpvu commented 2 years ago

acceptance testing had not raised an issue with our current pdf display. So we wont take on this work unprompted.

jabrah commented 2 years ago

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. image.

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.