diff --git a/editioncrafter/src/action/DocumentActions.js b/editioncrafter/src/action/DocumentActions.js index 21ac014..b69bc60 100644 --- a/editioncrafter/src/action/DocumentActions.js +++ b/editioncrafter/src/action/DocumentActions.js @@ -160,7 +160,7 @@ function parseSingleManifest(manifest, transcriptionTypes, document) { const thumbnailURL = `${bodyId}/full/${thumbnailDimensions.join(',')}/0/default.jpg`; const folio = { - id: folioID, + id: document ? `${document}_${folioID}` : folioID, doc_id: document || manifest.id, name: canvasLabel, pageNumber: i, diff --git a/editioncrafter/src/component/DocumentView.js b/editioncrafter/src/component/DocumentView.js index bb3ffa4..5d394f8 100644 --- a/editioncrafter/src/component/DocumentView.js +++ b/editioncrafter/src/component/DocumentView.js @@ -368,6 +368,7 @@ const DocumentView = (props) => { hasNext: current_hasNext, previousFolioShortID: prevID, nextFolioShortID: nextID, + documentID: doc.variorum ? doc.folioIndex[shortID].doc_id : doc.documentName, }; }; @@ -384,6 +385,7 @@ const DocumentView = (props) => { const viewType = determineViewType(side); const key = viewPaneKey(side); const folioID = docView[side].iiifShortID; + const document = docView[side].documentID; const { transcriptionType } = docView[side]; if (viewType === 'ImageView') { @@ -425,7 +427,7 @@ const DocumentView = (props) => { documentView={docView} documentViewActions={documentViewActions} side={side} - selectedDoc={props.document.variorum && Object.keys(props.document.derivativeNames)[side === 'left' ? 0 : side === 'right' ? 1 : Object.keys(props.document.derivativeNames).length > 2 ? 2 : 1]} + selectedDoc={document ? document : props.document.variorum && Object.keys(props.document.derivativeNames)[side === 'left' ? 0 : side === 'right' ? 1 : Object.keys(props.document.derivativeNames).length > 2 ? 2 : 1]} /> ); } if (viewType === 'GlossaryView') {