diff --git a/src/content-handlers/iiif/BaseConfig.ts b/src/content-handlers/iiif/BaseConfig.ts index b3e871153..39d48f7ce 100644 --- a/src/content-handlers/iiif/BaseConfig.ts +++ b/src/content-handlers/iiif/BaseConfig.ts @@ -153,6 +153,7 @@ export type CenterPanelOptions = { export type CenterPanelContent = { attribution: string; + close: string; }; type CenterPanel = ModuleConfig & { 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..e3797b74c 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 @@ -199,7 +199,8 @@ "requiredStatementEnabled": true }, "content": { - "attribution": "$attribution" + "attribution": "$attribution", + "close": "$close" } }, "alephCenterPanel": { @@ -211,7 +212,8 @@ "dracoDecoderPath": "uv/lib/" }, "content": { - "attribution": "Attribution" + "attribution": "$attribution", + "close": "$close" } }, "settingsDialogue": { 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..e09376e9c 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 @@ -226,7 +226,8 @@ "requiredStatementEnabled": true }, "content": { - "attribution": "$attribution" + "attribution": "$attribution", + "close": "$close" } }, "avCenterPanel": { @@ -248,6 +249,7 @@ }, "content": { "attribution": "$attribution", + "close": "$close", "currentTime": "$currentTime", "delimiter": " - ", "duration": "$duration", 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..79727272f 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 @@ -93,7 +93,8 @@ "requiredStatementEnabled": true }, "content": { - "attribution": "$attribution" + "attribution": "$attribution", + "close": "$close" } }, "fileLinkCenterPanel": { @@ -104,7 +105,8 @@ "requiredStatementEnabled": true }, "content": { - "attribution": "$attribution" + "attribution": "$attribution", + "close": "$close" } }, "footerPanel": { 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..e472b7ab3 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 @@ -195,7 +195,8 @@ "requiredStatementEnabled": true }, "content": { - "attribution": "$attribution" + "attribution": "$attribution", + "close": "$close" } }, "ebookCenterPanel": { @@ -206,7 +207,8 @@ "requiredStatementEnabled": true }, "content": { - "attribution": "$attribution" + "attribution": "$attribution", + "close": "$close" } }, "settingsDialogue": { 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..e894e7a9a 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 @@ -153,7 +153,8 @@ "requiredStatementEnabled": true }, "content": { - "attribution": "$attribution" + "attribution": "$attribution", + "close": "$close" } }, "mediaelementCenterPanel": { @@ -167,7 +168,8 @@ "requiredStatementEnabled": true }, "content": { - "attribution": "$attribution" + "attribution": "$attribution", + "close": "$close" } }, "restrictedDialogue": { 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..d6e03d0e0 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 @@ -244,7 +244,8 @@ "requiredStatementEnabled": true }, "content": { - "attribution": "$attribution" + "attribution": "$attribution", + "close": "$close" } }, "modelViewerCenterPanel": { @@ -260,6 +261,7 @@ }, "content": { "attribution": "$attribution", + "close": "$close", "zoomIn": "$zoomIn", "zoomOut": "$zoomOut", "vr": "$vr" 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..2b0d617bb 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 @@ -333,7 +333,8 @@ "requiredStatementEnabled": true }, "content": { - "attribution": "$attribution" + "attribution": "$attribution", + "close": "$close" } }, "openSeadragonCenterPanel": { @@ -361,6 +362,7 @@ }, "content": { "attribution": "$attribution", + "close": "$close", "goHome": "$goHome", "imageUnavailable": "$imageUnavailable", "next": "$next", 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..0a0065511 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 @@ -171,7 +171,8 @@ "requiredStatementEnabled": true }, "content": { - "attribution": "$attribution" + "attribution": "$attribution", + "close": "$close" } }, "pdfCenterPanel": { @@ -183,7 +184,8 @@ "usePdfJs": true }, "content": { - "attribution": "$attribution" + "attribution": "$attribution", + "close": "$close" } }, "resourcesLeftPanel": { diff --git a/src/content-handlers/iiif/modules/uv-shared-module/CenterPanel.ts b/src/content-handlers/iiif/modules/uv-shared-module/CenterPanel.ts index 4905166fa..bd9b9995d 100644 --- a/src/content-handlers/iiif/modules/uv-shared-module/CenterPanel.ts +++ b/src/content-handlers/iiif/modules/uv-shared-module/CenterPanel.ts @@ -56,7 +56,7 @@ export class CenterPanel<