cu-mkp / editioncrafter

Software for the development of EditionCrafter, digital critical edition publication tool
https://cu-mkp.github.io/editioncrafter/
MIT License
8 stars 3 forks source link

Multidocument config options #68

Closed ajolipa closed 9 months ago

ajolipa commented 9 months ago

In this PR

Adds the option to configure the EditionCrafter component to accept multiple documents, by setting the variorum prop to true and passing in an object with document IDs as keys as the documentInfo object.

For example, a variorum configuration could look like

<EditionCrafter config={{
    documentName: 'FHL_007548733_TAOS_BAPTISMS_BATCH_2 and eng-415-145a',
    variorum: true,
    documentInfo: {
      FHL_007548733_TAOS_BAPTISMS_BATCH_2: {
        documentName: 'Taos Baptisms Batch 2',
        transcriptionTypes: {
          translation: 'Translation',
          transcription: 'Transcription',
        },
        iiifManifest: 'https://cu-mkp.github.io/editioncrafter/taos-baptisms-example/iiif/manifest.json',
      },
      eng_415_145a: {
        documentName: 'Eng 415-145a',
        transcriptionTypes: {
          'eng-415-145a': 'Transcription',
        },
        iiifManifest: 'https://cu-mkp.github.io/bic-editioncrafter-data/eng-415-145a/iiif/manifest.json',
      },
    },
  }}
  />

This results in the following behavior, including the ability to unlock the two panes from each other and view a folio from one document on one side and another document on the other side: image image image

Notes and future work

NickLaiacona commented 9 months ago

Hi @ajolipa , two things on this PR. First, can you move the code into a branch in this repo instead of a fork in your own repo? Second, the PR merge target should be either the develop branch or a develop branch just for ely-green related features. Thanks!