diff --git a/src/Plugin/OaiMetadataMap/DgiStandard.php b/src/Plugin/OaiMetadataMap/DgiStandard.php index 3c43fc0..d4e165d 100644 --- a/src/Plugin/OaiMetadataMap/DgiStandard.php +++ b/src/Plugin/OaiMetadataMap/DgiStandard.php @@ -393,7 +393,9 @@ public function addThumbnail(ContentEntityInterface $entity, $dest) { $fid = $media->getSource()->getSourceFieldValue($media); $file = $this->entityTypeManager->getStorage('file')->load($fid); - $this->elements[$dest][] = $file->createFileUrl(FALSE); + // XXX: Some harvesters want the thumbnail to be first so let's prepend + // it. + array_unshift($this->elements[$dest], $file->createFileUrl(FALSE)); } }