Skip to content

Commit

Permalink
Add absolute URL for Thumbnail Service ID
Browse files Browse the repository at this point in the history
  • Loading branch information
ipf authored Oct 28, 2019
1 parent 0858d8e commit a825596
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Service/PresentationService.php
Original file line number Diff line number Diff line change
Expand Up @@ -418,14 +418,15 @@ private function getNavDate(\Subugoe\IIIFModel\Model\Document $document)
* @param \Subugoe\IIIFModel\Model\Document $document
*
* @return Image
* @throws IIIFException
*/
private function getThumbnail(\Subugoe\IIIFModel\Model\Document $document): Image
{
$this->router->setContext($this->setRoutingContext(self::CONTEXT_IMAGE));

$thumbnail = new Image();
$thumbnailService = new Service();
$thumbnailService->setId($this->router->generate('subugoe_iiif_manifest', ['id' => $document->getId()]));
$thumbnailService->setId($this->router->generate('subugoe_iiif_manifest', ['id' => $document->getId()], RouterInterface::ABSOLUTE_URL));

$thumbnailParameters = [
'identifier' => $document->getPhysicalStructure(0)->getIdentifier(),
Expand Down

0 comments on commit a825596

Please sign in to comment.