jhu-idc / iDC-general

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

Pages are out of order in Mirador #476

Closed bseeger closed 2 years ago

bseeger commented 2 years ago

On the sandbox there is this multi-page item that renders in Mirador: https://sandbox.digital.library.jhu.edu/node/1127

It appears that all the pages are there and it looks great (!), but the pages are out of order in the viewer.

They are in order under the "Childrens" tab for the item.

Upon reloading the item's view page the pages show up in a different order - so the order appears to be somewhat random.

Here are a few reload pics: Screen Shot 2022-01-19 at 3 11 55 PM Screen Shot 2022-01-19 at 3 11 38 PM

mjanowiecki commented 2 years ago

All the pages are named to be in alphabetical/numeric order. Is there way to make them default sort to this?

jabrah commented 2 years ago

The page ordering specifically in Mirador is defined by the order of the canvases in the IIIF manifest. This is done in the IDCIIIFSerializer -- we've overridden the IIIF serializer that ships with Islandora because we had already needed some custom metadata in the manifest

jabrah commented 2 years ago

Ah, looks like there's a sorting criteria set in the IIIF Manifest view in Drupal. Currently set to sort by weight

/admin/structure/views/view/iiif_manifest image

We can try changing this setting here, or forcing an order in the IIIF serializer

jabrah commented 2 years ago

Looks like we can add a weight field to the migrations that should define the page order. We'd make the column optional, but the column would have to be added and populated in the migrations where order is important.