-
Notifications
You must be signed in to change notification settings - Fork 22
Overlays
⚠️ This page documents the DSpace v5 overlay mechanism and is kept for reference only.
Overlays are a way of introducing your local changes to themes or even source code without making the working directory dirty. This is done in order to make updates as seamless as possible.
The overlays are done in such a way that when you place a file in a specific directory the file you've provided will be used instead of the file that's provided as the part of the repository.
The specific directory is [dspace-source]/dspace/modules/.
You'll notice, when signing in, the UI heading is "Sign in to LINDAT/CLARIN repository"; now your wish is to change this to the name of your repository.
The string is located in aai_config.js (full documentation for this config file is in a different project),
but you don't want to modify the file in it's current location. Instead copy it to [dspace-source]/dspace/modules/xmlui/src/main/webapp/themes/UFAL/lib/js/
and edit it there. The file you've now created will (on deploy) overwrite the file we provide in the sources.
Few things to notice:
- the original file is in
dspace-xmluimodule so you are copying it to.../modules/xmlui/ - the (rest of the) path stays the same
When you want to change the LINDAT/CLARIN logo for the logo of your institution, there are multiple ways you can take:
- overlay the logo file
- this differs from the previous example only in the file that is being overlaid
- bit cumbersome, because you'll have to name your logo
lindat-logo.png
- overlay the transformation file
-
after a bit of a search you find that the logo in the right hand navigation pane comes from navigation.xsl again you copy this file "keeping" its path. As before you edit this copy, find the line starting with
<img alt="LINDAT/CLARIN logo"change thesrcattribute for example to{$context-path}/themes/MY_THEME/images/my_logo.pngchange thealtattribute for example toINSTITUTION logoalso on the parent a-element change thehrefattributes URL to point to your institution. -
in the
[dspace-source]/dspace/modules/xmlui/src/main/webapp/directory createthemes/MY_THEME/imagesand add youmy_logo.pngfile -
you have added a new file/directory with overlays
-
Getting Started
Features
- All Features — full categorised list
- CLARIN Licenses
- PIDs & Handles
- Featured Services / Refbox
- Field-Level Permissions
- File Previews
- Sharing a Submission
- Personal Access Tokens
- DOI Configuration per Community
- ROR Authority
Operations
- Kubernetes Deployment
- Samples (.env, Nginx)
- Nginx + Shibboleth
- Handle Server · Setup (v7)
- Shibboleth · DiscoJuice
- Shibboleth Accounts
- S3 Storage · CESNET S3
- Google Analytics
- Matomo
- Solr
- Logging
- Custom Namespace
- Health Report
For Users
Development
Reference
- Authorizations
- Metadata Info
- Citations (proposal)
- Repository Checklist
- Search, Browse & Filters
- Localization
- Importing Items (CLI)
- NFA Import - Steps
- OpenAIRE
- DOI Registration
- Inclusion in OLAC
- Unit Testing
- Deploy Checks
- Troubleshooting
- Versioning Theory
- Dynamic Resource Versioning
- Metashare Import · Schema
- Web Server Overview
- LINDAT Common Theme
- Workshop 2016 Results
- WebLicht Integration
- Google Dataset Search
Archive (v5 / stale)
- Old Home (v5)
- Installation (v5)
- Prerequisites (v5)
- Connecting Tomcat with Apache
- Using Apache
- Building Shibboleth FastCGI
- Shibboleth Install (v5)
- EUDAT Replication
- Backup (v5)
- Spring Social / Google Drive (v5)
- Clarin (→ Repository Checklist)
- Control Panel (v5)
- Overlays (v5)
- Configuration (v5)
- Speeding Up Downloads
- Debugging (v5)
- Selenium (v5)
- Code Contributions (v5)
- Best Practices (v5)
- Testing Hudson
- Working on Windows
- Prerequisites Checklist (v5)
- Migration to DSpace 7.2.1
- Upgrade From Lindat
- Piwik (→ Matomo) · Piwik Cleaning