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 #101

Merged
merged 44 commits into from
Sep 23, 2024

Conversation

mjanez
Copy link
Owner

@mjanez mjanez commented Sep 10, 2024

What's Changed

Warning

CKAN 2.9 compatibility up to v3.2.2. After v4.0.0, only works correctly with CKAN 2.10. Check: ckanext-schemingdcat compatibility

Improve general UI, Home and stats.

The home page has been improved to inform the user about the main details of the Open Data Portal. The footer and header have been improved, and everything has been made responsive to facilitate visualization in mobile environments.

New form Tabs

Metadata creation/editing forms now use tabs instead of steps, allowing all metadata elements to be set as mandatory and greatly improving the interaction and usability of the interface.

  • Update package/resource forms to Tabs ef76bb3
    image

  • Improve profiles and add DCAT-AP/GeoDCAT-AP 3 7fb647a
    image

Fixes and improvements

  • Fix search and index to ensure proper functionality c294495
  • Improve schemas to align names with ckanext-dcat 0d6559b
  • Forms that are submitted via JavaScript modules also need to submit the CSRF token. CKAN 2.10 migration tips
  • Improve endpoints index cards (/endpoints).
  • Improve i18n and icons 4dca2e4
  • Fix and improve templates for CKAN 2.10 c7aabef
  • Fix fa icons for license/social templates f358203
  • Fix before_update 7c303d9
  • Improve package_item.html template fdf55e8
  • Improve base admin config template a344aec
  • Update configuration and add stats init to plugin 006078e
  • Refactor download metadata template and improve metadata profiles 6954453
  • Improve metadata_info and profile badges 0ffa59e
  • Refactor new_source_form.html to use Bootstrap 5 data attributes c4d131b

- Fix before_dataset_index to use list instead of json lists stringify, remove empty extras keys and fix subfields.
- Fix facet search and custom facets
- Fix templates to include new helpers
- Update search to be compatible with CKAN >2.10
- Fix facet search operators.
@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 10, 2024
@mjanez mjanez added this to the v3.4.0 milestone Sep 10, 2024
@mjanez mjanez self-assigned this Sep 10, 2024
@mjanez mjanez changed the base branch from main to feature/dcat-ap-schemas September 10, 2024 08:54
- Align with ckanext-dcat refactorized profiles.
- Add GeoDCAT-AP Profiles
- Add DCAT-AP 3 profile
- Improve ES DCAT-AP 2 profile.
- Improve GeoDCAT-AP schemas (EU/ES) and update to GeoDCAT-AP 3.0.0 to match profiles.
- Improve DCAT-AP schemas (EU/ES) and update to DCAT-AP 3.0.0 to match profiles.
- Add new home to include detailed stats about portal and categories (themes) with datasets.
- Improve header/footer. Move language selector and fix responsive of general web.
Metadata creation/editing forms now use tabs instead of steps, allowing all metadata elements to be set as mandatory and greatly improving the interaction and usability of the interface.
- Forms that are submitted via JavaScript modules also need to submit the CSRF token. `{{ h.csrf_input() if 'csrf_input' in h }}` to compat with <2.10 versions.
- Bootstrap 5 data attributes: `data-module` to `data-bs`
- Fix group_items type template.
- Improve endpoints index cards (/endpoints).
- Used jinja truncate filter instead of helper.
- Update badge classes for draft, metadata template, and deleted states
- Update class for private dataset badge
- Update link truncation for dataset title
- Update data attribute for resource format labels
- Remove unnecesary Homepage selector.
- Fix POST method errors when upload local logos.
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 %}
This was linked to issues Sep 21, 2024
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
1 participant