Andrea Schweer-2 wrote
> 
> Hi Mark,
> 
>> 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   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).
> 
> Dr Andrea Schweer
> IRR Technical Specialist, ITS Information Systems
> The University of Waikato, Hamilton, New Zealand
> 
> 


Just incase there are some noobs like me out there who land on this thread,
I'll explain how I made this work. 
I copied Dr. Andrea's item-view.xsl template (see above) into my own
item-view.xsl
/([DSpace]\webapps\xmlui\themes\MyMirage\lib\xsl\aspect\artifactbrowser\item-view.xsl)/
Needless to say, I also copied the necessary pngs to their respective
folders.
I also did not have to rebuild DSpace and I find it somewhat confusing but
at least it worked 

Mark

--
View this message in context: 
http://dspace.2283337.n4.nabble.com/Customizing-DRI2XHTML-ALT-based-themes-via-overlays-tp4655707p4655772.html
Sent from the DSpace - Tech mailing list archive at Nabble.com.

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

Reply via email to