Hi, our tests are a bit more confusing... (1.8.2 and Mirage theme)

in <xsl:template match="dri:reference" mode="summaryList"> we are using 
this syntax:
<xsl:text>?sections=dmdSec,fileSec&amp;fileGrpTypes=ORIGINAL,THUMBNAIL,CC-LICENSE</xsl:text>
 

   (NOTE:  The Grp Type  is ORIGINAL, not CONTENT)

But in the template item-summary-list-DIM  we need to specify 
mets:fileGrp[@USE='CONTENT']

Anyway, it works. Thanks


Emilio





El 14/02/2013 21:52, Andrea Schweer escribió:
> 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&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
>

------------------------------------------------------------------------------
The Go Parallel Website, sponsored by Intel - in partnership with Geeknet, 
is your hub for all things parallel software development, from weekly thought 
leadership blogs to news, videos, case studies, tutorials, tech docs, 
whitepapers, evaluation guides, and opinion stories. Check out the most 
recent posts - join the conversation now. http://goparallel.sourceforge.net/
_______________________________________________
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

Reply via email to