...
- First determine a directory name for your new theme inside the dspace-src/dspace/modules/xmlui/src/main/webapp
directory; this name will be referenced as theme-dir in these instructions.Code Block /themes/
- Instead of starting your new theme completely from scratch, make a new copy of the standard theme template in a new directory, theme-dir.
- First, build DSpace (
) if you haven't alreadyCode Block mvn package
dspace-srcCode Block cd
Code Block /dspace/target/dspace-[version]-build.dir/webapps/xmlui/themes/
theme-dirCode Block cp -R template
- First, build DSpace (
- Next customize the theme's sitemap by specifying the theme's directory and name. Open, dspace-src/dspace/modules/xmlui/src/main/webapp/themes/theme-dir/sitemap.xmap, and edit the global variables shown below:
Code Block <map:component-configurations>
Code Block <global-variables>
theme-dirCode Block <theme-path>
Code Block </theme-path>
the name of your themeCode Block <theme-name>
Code Block </theme-name>
Code Block </global-variables>
Code Block </map:component-configurations>
- Next customize the theme's CSS stylesheets, by default there are two style sheets used – a base version for all browsers and then a supplemental version just for Internet explorer.
- dspace-src/dspace/modules/xmlui/src/main/webapp/themes/theme-dir/lib/style.css
- dspace-src/dspace/modules/xmlui/src/main/webapp/themes/theme-dir/lib/style-ie6.css
- Perform the steps in Install + a + theme (Manakin)
- Perform the steps in Rebuild + DSpace
Hints on Customizing XSLT in a theme:
...