Hi Matt,

Another thread this week from Lars has a successful for-each select of 
"//mets:fileGrp[@USE='CONTENT']/mets:file[@MIMETYPE='image/jpeg']".  It looks 
like you should be able to use

select="//mets:fileGrp[@USE='CONTENT']/mets:file[@MIMETYPE]"

to get all MIMEtypes.

B--

From: Drover, Matt [mailto:[email protected]]
Sent: Thursday, February 14, 2013 8:15 AM
To: [email protected]
Subject: [Dspace-tech] Access bitstream information from search results

I asked this question a few days ago, but it was too specific. Hopfully this 
generialized version of my question might peek someones interest.

I'm working in item-list.xsl, in this template <xsl:template match="dim:dim" 
mode="itemSummaryList-DIM-metadata">

I want to list the bitstream names In the results. For some reason, I cannot 
read the mets:fileGrp[@USE='CONTENT'] section of the xml. I can read any value 
from any other section, except the mets:file section.

I am using this <xsl:param name="mimetype" 
select="//mets:fileGrp/mets:file/@MIMETYPE"/>, but it only catches the 
bitstreams with THUMBNAIL's

I see the info I'm looking for in the DRI view, but can't read it.

<mets:fileSec>
<mets:fileGrp USE="CONTENT">
<mets:file CHECKSUMTYPE="MD5" GROUPID="group_file_15054" ID="file_15054" 
MIMETYPE="video/mp4v-es" SIZE="13872425" 
CHECKSUM="79e9ea37f85a89fc99be1db88ee2f4dd">
<mets:FLocat LOCTYPE="URL" xlink:title="Types of Bones.mp4" xlink:label="" 
xlink:type="locator" 
xlink:href="/bitstream/handle/stor/reg-2012-09-18--14-55-16-0/Types%20of%20Bones.mp4?sequence=1"/>
</mets:file>
</mets:fileGrp>
</mets:fileSec>

Matthew Drover
Programmer Consultant
Immersive Technology
Distance Education, Learning and Teaching Support

Memorial University of Newfoundland


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
[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