Browse Source

Issue #939: Fix incorrect IIIF Manifest canvas Ids.

pull/940/head
Alexander O'Neill 1 year ago
parent
commit
e8712d85f7
  1. 2
      modules/islandora_iiif/src/Plugin/views/style/IIIFManifest.php

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

@ -136,7 +136,7 @@ class IIIFManifest extends StylePluginBase {
$request_url = $this->request->getRequestUri(); $request_url = $this->request->getRequestUri();
// Strip off the last URI component to get the base ID of the URL. // Strip off the last URI component to get the base ID of the URL.
// @todo assumming the view is a path like /node/1/manifest.json // @todo assumming the view is a path like /node/1/manifest.json
$url_components = explode('/', $request_url); $url_components = explode('/', trim($request_url, '/'));
array_pop($url_components); array_pop($url_components);
$content_path = implode('/', $url_components); $content_path = implode('/', $url_components);
$iiif_base_id = $request_host . '/' . $content_path; $iiif_base_id = $request_host . '/' . $content_path;

Loading…
Cancel
Save