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

Improve package_form and resource_form #55

Merged
merged 2 commits into from
May 17, 2024
Merged

Improve package_form and resource_form #55

merged 2 commits into from
May 17, 2024

Conversation

mjanez
Copy link
Owner

@mjanez mjanez commented May 17, 2024

The templates are used for customizing the dataset/resources form in the dataset schema. This addition enhances the flexibility of the extension by allowing users to modify the resource form according to their specific requirements.

The addition of form_groups simplifies metadata entry for the editor user, as well as facilitates the visualization of the metadata, grouped by thematic categories.

form_groups schema definition:

schema_form_groups:
# Basic Info parties form_page (#1)
- form_group_id: title
label:
en: Title
es: Título
fa_icon: fa-sticky-note
- form_group_id: general_info
label:
en: General information
es: Información general
fa_icon: fa-info-circle
- form_group_id: identification
label:
en: Dataset identification
es: Identificación del conjunto de datos
fa_icon: fa-id-card
- form_group_id: notes
label:
en: Abstract
es: Resumen
fa_icon: fa-file-text
- form_group_id: vocabs
label:
en: Vocabs information
es: Información de vocabularios
fa_icon: fa-database
- form_group_id: contact
label:
en: Contact information
es: Información de contacto
fa_icon: fa-address-book
# Responsible parties form_page (#2)
- form_group_id: publisher
label:
en: Publisher information
es: Información del publicador
fa_icon: fa-user
- form_group_id: maintainer
label:
en: Maintainer information
es: Información del mantenedor
fa_icon: fa-server
- form_group_id: author
label:
en: Author information
es: Información del autor
fa_icon: fa-pencil-square-o

Metadata field added to form_group:

# Graphic overview (O)
- field_name: graphic_overview
label:
en: Graphic overview of the dataset
es: Descripción gráfica del conjunto de datos
display_snippet: schemingdcat/display_snippets/graphic_overview.html
form_placeholder: http://example.com/dataset.jpg
help_text:
en: "Graphic that provides an illustration of the dataset."
es: "Gráfico que ilustra el conjunto de datos."
form_group_id: general_info

Metadata package form template:
image

The templates are used for customizing the dataset/resources form in the dataset schema. This addition enhances the flexibility of the extension by allowing users to modify the resource form according to their specific requirements.
@mjanez mjanez added bug Something isn't working documentation Improvements or additions to documentation enhancement New feature or request labels May 17, 2024
@mjanez mjanez added this to the v3.1.0 milestone May 17, 2024
@mjanez mjanez self-assigned this May 17, 2024
@mjanez mjanez mentioned this pull request May 17, 2024
3 tasks
Form groups enhance the navigation and management of metadata by providing a more organized structure. The commit also includes improvements to the metadata management and metadata group handling. For more details, refer to the schema files in [`ckanext/schemingdcat/schemas`](ckanext/schemingdcat/schemas).
@mjanez mjanez merged commit 41b5afb into main May 17, 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 documentation Improvements or additions to documentation enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant