Thanks for input
When I insert this code I get:
<img style="height: 80px;"
src="/xmlui/themes/Falmouth/images/.png<view-source:http://viewfinder.falmouth.ac.uk:8080/xmlui/themes/Falmouth/images/.png>"
alt="Icon" /> so it seems to ‘ignore’ the
“mets:fileGrp[@USE='CONTENT']/mets:file/@MIMETYPE” part.
Would I have to ‘lift’ the item-view part that gets the bitstreams for each
item, as item-list only uses the primary bitstream and if not a thumbnail then
shows mime.png (I think this may put too much load on server though) or would
it be better to look for the code that creates the thumbnails (dspace
filter-media) and alter that to create a (e.g.) PDF icon for that record if
primary bitstream is not image?
Regards
Jamie
From: [email protected] [mailto:[email protected]] On Behalf Of helix84
Sent: 28 May 2013 14:53
To: Denman, Jamie
Cc: [email protected]
Subject: Re: [Dspace-tech] MIMETYPE in item-list
On Tue, May 28, 2013 at 3:44 PM, helix84
<[email protected]<mailto:[email protected]>> wrote:
https://github.com/DSpace/DSpace/blob/dspace-3.1/dspace-xmlui/src/main/webapp/themes/Mirage/lib/xsl/aspect/artifactbrowser/item-list.xsl#L259
Here's an example what you could put on that line:
<img alt="Icon" src="{concat($theme-path, '/images/',
mets:fileGrp[@USE='CONTENT']/mets:file/@MIMETYPE, '.png')}" style="height:
{$thumbnail.maxheight}px;"/>
It's really the same thing as in the itemSummaryView-DIM template in
item-view.xsl, just remove the "./mets:fileSec/" part.
Regards,
~~helix84
Compulsory reading: DSpace Mailing List Etiquette
https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
_______________________________________________
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