Thanks, it's clear now. Instead of the <xsl:template
match="mets:fileGrp[@USE='CONTENT']"> template, you should override
the <xsl:template
match="mets:file"> template. The only thing you need to change in that
template is the value of href attribute as you can see below. For clarity,
I added the $baseurl variable separately.
<xsl:variable name="baseurl"
select="concat(/dri:document/dri:meta/dri:pageMeta/dri:metadata[@element='request'][@qualifier='scheme'],
'://',
/dri:document/dri:meta/dri:pageMeta/dri:metadata[@element='request'][@qualifier='serverName'],
':',
/dri:document/dri:meta/dri:pageMeta/dri:metadata[@element='request'][@qualifier='serverPort'])"/>
<!-- Build a single row in the bitstreams table of the item view page -->
<xsl:template match="mets:file">
<xsl:param name="context" select="."/>
<tr>
<xsl:attribute name="class">
<xsl:text>ds-table-row </xsl:text>
<xsl:if test="(position() mod 2 = 0)">even </xsl:if>
<xsl:if test="(position() mod 2 = 1)">odd </xsl:if>
</xsl:attribute>
<td>
<a>
<xsl:attribute name="href">
<xsl:value-of
select="concat('http://yourapp.com/path/script.php?file=', $baseurl,
mets:FLocat[@LOCTYPE='URL']/@xlink:href)"/>
</xsl:attribute>
...
Regards,
~~helix84
Compulsory reading: DSpace Mailing List Etiquette
https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:
Build for Windows Store.
http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette