On Mon, Mar 4, 2013 at 2:04 PM, Μάριος Πετρόπουλος <[email protected]> wrote:
> So from my point of view ,at first, i would like to know if it is possible
> for Dspace to link a file with another website.
Hi Marios,
I'm assuming the displaying part works for you:
http://dspace.2283337.n4.nabble.com/url-redirection-on-view-open-for-an-item-td4580430.html
That would answer the first part.
> The redirection part though,i managed to make it with your help by
> changing
> some templates but i can't manage to link the pdf file between d space and
> the targeted site..
I'm not sure what you mean. You mean to construct a link to the target site
using the DSpace bitstream name?
This should work (I didn't test it, though):
<xsl:template match="mets:fileGrp[@USE='CONTENT']">
<xsl:param name="context"/>
<xsl:param name="primaryBitstream" select="-1"/>
<h2><i18n:text>xmlui.dri2xhtml.METS-1.0.item-files-head</i18n:text></h2>
<a>
<xsl:attribute name="href">
<xsl:value-of
select="'http://example.com/link/to/fulltext/' +
mets:file/mets:FLocat/@xlink:title" />
</xsl:attribute>
<xsl:text>Link to fulltext on external site</xsl:text>
</a>
</xsl:template>
Regards,
~~helix84
Compulsory reading: DSpace Mailing List Etiquette
https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
_______________________________________________
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