Skip to content

Commit d982732

Browse files
[BUGFIX] Fix thumbnail reference being always from toplevelId (kitodo#1563)
Co-authored-by: Michael Kubina <[email protected]>
1 parent bad1fbc commit d982732

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Classes/Common/MetsDocument.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,7 @@ private function getPage(array &$details, ?SimpleXMLElement $metsPointers): void
456456
) {
457457
// Link logical structure to the first corresponding physical page/track.
458458
$details['points'] = max((int) array_search($this->smLinks['l2p'][$details['id']][0], $this->physicalStructure, true), 1);
459-
$details['thumbnailId'] = $this->getThumbnail();
459+
$details['thumbnailId'] = $this->getThumbnail($details['id']);
460460
// Get page/track number of the first page/track related to this structure element.
461461
$details['pagination'] = $this->physicalStructureInfo[$this->smLinks['l2p'][$details['id']][0]]['orderlabel'];
462462
$details['videoChapter'] = $this->getTimecode($details);

0 commit comments

Comments
 (0)