Skip to content

Commit

Permalink
fix(frontend): update path to load iiif images
Browse files Browse the repository at this point in the history
  • Loading branch information
jmiguelv committed Jul 8, 2024
1 parent c7bd5ff commit 510de6a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
4 changes: 2 additions & 2 deletions frontend/src/lib/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import { dev } from '$app/environment';
export const publicUrl = 'http://sicily.classics.ox.ac.uk/';

export const title = 'I.Sicily';
export const description = 'Brief description or overview of the ISicily publication.';
export const description = `Brief description or overview of the ${title} publication.`;
export const url = dev ? 'http://localhost:5173/' : publicUrl;

export const imageServer =
'https://apheleia.classics.ox.ac.uk/iipsrv/iipsrv.fcgi?IIIF=/inscription_images/';
'https://apheleia.classics.ox.ac.uk/iipsrv/iipsrv.fcgi?IIIF=inscription_images/';
5 changes: 1 addition & 4 deletions frontend/src/routes/inscription/[slug]/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
.filter((/** @type Object<String, string> */ image) => image.image.endsWith('.tif'))
.map(
(/** @type Object<String, string> */ image) =>
`${config.imageServer}${data.slug}/${image.image}`
`${config.imageServer}${data.slug}/${image.image}/info.json`
);
let OpenSeaDragon;
Expand All @@ -24,9 +24,6 @@
tileSources,
sequenceMode: true
});
viewer.addHandler('open', () => {
viewer.viewport.fit(true);
});
});
</script>

Expand Down

0 comments on commit 510de6a

Please sign in to comment.