Skip to content

Commit

Permalink
Set the thumbnail first.
Browse files Browse the repository at this point in the history
  • Loading branch information
jordandukart committed May 31, 2024
1 parent 95f91e0 commit ed0e3df
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Plugin/OaiMetadataMap/DgiStandard.php
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
}

Expand Down

0 comments on commit ed0e3df

Please sign in to comment.