Browse Source

Fix error caused by rebase.

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

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

@ -197,15 +197,15 @@ class IIIFManifest extends StylePluginBase {
if (isset($entity->{$viewsField->definition['field_name']})) { if (isset($entity->{$viewsField->definition['field_name']})) {
/** @var \Drupal\Core\Field\FieldItemListInterface $images */ /** @var \Drupal\Core\Field\FieldItemListInterface $images */
$images = $entity->{$viewsField->definition['field_name']}; $images = $entity->{$viewsField->definition['field_name']};
foreach ($images as $image) { foreach ($images as $i => $image) {
if (!$image->entity->access('view')) { if (!$image->entity->access('view')) {
// If the user does not have permission to view the file, skip it. // If the user does not have permission to view the file, skip it.
continue; continue;
} }
$ocrs = $entity->{$ocrField->definition['field_name']}; $ocrs = $entity->{$ocrField->definition['field_name']};
// Create the IIIF URL for this file // Create the IIIF URL for this file
// Visiting $iiif_url will resolve to the info.json for the image. // Visiting $iiif_url will resolve to the info.json for the image.

Loading…
Cancel
Save