From 1eb73d384537e8fbb84e7180bf53595a32fc215c Mon Sep 17 00:00:00 2001 From: Rosie Le Faive Date: Tue, 24 Oct 2023 09:34:59 -0300 Subject: [PATCH 1/3] Add COI integration to settings form. --- src/Form/OpenSeadragonSettingsForm.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Form/OpenSeadragonSettingsForm.php b/src/Form/OpenSeadragonSettingsForm.php index 0641d5a..dad8db4 100644 --- a/src/Form/OpenSeadragonSettingsForm.php +++ b/src/Form/OpenSeadragonSettingsForm.php @@ -96,6 +96,9 @@ public function buildForm(array $form, FormStateInterface $form_state) { '#default_value' => $this->seadragonConfig->getIiifAddress(), '#required' => TRUE, '#description' => t('Please enter the image server location without trailing slash. eg: http://www.example.org/iiif/2.'), + '#config' => [ + 'key' => 'openseadragon.settings:iiif_server', + ], ], 'manifest_view' => [ '#type' => 'select', From db6df7d1bc16f2f3ab2b1c05b1913f03f78c507d Mon Sep 17 00:00:00 2001 From: Rosie Le Faive Date: Tue, 24 Oct 2023 09:49:46 -0300 Subject: [PATCH 2/3] Tabs to spaces. --- src/Form/OpenSeadragonSettingsForm.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Form/OpenSeadragonSettingsForm.php b/src/Form/OpenSeadragonSettingsForm.php index dad8db4..88bb4b0 100644 --- a/src/Form/OpenSeadragonSettingsForm.php +++ b/src/Form/OpenSeadragonSettingsForm.php @@ -96,7 +96,7 @@ public function buildForm(array $form, FormStateInterface $form_state) { '#default_value' => $this->seadragonConfig->getIiifAddress(), '#required' => TRUE, '#description' => t('Please enter the image server location without trailing slash. eg: http://www.example.org/iiif/2.'), - '#config' => [ + '#config' => [ 'key' => 'openseadragon.settings:iiif_server', ], ], From 234589491d95e9686df0038ec2f4e94c4f841d55 Mon Sep 17 00:00:00 2001 From: Rosie Le Faive Date: Thu, 26 Oct 2023 13:09:16 -0300 Subject: [PATCH 3/3] Composer suggest COI module. --- composer.json | 3 +++ 1 file changed, 3 insertions(+) diff --git a/composer.json b/composer.json index 8d02970..66819d1 100644 --- a/composer.json +++ b/composer.json @@ -16,6 +16,9 @@ "conflict": { "drupal/core": "<9.1" }, + "suggest": { + "drupal/coi": "Some configuration fields work with Config Override Inspector." + }, "authors": [ { "name": "Islandora Foundation",