Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
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
Changing the idp discovery UI
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
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
- 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
- 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 the
srcattribute for example to
altattribute for example to
INSTITUTION logoalso on the parent a-element change the
hrefattributes URL to point to your institution.
themes/MY_THEME/imagesand add you
you have added a new file/directory with overlays