Skip to content

Commit

Permalink
Always use media use term in case config is migrated to a different s…
Browse files Browse the repository at this point in the history
…ite.
  • Loading branch information
alxp committed May 27, 2024
1 parent d6f2026 commit 93bd6e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Plugin/views/style/IiifSearchResultAnnotations.php
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ public function render() {
$json['@type'] = "sc:AnnotationList";

if (empty($this->canvasMediaUseTerm)) {
$this->canvasMediaUseTerm = $this->entityTypeManager->getStorage('taxonomy_term')->load($this->options['canvas_media_term']);
$this->canvasMediaUseTerm = $this->utils->getTermForUri($this->options['canvas_media_term_uri']);
}
$json['resources'] = [];
foreach ($this->view->result as $row) {
Expand Down

0 comments on commit 93bd6e3

Please sign in to comment.