Hi Mark, On 21/06/12 04:32, helix84 wrote: > On Wed, Jun 20, 2012 at 9:31 AM, Kariuki, Mark (FAOSO) > <[email protected]> wrote: >> I customize a theme (I am using Mirage currently as I find it easier to the >> eye), via overlays and add a simple pdf icon to pdf files that are linked to >> an item as Tim Donohue did in his presentation >> (www.slideshare.net/tdonohue/making-dspace-15-your-own-customizations-via-overlays), >> though this was back in the day and he was using the default manakin theme >> and as we know the xsls are now split into different sections all over, in >> the new dri2xhtml-alt based theme. > The template you're looking for is still called <xsl:template > match="mets:file">, only now it's in > dri2xhtml-alt/aspect/artifactbrowser/item-view.xsl > Override this template in your theme and just replace <img > alt="Thumbnail"> with the desired image. To display a different icon > for each filetype, you can branch the code based on MIME type > contained in the @MIMETYPE attribute.
If you'd like to see an example -- https://gist.github.com/2962222 is the mets:file template used for Otago University's DSpace instance, OUR Archive: http://otago.ourarchive.ac.nz/ Either replace the mets:file template in your item-view.xsl with the one in the gist, or copy the template from the gist into your Mirage.xsl file (templates directly in Mirage.xsl override those in stylesheets included by Mirage.xsl). cheers, Andrea -- Dr Andrea Schweer IRR Technical Specialist, ITS Information Systems The University of Waikato, Hamilton, New Zealand ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ DSpace-tech mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/dspace-tech

