AjaxMultiCommentary / kodon

A minimal-computing multi-commentary platform
MIT License
0 stars 0 forks source link

IIIF URLs #11

Open pletcher opened 2 months ago

pletcher commented 2 months ago

I would like to alias https://ajaxmulticommentary.github.io/ajmc_iiif/ into https://iiif.ajmc.ch/ so that we can have shorter links like https://iiif.ajmc.ch/Wecklein1894/Wecklein1894_0015/full/max/0/default.png How difficult is it then to change the IIIF base URL in Kodon? Imagine a user who wants to run ajmc-kodon entirely on their machine without any internet connection. => in the ajmc-kodon README we should provide instructions to support this use case. The user will need a local copy of ajmc-kodon And also a copy of ajmc_iiif

Documentation In ajmc_iiif Add an example of how to use the Python script on an existing image folder to pre-generate static data. Add the command to spin a local browser to serve the static IIIF images.

mromanello commented 3 weeks ago

In the file src/routes/passages/[urn]/+page.svelte identify the following bit and change the value of iiifURL

<ReadingEnvironment
    currentURL={$page.url}
    {comments}
    {currentPassage}
    {heatmapTooltip}
    {filterListTooltip}
    {navigationTooltip}
    {passages}
    {textContainers}
    iiifURL="https://iiif.ajmc.ch/"
/>