CKAN theme of the Mat-O-Lab Project, changes landing Page and adds alternative Data Privacy Act in English and German.
Project description
ckanext-matolabtheme
A CKAN extension providing the Mat-O-Lab theme for data portals. It includes configurable branding (logo, banner, favicon), GDPR-compliant privacy pages in English and German, and a customisable landing page suitable for materials science research data repositories.
Requirements
Compatibility with core CKAN versions:
| CKAN version | Compatible? |
|---|---|
| 2.9 and earlier | not tested |
| 2.10 | ✓ CI tested |
| 2.11 | ✓ CI tested |
Installation
To install the extension:
- Activate your CKAN virtual environment, for example:
. /usr/lib/ckan/default/bin/activate
- Use pip to install package
pip install ckanext-matolabtheme
-
Add
matolabthemeto theckan.pluginssetting in your CKAN config file (by default the config file is located at/etc/ckan/default/ckan.ini). -
Restart CKAN. For example, if you've deployed CKAN with Apache on Ubuntu:
sudo service apache2 reload
Config settings
CKANINI__CKANEXT__MATOLABTHEME__CONTACT_URL=<url to contact site>
CKANINI__CKANEXT__MATOLABTHEME__LEGAL_PERSON_MD=<Legal Body Address in Markdown>
CKANINI__CKANEXT__MATOLABTHEME__LEGAL_NOTICE_URL=<Url to your legal notice information>
CKANINI__CKANEXT__MATOLABTHEME__DSVGO_CONTACT_MD=<Contact to adress with dsvgo conflicts in markdown>
CKANINI__CKANEXT__MATOLABTHEME__CONTACT_DP_COMMISSIONER_EMAIL_MD="[datenprotection_commissioner@example.de](mailto:datenschutzbeauftragte@example.de?subject=dataprotection ${CKAN_HOST})"
CKANINI__CKAN__FAVICON=/img/favicon.png
or ckan.ini parameters.
ckan.matolabtheme.contact_url = <url to contact site>
ckan.matolabtheme.legal_person_md = <Legal Body Address in Markdown>
ckan.matolabtheme.legal_notice_url = <Url to your legal notice information>
ckan.matolabtheme.dsvgo_contact_md = <Contact to adress with dsvgo conflicts in markdown>
ckan.matolabtheme.dsvgo_contact_md = "[datenprotection_commissioner@example.de](mailto:datenschutzbeauftragte@example.de?subject=dataprotection]"
ckan.favicon = /img/favicon.png
If no contact_url is given, it will relate to the about page!
Developer installation
To install ckanext-matolabtheme for development, activate your CKAN virtualenv and do:
git clone https://github.com/Mat-O-Lab/ckanext-matolabtheme.git
cd ckanext-matolabtheme
pip install -e ".[dev]"
Tests
To run the tests, do:
pytest --ckan-ini=test.ini
Citation
If you use this software, please cite it. GitHub shows a "Cite this repository" button (top right of the repo page) that exports the CITATION.cff in APA or BibTeX format.
After the first Zenodo release, a DOI-specific BibTeX entry will be available on the Zenodo record. Until then:
@software{hanke_ckanext_matolabtheme,
author = {Hanke, Thomas},
title = {ckanext-matolabtheme},
url = {https://github.com/Mat-O-Lab/ckanext-matolabtheme},
license = {AGPL-3.0-or-later},
}
License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ckanext_matolabtheme-1.0.8.tar.gz.
File metadata
- Download URL: ckanext_matolabtheme-1.0.8.tar.gz
- Upload date:
- Size: 2.6 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
01f9e8a1a7649a67a50ecc55f88794eae3b493c4bdf2ea1f1bc2b3773d66b335
|
|
| MD5 |
d50c8e048b431fb86be2e9c936501434
|
|
| BLAKE2b-256 |
b9d633f49afdffc0858c77e0e0abcc510d6b604738fd153a8e6ff89982ba690a
|
Provenance
The following attestation bundles were made for ckanext_matolabtheme-1.0.8.tar.gz:
Publisher:
pypi.yml on Mat-O-Lab/ckanext-matolabtheme
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ckanext_matolabtheme-1.0.8.tar.gz -
Subject digest:
01f9e8a1a7649a67a50ecc55f88794eae3b493c4bdf2ea1f1bc2b3773d66b335 - Sigstore transparency entry: 1131929966
- Sigstore integration time:
-
Permalink:
Mat-O-Lab/ckanext-matolabtheme@79b8868f0aac958ca0a45a05bd1496073258fbee -
Branch / Tag:
refs/tags/v1.0.8 - Owner: https://github.com/Mat-O-Lab
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi.yml@79b8868f0aac958ca0a45a05bd1496073258fbee -
Trigger Event:
release
-
Statement type:
File details
Details for the file ckanext_matolabtheme-1.0.8-py3-none-any.whl.
File metadata
- Download URL: ckanext_matolabtheme-1.0.8-py3-none-any.whl
- Upload date:
- Size: 2.6 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
21c26e6c13cc3b4f0b03a02f0f97e5dba760bbe9fd9185074895b196a3afb7c9
|
|
| MD5 |
8f23d9e52f6147f2cdad863de0ba5bdf
|
|
| BLAKE2b-256 |
c89e2d7f7135bf023eb65ed522dac52f7769cdd77a315bd01d686485a953c514
|
Provenance
The following attestation bundles were made for ckanext_matolabtheme-1.0.8-py3-none-any.whl:
Publisher:
pypi.yml on Mat-O-Lab/ckanext-matolabtheme
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ckanext_matolabtheme-1.0.8-py3-none-any.whl -
Subject digest:
21c26e6c13cc3b4f0b03a02f0f97e5dba760bbe9fd9185074895b196a3afb7c9 - Sigstore transparency entry: 1131930046
- Sigstore integration time:
-
Permalink:
Mat-O-Lab/ckanext-matolabtheme@79b8868f0aac958ca0a45a05bd1496073258fbee -
Branch / Tag:
refs/tags/v1.0.8 - Owner: https://github.com/Mat-O-Lab
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi.yml@79b8868f0aac958ca0a45a05bd1496073258fbee -
Trigger Event:
release
-
Statement type: