- set absolute download links for files in oai: RequestController.php & datasetxml2oai-pmh.xslt
This commit is contained in:
parent
4bc66213a4
commit
c649af199c
|
@ -124,6 +124,7 @@ class RequestController extends Controller
|
||||||
$uri = explode('?', $_SERVER['REQUEST_URI'], 2);
|
$uri = explode('?', $_SERVER['REQUEST_URI'], 2);
|
||||||
$this->proc->setParameter('', 'baseURL', url('/') . $uri[0]);
|
$this->proc->setParameter('', 'baseURL', url('/') . $uri[0]);
|
||||||
$this->proc->setParameter('', 'repURL', url('/'));
|
$this->proc->setParameter('', 'repURL', url('/'));
|
||||||
|
$this->proc->setParameter('', 'downloadLink', url('/') . '/file/download/');
|
||||||
|
|
||||||
// $resumptionPath = $this->configuration->getResumptionTokenPath();
|
// $resumptionPath = $this->configuration->getResumptionTokenPath();
|
||||||
|
|
||||||
|
@ -186,8 +187,6 @@ class RequestController extends Controller
|
||||||
$repIdentifier = "tethys.at";
|
$repIdentifier = "tethys.at";
|
||||||
$this->proc->setParameter('', 'repIdentifier', $repIdentifier);
|
$this->proc->setParameter('', 'repIdentifier', $repIdentifier);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// Identifier references metadata Urn, not plain Id!
|
// Identifier references metadata Urn, not plain Id!
|
||||||
// Currently implemented as 'oai:foo.bar.de:{docId}' or 'urn:nbn...-123'
|
// Currently implemented as 'oai:foo.bar.de:{docId}' or 'urn:nbn...-123'
|
||||||
if (!array_key_exists('identifier', $oaiRequest)) {
|
if (!array_key_exists('identifier', $oaiRequest)) {
|
||||||
|
|
|
@ -23,6 +23,7 @@
|
||||||
<xsl:param name="setPubType" />
|
<xsl:param name="setPubType" />
|
||||||
<xsl:param name="repositoryName" />
|
<xsl:param name="repositoryName" />
|
||||||
<xsl:param name="repIdentifier" />
|
<xsl:param name="repIdentifier" />
|
||||||
|
<xsl:param name="downloadLink" />
|
||||||
<xsl:param name="sampleIdentifier" />
|
<xsl:param name="sampleIdentifier" />
|
||||||
<xsl:param name="docId" />
|
<xsl:param name="docId" />
|
||||||
<xsl:param name="dateDelete" />
|
<xsl:param name="dateDelete" />
|
||||||
|
@ -555,7 +556,8 @@
|
||||||
|
|
||||||
<xsl:template match="File" mode="oai_dc">
|
<xsl:template match="File" mode="oai_dc">
|
||||||
<dc:identifier>
|
<dc:identifier>
|
||||||
<xsl:value-of select="@PathName" />
|
<!-- <xsl:value-of select="@PathName" /> -->
|
||||||
|
<xsl:value-of select="concat($downloadLink, @Id)" />
|
||||||
</dc:identifier>
|
</dc:identifier>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user