Archived / Obsolete Documentation

Documentation in this space is no longer accurate.
Looking for official DSpace documentation? See all documentation

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

New Base Theme and Restructured dri2xhtml for 1.7.0

@mire contribution of new theme to support easier development and branding.Provides the following:

  1. A Restructured dri2xhtml base templates for easing locating specific XSLT templates
  2. A Basic Theme based on the above restructured library that contains the templates that need customization most often in the UI.

dri2xhtml-alt

See committed source for dri2xhtml-alt here: [http://scm.dspace.org/svn/repo/dspace/trunk/dspace-xmlui/dspace-xmlui-webapp/src/main/webapp/themes/dri2xhtml-alt/|http://scm.dspace.org/svn/repo/dspace/trunk/dspace-xmlui/dspace-xmlui-webapp/src/main/webapp/themes/dri2xhtml-alt/]

Features

  • No changes to existing templates found in legacy dri2xhtml
  • Drops inclusion of Handlers other than DIM and Default
  • Templates divided out into files so they can be more easily located, divided by Aspect, Page and Functionality
/dspace-xmlui/dspace-xmlui-webapp/src/main/webapp/themes/dri2xhtml-alt/

├── aspect
│   ├── administrative
│   │   └── harvesting.xsl
│   ├── artifactbrowser
│   │   ├── COinS.xsl
│   │   ├── ORE.xsl
│   │   ├── artifactbrowser.xsl
│   │   ├── collection-list.xsl
│   │   ├── collection-view.xsl
│   │   ├── common.xsl
│   │   ├── community-list.xsl
│   │   ├── community-view.xsl
│   │   ├── item-list.xsl
│   │   └── item-view.xsl
│   └── general
│       └── choice-authority-control.xsl
├── core
│   ├── attribute-handlers.xsl
│   ├── elements.xsl
│   ├── forms.xsl
│   ├── global-variables.xsl
│   ├── navigation.xsl
│   ├── page-structure.xsl
│   └── utils.xsl
└── dri2xhtml.xsl

Basic Theme

Features

  • reset css: ensures the styling is consequent amongst all browsers
  • uses separate css files for different rendering situations: reset, base, print, handheld, ..., and the regular style.css which is similar to the one used in all other themes
  • concatenation and minification ability for the css, js and json files:
    • This is disabled by default, and will need to be enabled in the configuration
    • The IncludePageMeta has been extended to generate URL's to the concatenated version of all css files using the same media tag (if enabled in config)
    • The ConcatenationReader has been created to return concatenated and minified versions of the css and js files
    • This is built to use the list of included css files, last modification timestamps, ... for caching purposes.
    • In order to enable this for any of the existing themes, the theme sitemap must be altered as well
  • javascript loading if jquery is moved to bottom of page for fast loading
  • uses new dri2xhtml-alt, and everything which is replaced in the theme, is included using the exact same hierarchy, for a good overview
  • the rendering of item display and item lists has been completely redesigned
  • the browser is no longer determined using the sitemap, but is determined in the page-structure.xsl: this is supposed to be more reliable

Screenshots











  • No labels