Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • The Simple Item Display underwent a full redesign to provide visitors with a clearer overview of available metadata and associated files.
  • Item list views can now be displayed in two distinct different styles. Switching between these styles is possible with the new dspace.cfg parameter 'xmlui.theme.mirage.item-list.emphasis'
    • The 'metadata' list style includes item abstracts in the listing and is suited for scientific articles.
    • The 'file' list style immediately shows you whether files are attached to the items, by displaying a large thumbnail icon for each of the items.
  • Based on the new restructured dri2xhtml base templates. Templates in the theme, overriding the new base templates, are located in the same folder hierarchy to ensure full transparancy.
  • The user agent detection in the sitemap is no longer used to have different stylesheets for different browsers. Because user agent sniffing isn't very reliable, and spreading css rules about the same element over different files for different browsers can make debugging harder. Instead, for IE conditional comments give the body tag a class corresponding to the version of IE, and modernizr is used to detect which css features are available. This way you can target all browsers that support a certain feature using css classes, and rules affecting the same element can be put together in the same place for all browsers.
  • CSS files are now split up according to function instead of browser: There is a separate file for the reset css, one containing a few base styles, one containing helper classes. These files rarely need to be changed, and this leaves style.css containing only rules unique to the theme. There are also separate files for print css and other media.
  • We've also included concatenation and minification for css and js files:
    • This is disabled by default, and will need to be enabled in the configuration using the properties 'xmlui.theme.enableConcatenation' and 'xmlui.theme.enableMinification'
    • 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.
    • Note that when minification is enabled, all comments will be removed. This could be a problem for comments containing copyright notices, so for files with those comments you should disable minification by adding '?nominify' after the url e.g. 
      <map:parameter name="javascript" value="lib/js/jquery-ui-1.8.5.custom.min.js?nominify"/>
  • Javascript references were moved to bottom of page. This way pages will seem to load faster, because the structure of the page will already be loaded while the js files are being retrieved.
  • jQuery and jQueryUI are included by default. To avoid conflicts the authority control javascript has been rewritten to use jQuery instead of Prototype and Script.aculo.us.

...