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

configuring transcription types beyond defaults #50

Closed NickLaiacona closed 1 year ago

NickLaiacona commented 1 year ago

Using a TEI document that has a text element different from the default "tl" causes the following error:

To reproduce this, modify the EditionCrafter.stories.js in this manner:

const baseConfig = {
  documentName: 'FHL_007548705_ISLETA_BAPTISMS_1',
  transcriptionTypes: {
    translation: 'Translation (EN)'
  },
};

export const Development = () => (
  <EditionCrafter config={
    ...baseConfig,
    iiifManifest: 'http://localhost:8080/FHL_007548705_ISLETA_BAPTISMS_1/iiif/manifest.json'
  }}
  />
);

Then, run EditionCrafter CLI against the attached TEI document and mount the result on port 8080. The easiest way to do this is to run yarn start in the editioncrafter_cli repo, which will start up http-server for the contents of the public directory.

FHL_007548705_ISLETA_BAPTISMS_1.xml.zip

NickLaiacona commented 1 year ago

The error message from JS Console:

Screen Shot 2023-08-09 at 1 21 22 PM

NickLaiacona commented 1 year ago

Fixed.