diff --git a/src/content-handlers/iiif/extensions/uv-aleph-extension/Extension.ts b/src/content-handlers/iiif/extensions/uv-aleph-extension/Extension.ts index 47390eb9d..c611149b9 100644 --- a/src/content-handlers/iiif/extensions/uv-aleph-extension/Extension.ts +++ b/src/content-handlers/iiif/extensions/uv-aleph-extension/Extension.ts @@ -120,12 +120,14 @@ export default class Extension extends BaseExtension getEmbedScript(template: string, width: number, height: number): string { const appUri: string = this.getAppUri(); + const title: string = this.helper.getLabel() || ""; const iframeSrc: string = `${appUri}#?manifest=${this.helper.manifestUri}`; const script: string = Strings.format( template, iframeSrc, width.toString(), - height.toString() + height.toString(), + title ); return script; } diff --git a/src/content-handlers/iiif/extensions/uv-aleph-extension/config/config.json b/src/content-handlers/iiif/extensions/uv-aleph-extension/config/config.json index f89826d76..fd54ce7bc 100644 --- a/src/content-handlers/iiif/extensions/uv-aleph-extension/config/config.json +++ b/src/content-handlers/iiif/extensions/uv-aleph-extension/config/config.json @@ -234,7 +234,7 @@ "options": { "embedEnabled": true, "shareEnabled": true, - "embedTemplate": "", + "embedTemplate": "", "instructionsEnabled": false, "shareFrameEnabled": true, "shareManifestsEnabled": true, diff --git a/src/content-handlers/iiif/extensions/uv-av-extension/Extension.ts b/src/content-handlers/iiif/extensions/uv-av-extension/Extension.ts index 3f72620d5..b4e2eeeb9 100644 --- a/src/content-handlers/iiif/extensions/uv-av-extension/Extension.ts +++ b/src/content-handlers/iiif/extensions/uv-av-extension/Extension.ts @@ -148,12 +148,14 @@ export default class Extension extends BaseExtension getEmbedScript(template: string, width: number, height: number): string { const appUri: string = this.getAppUri(); + const title: string = this.helper.getLabel() || ""; const iframeSrc: string = `${appUri}#?manifest=${this.helper.manifestUri}&c=${this.helper.collectionIndex}&m=${this.helper.manifestIndex}&cv=${this.helper.canvasIndex}&rid=${this.helper.rangeId}`; const script: string = Strings.format( template, iframeSrc, width.toString(), - height.toString() + height.toString(), + title ); return script; } diff --git a/src/content-handlers/iiif/extensions/uv-av-extension/config/config.json b/src/content-handlers/iiif/extensions/uv-av-extension/config/config.json index e2507619b..7e25a958d 100644 --- a/src/content-handlers/iiif/extensions/uv-av-extension/config/config.json +++ b/src/content-handlers/iiif/extensions/uv-av-extension/config/config.json @@ -278,7 +278,7 @@ "options": { "embedEnabled": true, "shareEnabled": true, - "embedTemplate": "", + "embedTemplate": "", "instructionsEnabled": false, "shareFrameEnabled": true, "shareManifestsEnabled": true, diff --git a/src/content-handlers/iiif/extensions/uv-default-extension/Extension.ts b/src/content-handlers/iiif/extensions/uv-default-extension/Extension.ts index 9c2f9f08f..31b66c7f0 100644 --- a/src/content-handlers/iiif/extensions/uv-default-extension/Extension.ts +++ b/src/content-handlers/iiif/extensions/uv-default-extension/Extension.ts @@ -115,12 +115,14 @@ export default class Extension extends BaseExtension getEmbedScript(template: string, width: number, height: number): string { const appUri: string = this.getAppUri(); + const title: string = this.helper.getLabel() || ""; const iframeSrc: string = `${appUri}#?manifest=${this.helper.manifestUri}&c=${this.helper.collectionIndex}&m=${this.helper.manifestIndex}&cv=${this.helper.canvasIndex}`; const script: string = Strings.format( template, iframeSrc, width.toString(), - height.toString() + height.toString(), + title ); return script; } diff --git a/src/content-handlers/iiif/extensions/uv-default-extension/config/config.json b/src/content-handlers/iiif/extensions/uv-default-extension/config/config.json index 290702f32..0c5e5cd89 100644 --- a/src/content-handlers/iiif/extensions/uv-default-extension/config/config.json +++ b/src/content-handlers/iiif/extensions/uv-default-extension/config/config.json @@ -65,7 +65,7 @@ "options": { "embedEnabled": true, "shareEnabled": true, - "embedTemplate": "", + "embedTemplate": "", "instructionsEnabled": false, "shareFrameEnabled": true, "shareManifestsEnabled": true, diff --git a/src/content-handlers/iiif/extensions/uv-ebook-extension/Extension.ts b/src/content-handlers/iiif/extensions/uv-ebook-extension/Extension.ts index 94ef931ca..4a7459b04 100644 --- a/src/content-handlers/iiif/extensions/uv-ebook-extension/Extension.ts +++ b/src/content-handlers/iiif/extensions/uv-ebook-extension/Extension.ts @@ -141,12 +141,14 @@ export default class Extension extends BaseExtension getEmbedScript(template: string, width: number, height: number): string { const appUri: string = this.getAppUri(); + const title: string = this.helper.getLabel() || ""; const iframeSrc: string = `${appUri}#?manifest=${this.helper.manifestUri}&cfi=${this.cfiFragement}`; const script: string = Strings.format( template, iframeSrc, width.toString(), - height.toString() + height.toString(), + title ); return script; } diff --git a/src/content-handlers/iiif/extensions/uv-ebook-extension/config/config.json b/src/content-handlers/iiif/extensions/uv-ebook-extension/config/config.json index 203a61c1f..9664ebb1a 100644 --- a/src/content-handlers/iiif/extensions/uv-ebook-extension/config/config.json +++ b/src/content-handlers/iiif/extensions/uv-ebook-extension/config/config.json @@ -229,7 +229,7 @@ "options": { "embedEnabled": true, "shareEnabled": true, - "embedTemplate": "", + "embedTemplate": "", "instructionsEnabled": false, "shareFrameEnabled": true, "shareManifestsEnabled": true, diff --git a/src/content-handlers/iiif/extensions/uv-mediaelement-extension/Extension.ts b/src/content-handlers/iiif/extensions/uv-mediaelement-extension/Extension.ts index 2f196c304..d668b7125 100644 --- a/src/content-handlers/iiif/extensions/uv-mediaelement-extension/Extension.ts +++ b/src/content-handlers/iiif/extensions/uv-mediaelement-extension/Extension.ts @@ -235,12 +235,14 @@ export default class Extension extends BaseExtension getEmbedScript(template: string, width: number, height: number): string { const appUri: string = this.getAppUri(); + const title: string = this.helper.getLabel() || ""; const iframeSrc: string = `${appUri}#?manifest=${this.helper.manifestUri}&c=${this.helper.collectionIndex}&m=${this.helper.manifestIndex}&cv=${this.helper.canvasIndex}`; const script: string = Strings.format( template, iframeSrc, width.toString(), - height.toString() + height.toString(), + title ); return script; } diff --git a/src/content-handlers/iiif/extensions/uv-mediaelement-extension/config/config.json b/src/content-handlers/iiif/extensions/uv-mediaelement-extension/config/config.json index 647929709..d3d81ffd6 100644 --- a/src/content-handlers/iiif/extensions/uv-mediaelement-extension/config/config.json +++ b/src/content-handlers/iiif/extensions/uv-mediaelement-extension/config/config.json @@ -65,7 +65,7 @@ "options": { "embedEnabled": true, "shareEnabled": true, - "embedTemplate": "", + "embedTemplate": "", "instructionsEnabled": false, "shareFrameEnabled": true, "shareManifestsEnabled": true, diff --git a/src/content-handlers/iiif/extensions/uv-model-viewer-extension/Extension.ts b/src/content-handlers/iiif/extensions/uv-model-viewer-extension/Extension.ts index 70ab09d49..75187cdbc 100644 --- a/src/content-handlers/iiif/extensions/uv-model-viewer-extension/Extension.ts +++ b/src/content-handlers/iiif/extensions/uv-model-viewer-extension/Extension.ts @@ -257,12 +257,14 @@ export default class ModelViewerExtension extends BaseExtension { getEmbedScript(template: string, width: number, height: number): string { const appUri: string = this.getAppUri(); + const title: string = this.helper.getLabel() || ""; const iframeSrc: string = `${appUri}#?manifest=${this.helper.manifestUri}&c=${this.helper.collectionIndex}&m=${this.helper.manifestIndex}&cv=${this.helper.canvasIndex}`; const script: string = Strings.format( template, iframeSrc, width.toString(), - height.toString() + height.toString(), + title ); return script; } diff --git a/src/content-handlers/iiif/extensions/uv-model-viewer-extension/config/config.json b/src/content-handlers/iiif/extensions/uv-model-viewer-extension/config/config.json index 52a1e16b9..e8a95cfbc 100644 --- a/src/content-handlers/iiif/extensions/uv-model-viewer-extension/config/config.json +++ b/src/content-handlers/iiif/extensions/uv-model-viewer-extension/config/config.json @@ -78,7 +78,7 @@ "options": { "embedEnabled": true, "shareEnabled": true, - "embedTemplate": "", + "embedTemplate": "", "instructionsEnabled": false, "shareFrameEnabled": true, "shareManifestsEnabled": true, diff --git a/src/content-handlers/iiif/extensions/uv-openseadragon-extension/Extension.ts b/src/content-handlers/iiif/extensions/uv-openseadragon-extension/Extension.ts index 5c7ddd935..873bed294 100644 --- a/src/content-handlers/iiif/extensions/uv-openseadragon-extension/Extension.ts +++ b/src/content-handlers/iiif/extensions/uv-openseadragon-extension/Extension.ts @@ -1364,12 +1364,14 @@ export default class OpenSeadragonExtension extends BaseExtension { const config: string = this.data.config!.uri || ""; const locales: string | null = this.getSerializedLocales(); const appUri: string = this.getAppUri(); + const title: string = this.helper.getLabel() || ""; const iframeSrc: string = `${appUri}#?manifest=${this.helper.manifestUri}&c=${this.helper.collectionIndex}&m=${this.helper.manifestIndex}&cv=${this.helper.canvasIndex}&config=${config}&locales=${locales}&xywh=${zoom}&r=${rotation}`; const script: string = Strings.format( template, iframeSrc, width.toString(), - height.toString() + height.toString(), + title ); return script; } diff --git a/src/content-handlers/iiif/extensions/uv-openseadragon-extension/config/config.json b/src/content-handlers/iiif/extensions/uv-openseadragon-extension/config/config.json index 5d53651f4..f4c727f28 100644 --- a/src/content-handlers/iiif/extensions/uv-openseadragon-extension/config/config.json +++ b/src/content-handlers/iiif/extensions/uv-openseadragon-extension/config/config.json @@ -436,7 +436,7 @@ "shareDialogue": { "options": { "embedEnabled": true, - "embedTemplate": "", + "embedTemplate": "", "instructionsEnabled": false, "shareEnabled": true, "shareFrameEnabled": true, diff --git a/src/content-handlers/iiif/extensions/uv-pdf-extension/Extension.ts b/src/content-handlers/iiif/extensions/uv-pdf-extension/Extension.ts index 88a7af2e7..c5927319a 100644 --- a/src/content-handlers/iiif/extensions/uv-pdf-extension/Extension.ts +++ b/src/content-handlers/iiif/extensions/uv-pdf-extension/Extension.ts @@ -159,12 +159,14 @@ export default class Extension extends BaseExtension getEmbedScript(template: string, width: number, height: number): string { const appUri: string = this.getAppUri(); + const title: string = this.helper.getLabel() || ""; const iframeSrc: string = `${appUri}#?manifest=${this.helper.manifestUri}&c=${this.helper.collectionIndex}&m=${this.helper.manifestIndex}&cv=${this.helper.canvasIndex}`; const script: string = Strings.format( template, iframeSrc, width.toString(), - height.toString() + height.toString(), + title ); return script; } diff --git a/src/content-handlers/iiif/extensions/uv-pdf-extension/config/config.json b/src/content-handlers/iiif/extensions/uv-pdf-extension/config/config.json index 970159df0..f933677ca 100644 --- a/src/content-handlers/iiif/extensions/uv-pdf-extension/config/config.json +++ b/src/content-handlers/iiif/extensions/uv-pdf-extension/config/config.json @@ -269,7 +269,7 @@ "options": { "embedEnabled": true, "shareEnabled": true, - "embedTemplate": "", + "embedTemplate": "", "instructionsEnabled": false, "shareFrameEnabled": true, "shareManifestsEnabled": true,