No trailing slash in ids
This commit is contained in:
parent
75feb124ba
commit
73cc9485f8
@ -16,7 +16,7 @@ class Canvas {
|
||||
* @param {string} label
|
||||
*/
|
||||
constructor(IIIFApiVersion, baseURL) {
|
||||
this.context = `http://iiif.io/api/presentation/${IIIFApiVersion}/context.json`;
|
||||
this.context = `https://iiif.io/api/presentation/${IIIFApiVersion}/context.json`;
|
||||
this.BASE_URL = baseURL;
|
||||
}
|
||||
/**
|
||||
|
@ -4,7 +4,7 @@ import IIIFResource from './IIIFResource.js';
|
||||
*/
|
||||
class Image {
|
||||
id = '';
|
||||
context = `http://iiif.io/api/presentation/${process.env.IIIF_API_VERSION}/context.json`;
|
||||
context = `https://iiif.io/api/presentation/${process.env.IIIF_API_VERSION}/context.json`;
|
||||
type = 'oa:Annotation';
|
||||
motivation = 'sc:painting';
|
||||
__type = 'dctypes:Image';
|
||||
@ -44,7 +44,7 @@ class Image {
|
||||
const subfolder = splitFilename.slice(0,3).join('_') + '_iiif';
|
||||
|
||||
this.id = `${serviceURL}/2/${baseFolder}%2F${subfolder}%2F${filename}/full/full/0/default.jpg`;
|
||||
this.service['@id'] = this.id.replace(/full.*$/,'');
|
||||
this.service['@id'] = this.id.replace(/\/full.*$/,'');
|
||||
}
|
||||
/**
|
||||
* Object representation of
|
||||
|
@ -13,7 +13,7 @@ class Manifest {
|
||||
sequences = [];
|
||||
|
||||
constructor(IIIFApiVersion, baseURL) {
|
||||
this.context = `http://iiif.io/api/presentation/${IIIFApiVersion}/context.json`;
|
||||
this.context = `https://iiif.io/api/presentation/${IIIFApiVersion}/context.json`;
|
||||
this.BASE_URL = baseURL;
|
||||
}
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user