From 9e61332e788e3a1e98d9bd30ece5c44768cd9977 Mon Sep 17 00:00:00 2001 From: Adam <607975+adam-vessey@users.noreply.github.com> Date: Wed, 7 Aug 2024 14:26:24 -0300 Subject: [PATCH] Update IIIFManifest.php --- modules/islandora_iiif/src/Plugin/views/style/IIIFManifest.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/islandora_iiif/src/Plugin/views/style/IIIFManifest.php b/modules/islandora_iiif/src/Plugin/views/style/IIIFManifest.php index 6afae2499..86389c0d8 100644 --- a/modules/islandora_iiif/src/Plugin/views/style/IIIFManifest.php +++ b/modules/islandora_iiif/src/Plugin/views/style/IIIFManifest.php @@ -711,7 +711,8 @@ public function submitOptionsForm(&$form, FormStateInterface $form_state) { protected function getStructuredTextTerm() : ?TermInterface { if (!$this->structuredTextTermMemoized) { $this->structuredTextTermMemoized = TRUE; - $this->structuredTextTerm = $this->utils->getTermForUri($this->options['structured_text_term_uri']); + $uri = $this->options['structured_text_term_uri'] ?? NULL; + $this->structuredTextTerm = $uri ? $this->utils->getTermForUri($uri) : NULL; } return $this->structuredTextTerm;