Browse Source

Add check for falsity in IIIF Manifest along with 'isset()'

pull/897/head
Alexander O'Neill 2 years ago
parent
commit
2e4780163e
  1. 2
      modules/islandora_iiif/src/Plugin/views/style/IIIFManifest.php

2
modules/islandora_iiif/src/Plugin/views/style/IIIFManifest.php

@ -277,7 +277,7 @@ class IIIFManifest extends StylePluginBase {
], ],
]; ];
if (isset($ocr)) { if (isset($ocr) && $ocr != FALSE) {
$tmp_canvas['seeAlso'] = [ $tmp_canvas['seeAlso'] = [
'@id' => $ocr->entity->createFileUrl(FALSE), '@id' => $ocr->entity->createFileUrl(FALSE),
'format' => 'text/vnd.hocr+html', 'format' => 'text/vnd.hocr+html',

Loading…
Cancel
Save