Uploaded image for project: 'DSpace'
  1. DSpace
  2. DS-2864

XMLUI themes do not cascade to children properly

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Answered
    • Affects Version/s: 5.1, 5.3
    • Fix Version/s: None
    • Component/s: XMLUI
    • Labels:
    • Environment:
      Ubuntu 14.04 GNU/Linux, Tomcat 7.0.56, PostgreSQL 9.4.5, Oracle JDK 7u80.
    • Attachments:
      0
    • Comments:
      1
    • Documentation Status:
      In Description

      Description

      When I apply a theme to a community in xmlui.xconf, the community itself gets the theme, but neither sub communities, collections, nor items under that hierarchy receive the theme; instead, they use the theme matching the ".*" regex.

      For example, in a clean DSpace 5.1 or 5.3 install with only one community containing sub communities/collections, the following configuration:

      xmlui.xconf
      ...
      <theme name="Atmire Mirage Theme" regex="123456789/1" path="Mirage/" />
      <theme name="Atmire Mirage 2 Theme" regex=".*" path="Mirage2/" />
      ...
      

      In DSpace 1.7–4.x we have been using ~20 XMLUI themes in our repository so I noticed this problem in 5.1 when I began porting our themes to Mirage 2.


      Note: I tested 5.1 because that's the version we're targeting in our institute's upgrade, but I also tested 5.3 because it is the latest at the time of writing.

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            aorth Alan Orth
            Reviewer:
            Ivan Masár
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: