Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update - CKAN 2.10 compatibility and UI/Schemas/Profiles improvements #104

Merged
merged 83 commits into from
Sep 23, 2024

Conversation

mjanez
Copy link
Owner

@mjanez mjanez commented Sep 23, 2024

Fixed by: #101

This commit adds support for form tabs in the dataset creation and editing forms. The `package_form.html` template has been modified to include a "Next" button and the `save_button` block has been overridden to include the button. Additionally, the `config.py` file has been updated to add the necessary configuration options for form tabs. The `helpers.py` file has been modified to include helper functions related to form tabs, such as setting and retrieving the dataset form tabs.

Fixes #87
- Add subfield validators for legacy fields (new dcat schemas with dict objects for contact, publisher, etc.).
- Rename fields according to new common schema names
- Add profiles for DCAT-AP, GeoDCAT-AP and NTI-RISP/DCAT (Spanish context).

- Added new codelists generator/downloader to improve DCAT-AP mapping values.
-Add pytest-ckan, pytest-cov, and pytest-pretty to dev-requirements.txt
-Remove flake8.yml workflow file
-Add examples/ckan/dataset.json
-Add examples/ckan/ckan_dataset.json
-Add shacl import files for DCAT-AP 2.1.1 and 3.0.0
- Reference, relationship. https://semiceu.github.io/GeoDCAT-AP/releases/3.0.0/#Relationship
- Spatial representation type” is meant mainly to describe the “method used to represent geographic information in the dataset”  https://semiceu.github.io/GeoDCAT-AP/releases/2.0.0/#spatial-representation-type-spatial-representation-type
Unnecesary update to data-bs boostrap class.
The data-bs attributes were removed from the templates as they are specific to Bootstrap and not required for the custom slug-preview module.
- Add R and curl from older extension.
- Avalaible values are 'tip', 'note', 'warning', 'caution', 'important'

  Example:
      {% block api_info %}
        {% set quote_content %}
          {% trans %}
          Further information in the <a href="http://docs.ckan.org/en/latest/maintaining/datastore.html" target="_blank">main CKAN Data API and DataStore documentation</a>.
          {% endtrans %}
        {% endset %}
        {% snippet "schemingdcat/snippets/quote_alerts.html", alert_type='tip', content=quote_content %}
      {% endblock %}
Update - CKAN 2.10 compatibility and UI/Schemas/Profiles improvements
@mjanez mjanez added bug Something isn't working documentation Improvements or additions to documentation enhancement New feature or request schema ckanext-scheming schemas improvements or fixes i18n Translations ckan-docker ckanext-dcat labels Sep 23, 2024
@mjanez mjanez self-assigned this Sep 23, 2024
@mjanez mjanez merged commit d5582e7 into main Sep 23, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working ckan-docker ckanext-dcat documentation Improvements or additions to documentation enhancement New feature or request i18n Translations schema ckanext-scheming schemas improvements or fixes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant