On Wed, Apr 18, 2012 at 16:17, Alain Tschanz <[email protected]> wrote: > Pardon my ignorance, but I have another question. I created a new theme. Do I > have to add your code to the xsl file of the new theme (<theme>.xsl) or can I > add it to structural.xsl?
No problem, everyone started once. Here are some general tips on creating XMLUI themes: https://wiki.duraspace.org/display/DSDOC18/XMLUI+Configuration+and+Customization https://wiki.duraspace.org/display/DSPACE/Create+a+new+theme+(Manakin) http://www.slideshare.net/tdonohue/making-dspace-xmlui-your-own I strongly recommend to leave the distributed themes alone unchanged so that you won't have to do unnecessary merges on DSpace updates. So you should just use regular overriding and your theme should 1) include its parent theme and 2) contain only templates it overrides. Here's a basic <theme>.xsl that overrides the Manakin theme: <?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet xmlns:i18n="http://apache.org/cocoon/i18n/2.1" xmlns:dri="http://di.tamu.edu/DRI/1.0/" xmlns:mets="http://www.loc.gov/METS/" xmlns:xlink="http://www.w3.org/TR/xlink/" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" xmlns:dim="http://www.dspace.org/xmlns/dspace/dim" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:mods="http://www.loc.gov/mods/v3" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns="http://www.w3.org/1999/xhtml" exclude-result-prefixes="i18n dri mets xlink xsl dim xhtml mods dc"> <xsl:import href="../Mirage/Mirage.xsl"/> <xsl:output indent="yes"/> <!-- your overrides go here --> </xsl:stylesheet> Since there are also other resources apart from XSL in a theme (and Mirage expects them in certain relative location), you need to copy those: cp -r Mirage/images yourtheme mkdir yourtheme/lib cp -r Mirage/lib/css yourtheme/lib/ cp -r Mirage/lib/js yourtheme/lib/ This is from the top of my head, let me know if you run into any problems. Regards, ~~helix84 ------------------------------------------------------------------------------ Better than sec? Nothing is better than sec when it comes to monitoring Big Data applications. Try Boundary one-second resolution app monitoring today. Free. http://p.sf.net/sfu/Boundary-dev2dev _______________________________________________ DSpace-tech mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/dspace-tech

