Skip to content

Commit

Permalink
Updated annotator.js to fetch collection from 2023-08 folder and imag…
Browse files Browse the repository at this point in the history
…e from iif server.
  • Loading branch information
geoffroy-noel-ddh committed Aug 18, 2023
1 parent 289a54e commit 75e2d38
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions app/assets/annotator.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,16 @@ let IMG_PATH_STATIC_ROOT = './data/images/'
// let IMG_PATH_IIIF_ROOT = 'http://localhost:49153/iiif/2/'
// Crossreads live IIIF server
// https://apheleia.classics.ox.ac.uk/iipsrv/iipsrv.fcgi?IIIF=/inscription_images/ISic000001/ISic000001_tiled.tif/info.json
// let IMG_PATH_IIIF_ROOT = 'https://apheleia.classics.ox.ac.uk/iipsrv/iipsrv.fcgi?IIIF=/inscription_images/{DOCID}/{IMGID}_tiled.tif/info.json'
let IMG_PATH_IIIF_ROOT = 'https://apheleia.classics.ox.ac.uk/iipsrv/iipsrv.fcgi?IIIF=/inscription_images/{DOCID}/{IMGID}_tiled.tif/info.json'
// IIIF server via local proxy to avoid CORS blockage
// let IMG_PATH_IIIF_ROOT = 'http://localhost:8088/https://apheleia.classics.ox.ac.uk/iipsrv/iipsrv.fcgi?IIIF=/inscription_images/{DOCID}/{IMGID}_tiled.tif/info.json'

const ANNOTATION_FORMAT_VERSION = '2023-08-04-00'
const ANNOTATION_URI_PREFIX = 'https://crossreads.web.ox.ac.uk/annotations/'
const ANNOTATION_GENERATOR_URI = `https://github.com/kingsdigitallab/crossreads#${ANNOTATION_FORMAT_VERSION}`
const DEFINITIONS_PATH = 'app/data/pal/definitions-digipal.json'
const DTS_COLLECTION_PATH = './data/2023-01/collection.json'
// const DTS_COLLECTION_PATH = './data/2023-01/collection.json'
const DTS_COLLECTION_PATH = './data/2023-08/collection.json'
const OPENSEADRAGON_IMAGE_URL_PREFIX = './node_modules/openseadragon/build/openseadragon/images/'
const TEI_TO_HTML_XSLT_PATH = './data/tei2html.xslt'
const DTS_ROOT = 'https://crossreads.web.ox.ac.uk'
Expand All @@ -51,7 +52,7 @@ const AUTO_SAVE_EVERY_MILLISEC = 10000
const LOG_EVENTS = false;

// const collectionPath = './data/dts/api/collections.json'
// const debugDontSave = false;
// const DEBUG_DONT_SAVE = true;
const DEBUG_DONT_SAVE = false;

let isButtonPressed = false
Expand Down

0 comments on commit 75e2d38

Please sign in to comment.