diff --git a/src/content-handlers/iiif/extensions/config/ContentLeftPanel.ts b/src/content-handlers/iiif/extensions/config/ContentLeftPanel.ts index a7f2b46ae..ccf127dd7 100644 --- a/src/content-handlers/iiif/extensions/config/ContentLeftPanel.ts +++ b/src/content-handlers/iiif/extensions/config/ContentLeftPanel.ts @@ -31,6 +31,8 @@ type ContentLeftPanelOptions = ExpandPanelOptions & { galleryThumbLoadPadding: number; /** Width of the gallery thumbnail */ galleryThumbWidth: number; + /** Hide thumbnails tab */ + hideThumbsView: boolean; /** Height of the one column thumbnail */ oneColThumbHeight: number; /** Width of the one column thumbnail */ 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 0a31683f1..7138d17fb 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 @@ -71,6 +71,7 @@ "galleryThumbHeight": 320, "galleryThumbLoadPadding": 3, "galleryThumbWidth": 200, + "hideThumbsView": false, "oneColThumbHeight": 320, "oneColThumbWidth": 200, "pageModeEnabled": true, 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 5b3eb2145..174dedfef 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 @@ -75,6 +75,7 @@ "galleryThumbHeight": 320, "galleryThumbLoadPadding": 3, "galleryThumbWidth": 200, + "hideThumbsView": false, "oneColThumbHeight": 320, "oneColThumbWidth": 200, "pageModeEnabled": true, diff --git a/src/content-handlers/iiif/modules/uv-contentleftpanel-module/ContentLeftPanel.ts b/src/content-handlers/iiif/modules/uv-contentleftpanel-module/ContentLeftPanel.ts index ab58980f0..a20b1f793 100644 --- a/src/content-handlers/iiif/modules/uv-contentleftpanel-module/ContentLeftPanel.ts +++ b/src/content-handlers/iiif/modules/uv-contentleftpanel-module/ContentLeftPanel.ts @@ -146,6 +146,9 @@ export class ContentLeftPanel extends LeftPanel { '' + this.content.thumbnails + "" ); this.$tabs.append(this.$thumbsButton); + if (this.config.options.hideThumbsView) { + this.$thumbsButton.hide(); + } this.$tabsContent = $('
'); this.$main.append(this.$tabsContent); @@ -646,6 +649,14 @@ export class ContentLeftPanel extends LeftPanel { false ); + const hideThumbsView = Bools.getBool( + this.config.options.hideThumbsView, + false + ); + if (hideThumbsView) { + return false; + } + const treeData: TreeNode | null = this.getTree(); if (