Hi again,
On 15/02/13 09:47, Andrea Schweer wrote:
> Look at the comment in the generated HTML page. It will be something
> like this:
>
> External Metadata URL:
> cocoon://metadata/handle/123456789/1234/mets.xml?sections=dmdSec,fileSec&fileGrpTypes=THUMBNAIL
>
>
> I can't find right now where that is generated, but the result is
> exactly what you say: you won't be able to access non-THUMNAIL files
> from where you are. So I guess the next step is to find where those
> options are appended and change it to include CONTENT.
Typically, the moment I had hit 'send', I found it... Look at
dri2xhtml-alt/aspect/artifactbrowser/common.xsl and in particular the
template <xsl:template match="dri:reference" mode="summaryList">:
<!-- Since this is a summary only grab the descriptive
metadata, and the thumbnails -->
<xsl:text>?sections=dmdSec,fileSec&fileGrpTypes=THUMBNAIL</xsl:text>
<!-- An example of requesting a specific metadata standard
(MODS and QDC crosswalks only work for items)->
<xsl:if test="@type='DSpace Item'">
<xsl:text>&dmdTypes=DC</xsl:text>
</xsl:if>-->
So just change that template (or override in your theme) to exchange
THUMBNAIL for CONTENT or add the CONTENT bundle (I assume the syntax
will be fileGrpTypes=THUMBNAIL,CONTENT but I haven't tried it).
I like this much better than my approach of adding mimetype annotations
to the item metadata :)
cheers,
Andrea
--
Dr Andrea Schweer
IRR Technical Specialist, ITS Information Systems
The University of Waikato, Hamilton, New Zealand
+64-7-838 4466 ext. 6972
------------------------------------------------------------------------------
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-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