From b0d8d38afe0a222463d8d9086d1f761238abbe73 Mon Sep 17 00:00:00 2001 From: Adam Vessey Date: Mon, 29 May 2023 16:54:57 -0300 Subject: [PATCH 1/2] Simplify site/node-relative manifest endpoint reference. Using the provided token should avoid any issues with URL schemes or hostnames or ports and so on. --- config/install/islandora_mirador.settings.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/install/islandora_mirador.settings.yml b/config/install/islandora_mirador.settings.yml index 75bea42..b39e1b3 100644 --- a/config/install/islandora_mirador.settings.yml +++ b/config/install/islandora_mirador.settings.yml @@ -1,3 +1,3 @@ mirador_library_installation_type: 'remote' mirador_enabled_plugins: { } -iiif_manifest_url: 'http://localhost:8000/node/[node:nid]/manifest' +iiif_manifest_url: '[node:url:unaliased:absolute]/manifest' From a2bb374bb292aea8cdef0ad634546f1f565a4e31 Mon Sep 17 00:00:00 2001 From: Adam Vessey Date: Tue, 30 May 2023 19:19:08 -0300 Subject: [PATCH 2/2] Expand the description. --- src/Form/MiradorConfigForm.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Form/MiradorConfigForm.php b/src/Form/MiradorConfigForm.php index 3c48aae..4f086a1 100644 --- a/src/Form/MiradorConfigForm.php +++ b/src/Form/MiradorConfigForm.php @@ -60,7 +60,7 @@ public function buildForm(array $form, FormStateInterface $form_state) { ]; $form['iiif_manifest_url_fieldset']['iiif_manifest_url'] = [ '#type' => 'textfield', - '#description' => $this->t('Absolute URL of the IIIF manifest to render. You may use tokens to provide a pattern (e.g. "http://localhost/node/[node:nid]/manifest")'), + '#description' => $this->t('Absolute URL of the IIIF manifest to render. You may use tokens to provide a pattern (e.g. "[node:url:unaliased:absolute]/manifest" or "http://localhost/node/[node:nid]/manifest")'), '#default_value' => $config->get('iiif_manifest_url'), '#maxlength' => 256, '#size' => 64,