Skip to main content

CKAN theme of the Mat-O-Lab Project, changes landing Page and adds alternative Data Privacy Act in English and German.

Project description

Tests DOI

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:

  1. Activate your CKAN virtual environment, for example:
. /usr/lib/ckan/default/bin/activate
  1. Use pip to install package
pip install ckanext-matolabtheme
  1. Add matolabtheme to the ckan.plugins setting in your CKAN    config file (by default the config file is located at    /etc/ckan/default/ckan.ini).

  2. 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

AGPL

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ckanext_matolabtheme-1.0.7.tar.gz (2.6 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ckanext_matolabtheme-1.0.7-py3-none-any.whl (2.6 MB view details)

Uploaded Python 3

File details

Details for the file ckanext_matolabtheme-1.0.7.tar.gz.

File metadata

  • Download URL: ckanext_matolabtheme-1.0.7.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

Hashes for ckanext_matolabtheme-1.0.7.tar.gz
Algorithm Hash digest
SHA256 aad130729d45d6153e967fefd2a353bbdbddc663b9ccd43044c76e0e3be12b56
MD5 dd935bd9cb091efdd22a4deee66a6d65
BLAKE2b-256 0fe7f9eef0493d1430c36d05bb8f77914fb71fa5be4619efa33f7f87bd0ee9c4

See more details on using hashes here.

Provenance

The following attestation bundles were made for ckanext_matolabtheme-1.0.7.tar.gz:

Publisher: pypi.yml on Mat-O-Lab/ckanext-matolabtheme

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file ckanext_matolabtheme-1.0.7-py3-none-any.whl.

File metadata

File hashes

Hashes for ckanext_matolabtheme-1.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 1c7460d0ab94327c08d2f79193ffee3dba1e67569417a067290b03d54feeef24
MD5 807bacdae595b3d29e95f41f3ff5b141
BLAKE2b-256 74c6a8317f97ccd053322cf5aa718c64a63f4430cdf46a6df03c6f93ddda9885

See more details on using hashes here.

Provenance

The following attestation bundles were made for ckanext_matolabtheme-1.0.7-py3-none-any.whl:

Publisher: pypi.yml on Mat-O-Lab/ckanext-matolabtheme

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page