Perhaps this will help:
http://wiki.lib.sun.ac.za/index.php/SUNScholar/Asset_Presentation#Use_unique_icons_for_digital_format_types_in_item_view
On 9 November 2012 23:37, helix84 <heli...@centrum.sk> wrote:
> Hi George,
>
> it's very simple, really. Copy this template over to your custom
> theme, replacing this one line:
>
>
> https://github.com/DSpace/DSpace/blob/master/dspace-xmlui/src/main/webapp/themes/Mirage/lib/xsl/aspect/artifactbrowser/item-view.xsl#L407
>
> with:
>
> <xsl:choose>
> <xsl:when test="current()/@MIMETYPE = 'application/pdf'">
> <img alt="Icon" src="{concat($theme-path,
> '/images/your_pdf_icon.png')}" style="height:
> {$thumbnail.maxheight}px;"/>
> </xsl:when>
> <xsl:when test="current()/@MIMETYPE = 'image/jpeg'">
> <img alt="Icon" src="{concat($theme-path,
> '/images/your_jpg_icon.png')}" style="height:
> {$thumbnail.maxheight}px;"/>
> </xsl:when>
> <xsl:otherwise>
> <img alt="Icon" src="{concat($theme-path, '/images/mime.png')}"
> style="height: {$thumbnail.maxheight}px;"/>
> </xsl:otherwise>
> </xsl:choose>
>
> Fill in your images and add more mimetypes - you get the idea.
>
>
> Regards,
> ~~helix84
>
> Compulsory reading: DSpace Mailing List Etiquette
> https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
>
>
> ------------------------------------------------------------------------------
> Everyone hates slow websites. So do we.
> Make your web apps faster with AppDynamics
> Download AppDynamics Lite for free today:
> http://p.sf.net/sfu/appdyn_d2d_nov
> _______________________________________________
> DSpace-tech mailing list
> DSpace-tech@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/dspace-tech
>
--
*Hilton Gibson*
Systems Administrator
JS Gericke Library
Room 1025D
Stellenbosch University
Private Bag X5036
Stellenbosch
7599
South Africa
Tel: +27 21 808 4100 | Cell: +27 84 646 4758
http://library.sun.ac.za
http://scholar.sun.ac.za
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_nov
_______________________________________________
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech