Skip to main content

The DCOR CKAN theme

Project description

PyPI Version Build Status Coverage Status

The CKAN theme of DCOR. What this plugin does:

  • remove the language selection from footer.html

  • remove links from footer.html

  • set the title of the page to “DCOR”

  • insert a custom about text

  • hide action buttons (Fullscreen, Embed) in resource view via css

  • remove social media buttons

  • change colors / icons / logo

  • use i18n to change the terms “Organization” -> “Circle”, “Group” -> “Collection”, etc.

    ckan -c /etc/ckan/default/ckan.ini dcor-i18n-hack

Installation

pip install ckanext-dcor_theme

Edit ckan.ini:

ckan.plugins = [...] dcor_theme

and run the dcor-i18n-hack command:

ckan -c /etc/ckan/default/ckan.ini dcor-i18n-hack

Then, edit ckan.ini again:

ckan.locale_default = en_US

Testing

If CKAN/DCOR is installed and setup for testing, this extension can be tested with pytest:

pytest ckanext

Testing can also be done via vagrant in a virtualmachine using the dcor-test <https://app.vagrantup.com/paulmueller/boxes/dcor-test/> image. Make sure that vagrant and virtualbox are installed and run the following commands in the root of this repository:

# Setup virtual machine using `Vagrantfile`
vagrant up
# Run the tests
vagrant ssh -- sudo bash /testing/vagrant-run-tests.sh

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-dcor_theme-0.4.4.tar.gz (7.7 MB view details)

Uploaded Source

Built Distribution

ckanext_dcor_theme-0.4.4-py3-none-any.whl (7.7 MB view details)

Uploaded Python 3

File details

Details for the file ckanext-dcor_theme-0.4.4.tar.gz.

File metadata

  • Download URL: ckanext-dcor_theme-0.4.4.tar.gz
  • Upload date:
  • Size: 7.7 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for ckanext-dcor_theme-0.4.4.tar.gz
Algorithm Hash digest
SHA256 379a58c6231ed2e5f7ddc5c50aac693c677cb04765d90bb495e6245291cc78e1
MD5 a3e9da9a84350277fc24747db37a380f
BLAKE2b-256 393fed1a6c28ea0b6c5bf9292627be4256de5eacc53e6f5ce409e4e803e28fb2

See more details on using hashes here.

File details

Details for the file ckanext_dcor_theme-0.4.4-py3-none-any.whl.

File metadata

  • Download URL: ckanext_dcor_theme-0.4.4-py3-none-any.whl
  • Upload date:
  • Size: 7.7 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for ckanext_dcor_theme-0.4.4-py3-none-any.whl
Algorithm Hash digest
SHA256 5a8915140d0b5bd61f31131ec7a5e1c8cf71798869b0a716d49128aedce343d5
MD5 0e1ae9b899d38598c1a233ee15cb08d8
BLAKE2b-256 f3e7ba9b89dd3ee5762b50418f55ff1cae7392a7b407b45db58650b62bab0714

See more details on using hashes here.

Supported by

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