03 Dspace Theme PDF
03 Dspace Theme PDF
1)
1. Introduction
2
HTML / CSS style Tier
2
XML / XSL Theme Tier
2
Java / Cocoon development Tier
2
1/7
As the tiers descend, progressively more skill and experience are required of someone to be productive at
that tier.
This session will focus on the HTML/CSS style tier and the XML/XSL Theme tier.
cp -R
[dspace-source]/dspace/dspace-xmlui/dspace-xmlui-webapp/src/main/webapp/themes/template/
[theme-dir]
2/7
or
<theme name=”[theme-name]”
path=”[theme-dir]”
regex=”.*” />
3. Restart Tomcat
A default installation of DSpace contains a header with a DSpace logo included when using either the
Reference or the Classic theme. This logo is part of the style.css contained within this theme. This
header can be customized to contain your own logo by copying the header-logo style to your customized
css file and changing the image to a banner from your own institution.
A default installation of DSpace contains a trail in the item display page containing the parent collection and
communities. The Classic theme displays this trail as separate lines underneath each other. Alter this trail
(and any other occurrence of the trail) to place all links behind each other.
3/7
4/7
Structural Display
/themes/dri2xhtml/structural.xsl
Metadata handlers
/themes/dri2xhtml/DIM-Handler.xsl
/themes/dri2xhtml/MODS-Handler.xsl
/themes/dri2xhtml/QDC-Handler.xsl
/themes/dri2xhtml/General-Handler.xsl
These handlers arre responsible for: displaying items, collections, and communities and there are different
versions for DIM, MODS, and QDC metadata.
Base i18n
The XMLUI user interface supports multiple languages through the use of internationalization catalogues as
defined by the Cocoon Internationalization Transformer. Each catalogue contains the translation of all user-
displayed strings into a particular language or variant. Each catalogue is a single xml file whose name is
based upon the language it is designated for:
• messages_language_country_variant.xml
• messages_language_country.xml
• messages_language.xml
• messages.xml
DSpace will automatically determine which file to select based upon the user's browser and system
configuration. For example, if the user's browser is set to Australian English then first the system will check
if messages_en_au.xml is available. If this translation is not available it will fall back to messages_en.xml,
and finally if that is not available, messages.xml.
Manakin supplies an English only translation of the interface. In order to add other translations to the
system, locate the [dspace-source]/dspace/modules/xmlui/src/main/webapp/i18n/ directory.
By default this directory will be empty; to add additional translations add alternative versions of the
messages.xml file in specific language and country variants as needed for your installation.
To set a language other than English as the default language for the repository's interface, simply name the
translation catalogue for the new default language "messages.xml"
5/7
<xsl:template name=”buildFooter”>
....
</xsl:template>
which is present in DIM-handler.xsl. Copy this block to your local XSL document, and extend this to
also include the Publisher (dc.publisher) present in your item. Make sure you’re either checking an item
containing a publisher, or add one by editing the metadata to view the results.
6/7
PLEASE READ THESE TERMS OF USE CAREFULLY BEFORE USING THESE COURSE MATERIALS. By
using these course materials, you signify your assent to these terms of use. If you do not agree to these
terms of use, please do not use these course materials.
RESTRICTIONS ON USE OF MATERIALS. These course materials are owned by @mire NV, Technologielaan
9, 3001 Heverlee (Belgium).
No components from these course materials owned, licensed or controlled by @mire NV may be copied,
reproduced, republished, uploaded, posted, transmitted, or distributed in any way, except that you may
download one copy of the materials on any single computer for your personal, non-commercial home use
only, provided you keep intact all copyright and other proprietary notices.
Modification of the materials or use of the materials for any other purpose is a violation of @mire's copyright
and other proprietary rights. The use of any such material on any other web site or networked computer
environment is prohibited.
7/7