On Tue, Feb 12, 2013 at 8:47 PM, Drover, Matt <[email protected]> wrote:
> Here is an update, the @THUMBNAIL is only available for bitstreams that have 
> a thumbnail generated by the system. See this this mets xml:

Yes, that's what I said: "assuming the thumbnail exists"

> I want the data from CONTENT, as not all my items have the THUMBNAIL section. 
> I tried this and I get nothing.  <xsl:value-of 
> select="//mets:fileGrp[@USE=CONTENT]/mets:file/@MIMETYPE"/>

Just from a quick look - you didn't put CONTENT inside apostrophes. Try this:
<xsl:value-of select="//mets:fileGrp[@USE='CONTENT']/mets:file/@MIMETYPE"/>


Another gotcha here is that you're assuming there will be only one
bitstream in a bundle. That will likely be true for THUMBNAIL, less
likely for CONTENT. You could match the thumbnail with the content
bitstream by @GROUPID.


Regards,
~~helix84

Compulsory reading: DSpace Mailing List Etiquette
https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

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