Skip to content
Snippets Groups Projects
Commit cd03c4e4 authored by Thorge Petersen's avatar Thorge Petersen
Browse files

Merge branch 'master' into dev

parents d23bfa2b af12daa0
No related branches found
No related tags found
No related merge requests found
Showing
with 197 additions and 213 deletions
......@@ -5,6 +5,45 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [2.3.0]
### Added
- CSRF inputs are now included in template forms.
- Introducing a new helper function: `format_resource_format`. This function is used to format a resource format string.
- Resource descriptions are now displayed below the resource title in the resources list.
### Removed
- Completely removed data requests.
- Avoided the usage of the global context variable c where possible.
- Removed deprecated subject mappings JSON template.
- Removed deprecated activities feature (CKAN activities have been extracted into a separate activity plugin).
### Changed
- Updated minimum CKAN version requirement from `2.9` to `2.10`. Please run `ckan db upgrade` after updating.
- Replaced `is_okd_compliant` with `od_conformance` and `is_osi_compliant` with `osd_conformance` in the [licenses.json](./ckanext/odsh/resources/licenses.json) file.
- Deprecated methods replaced with their respective new versions from plugin interfaces:
- `ckan.plugins.interfaces.IResourceController`:
- Replaced `before_create` with `before_resource_create`
- Replaced `after_create` with `after_resource_create`
- Replaced `before_update` with `before_resource_update`
- Replaced `after_update` with `after_resource_update`
- Replaced `before_delete` with `before_resource_delete`
- Replaced `after_delete` with `after_resource_delete`
- Replaced `before_show` with `before_resource_show`
- `ckan.plugins.interfaces.IPackageController`:
- Replaced `after_create` with `after_dataset_create`
- Replaced `after_update` with `after_dataset_update`
- Replaced `after_delete` with `after_dataset_delete`
- Replaced `after_show` with `after_dataset_show`
- Replaced `before_search` with `before_dataset_search`
- Replaced `after_search` with `after_dataset_search`
- Replaced `before_index` with `before_dataset_index`
- Updated minimu version of ckanext-spatial extension to `2.0.0`.
- Moved `fanstatic` webassets to `assets` directory.
## [2.2.0]
### Added
......@@ -54,6 +93,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Removed
- Removed support for old CKAN versions prior 2.9.
- Python 2 support has been dropped to align with the latest standards and focus on Python 3 compatibility.
- ICAP support has been removed. Please note that the functionality associated with ICAP is no longer available.
- Matomo support has been discontinued. Matomo-related features will no longer be accessible.
......
......@@ -67,7 +67,6 @@ the config file is located at `/etc/ckan/default/production.ini`).
odsh_collections
qa
archiver
recline_view
report
spatial_metadata
spatial_query
......@@ -100,6 +99,12 @@ Parameter | Type | Default | Description
`ckanext.odsh.testuser` | `string` | `None` | Name of user for testing.
`ckanext.odsh.testuserpass` | `string` | `None` | Password of user for testing.
Additionaly you might want to set the following configuration parameters:
```ini
licenses_group_url = file://<path_to_ckan>/default/src/ckanext-odsh/ckanext/odsh/resources/licenses.json
```
### Testing
To ensure the quality and functionality of the `ckanext-odsh` extension, a comprehensive
......@@ -132,7 +137,7 @@ To enable internationalization of strings, follow these steps:
python setup.py extract_messages
```
This command will generate a template PO file named `ckanext/odsh/i18n/ckanext-odsh.pot`. You can utilize tools like POEdit to work with this file.
This command will generate a template PO file named `ckanext/odsh/i18n/ckanext-odsh.pot`. You can utilize tools like [POEdit](https://poedit.net/) to work with this file.
For detailed instructions on internationalizing strings in extensions, refer to CKAN's official guide on [translating extensions](https://docs.ckan.org/en/latest/extensions/translating-extensions.html).
......
File moved
......@@ -461,7 +461,7 @@
},
enableHTML: false,
buttonClass: 'btn btn-default',
buttonClass: 'form-select',
inheritClass: false,
buttonWidth: 'auto',
buttonContainer: '<div class="btn-group" />',
......@@ -500,7 +500,7 @@
includeResetDivider: false,
resetText: 'Reset',
templates: {
button: '<button type="button" class="multiselect dropdown-toggle" data-toggle="dropdown"><span class="multiselect-selected-text"></span> <b class="caret"></b></button>',
button: '<button type="button" class="multiselect dropdown-toggle" data-bs-toggle="dropdown"><span class="multiselect-selected-text"></span></button>',
ul: '<ul class="multiselect-container dropdown-menu"></ul>',
filter: '<li class="multiselect-item multiselect-filter"><div class="input-group"><span class="input-group-addon"><i class="glyphicon glyphicon-search"></i></span><input class="form-control multiselect-search" type="text" /></div></li>',
filterClearBtn: '<span class="input-group-btn"><button class="btn btn-default multiselect-clear-filter" type="button"><i class="glyphicon glyphicon-remove-circle"></i></button></span>',
......
File moved
File moved
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment