Fixes bug in variorum mode where folios in different documents with the same folioID were not being stored properly in the component state: when in variorum mode, folios are now stored internally with the ID [documentID]_[folioID] to avoid collisions;
Updates the viewportState function to track the associated document of the currently selected folio, so that if you navigate back to the grid view from a folio in variorum mode, the document that folio came from will be automatically selected.
In this PR
folioID
were not being stored properly in the component state: when in variorum mode, folios are now stored internally with the ID[documentID]_[folioID]
to avoid collisions;viewportState
function to track the associated document of the currently selected folio, so that if you navigate back to the grid view from a folio in variorum mode, the document that folio came from will be automatically selected.