From c649af199cd8a3fe0010167d89ea4a741d1b76c1 Mon Sep 17 00:00:00 2001 From: Arno Kaimbacher Date: Tue, 13 Oct 2020 17:19:26 +0200 Subject: [PATCH] - set absolute download links for files in oai: RequestController.php & datasetxml2oai-pmh.xslt --- app/Http/Controllers/Oai/RequestController.php | 3 +-- public/datasetxml2oai-pmh.xslt | 4 +++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/app/Http/Controllers/Oai/RequestController.php b/app/Http/Controllers/Oai/RequestController.php index b2e50e5..4dea1da 100644 --- a/app/Http/Controllers/Oai/RequestController.php +++ b/app/Http/Controllers/Oai/RequestController.php @@ -124,6 +124,7 @@ class RequestController extends Controller $uri = explode('?', $_SERVER['REQUEST_URI'], 2); $this->proc->setParameter('', 'baseURL', url('/') . $uri[0]); $this->proc->setParameter('', 'repURL', url('/')); + $this->proc->setParameter('', 'downloadLink', url('/') . '/file/download/'); // $resumptionPath = $this->configuration->getResumptionTokenPath(); @@ -186,8 +187,6 @@ class RequestController extends Controller $repIdentifier = "tethys.at"; $this->proc->setParameter('', 'repIdentifier', $repIdentifier); - - // Identifier references metadata Urn, not plain Id! // Currently implemented as 'oai:foo.bar.de:{docId}' or 'urn:nbn...-123' if (!array_key_exists('identifier', $oaiRequest)) { diff --git a/public/datasetxml2oai-pmh.xslt b/public/datasetxml2oai-pmh.xslt index af575cb..5373505 100644 --- a/public/datasetxml2oai-pmh.xslt +++ b/public/datasetxml2oai-pmh.xslt @@ -23,6 +23,7 @@ + @@ -555,7 +556,8 @@ - + +