Hi,
We had a requirement to add the bitstream links to our oai-dc OAI-PMH output for one of the services that harvests our content – we needed to put the Bitstream URLs in <dc.identifier> for this service, and I achieved it by adding the following to my oai_dc.xsl file:
<!-- ******* URLs for digital object(s) (obtained from file 'bundles') ******* -->
<!-- URLs put in <dc.identifier> OAI-PMH elements -->
<xsl:for-each select="doc:metadata/doc:element[@name='bundles']/doc:element[@name='bundle']">
<!-- ******* URLs for content bitstreams (from ORIGINAL bundle): <dc:identifier> ******* -->
<xsl:if test="doc:field[@name='name']/text() = 'ORIGINAL'">
<xsl:for-each select="doc:element[@name='bitstreams']/doc:element">
<dc:identifier><xsl:value-of select="doc:field[@name='url']/text()" /></dc:identifier>
</xsl:for-each>
</xsl:if>
</xsl:for-each>
- if you need to put the bitstream URLs in a different element, you should be able to do that by simply changing the dc element that appears in this line:
<dc:identifier><xsl:value-of select="doc:field[@name='url']/text()" /></dc:identifier>
I hope that helps,
Mike
Michael White
Senior Developer
Business Applications and Integrations
T: (01786) 466877
A: 4B19, Cottrell, University of Stirling, Stirling, FK9 4LA
--
All messages to this mailing list should adhere to the DuraSpace Code of Conduct:
https://duraspace.org/about/policies/code-of-conduct/
---
You received this message because you are subscribed to the Google Groups "DSpace Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
dspace-communi...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/dspace-community/CAGM_5ubGga7JD%3D%3DwXEf1d-LNsOujeL6w8nHtLaVnD2pUSr2T_Q%40mail.gmail.com.