This repository contains files for public themes for MetacatUI, mainly themes created for DataONE Plus Hosted Repositories.
Themes distributed with MetacatUI can be found here.
For detailed instructions on how to create a custom theme, see the MetacatUI Themes docs
- Use the
mk-theme.shscript to copy of thesrc/theme-boilerplatedirectory and rename it for your new theme:
bash scripts/mk-theme.sh YOUR-THEME-NAME-HERE-
Edit the repo
src/new-theme/js/themes/new-theme/config.jsfile to reflect the MetacatUI behavior that the new repo wants (access policy default, editing controls, admin group id, repository name, etc.) -
Edit the HTML templates in
src/new-theme/js/themes/new-theme/templatesand CSS insrc/new-theme/js/themes/new-theme/cssto create the look and feel for the repo. -
For hosted repositories: Add the new repo's
urn:nodeidentifier to thedataoneHostedReposlist in the source MetacatUI AppModel. For example, this is what it will look like inmetacatui/src/js/models/AppModel.js:
dataoneHostedRepos: ["urn:node:KNB", "urn:node:ARCTIC", "urn:node:CA_OPC", "urn:node:ESS_DIVE", "urn:node:CERP_SFWMD", "urn:node:Your-New-Theme"],Make sure that change is pushed to the MetacatUI code base and deployed.