Browse Source

Skip empty image fields when constructing IIIF manifest.

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

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

@ -189,7 +189,7 @@ class IIIFManifest extends StylePluginBase {
*/ */
protected function getTileSourceFromRow(ResultRow $row, $iiif_address, $iiif_base_id) { protected function getTileSourceFromRow(ResultRow $row, $iiif_address, $iiif_base_id) {
$canvases = []; $canvases = [];
foreach ($this->options['iiif_tile_field'] as $iiif_tile_field) { foreach (array_filter(array_values($this->options['iiif_tile_field'])) as $iiif_tile_field) {
$viewsField = $this->view->field[$iiif_tile_field]; $viewsField = $this->view->field[$iiif_tile_field];
$entity = $viewsField->getEntity($row); $entity = $viewsField->getEntity($row);

Loading…
Cancel
Save