Andrea, that worked perfectly, thanks!

What sections would I need to include to read the collection the item is
in ?

Thanks.

-Matthew

-----Original Message-----
From: Andrea Schweer [mailto:schw...@waikato.ac.nz] 
Sent: Thursday, February 14, 2013 5:22 PM
To: dspace-tech@lists.sourceforge.net
Subject: Re: [Dspace-tech] Access bitstream information from search
results

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,fileS
> ec&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&amp;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>&amp;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
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette:
https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

This electronic communication is governed by the terms and conditions at
http://www.mun.ca/cc/policies/electronic_communications_disclaimer_2012.php

------------------------------------------------------------------------------
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
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

Reply via email to