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

Editor / Improve support of schema having sibling elements for translation #8540

Merged
merged 4 commits into from
Dec 11, 2024

Conversation

fxprunayre
Copy link
Member

Dublin core or DCAT use xml:lang attribute added to sibling elements for translations (compared to ISO which always have a container element with translations in it).

This change add support for:

  • adding such element in embedded mode (ie. not while saving the full document but only requesting expansion of a particular element)
  • and ordering multilingual elements.

Checklist

  • I have read the contribution guidelines
  • Pull request provided for main branch, backports managed with label
  • Good housekeeping of code, cleaning up comments, tests, and documentation
  • Clean commit history broken into understandable chucks, avoiding big commits with hundreds of files, cautious of reformatting and whitespace changes
  • Clean commit messages, longer verbose messages are encouraged
  • API Changes are identified in commit messages
  • Testing provided for features or enhancements using automatic tests
  • User documentation provided for new features or enhancements in manual
  • Build documentation provided for development instructions in README.md files
  • Library management using pom.xml dependency management. Update build documentation with intended library use and library tutorials or documentation

Funded by https://metadata.vlaanderen.be/

josegar74 and others added 2 commits November 26, 2024 11:43
…data schemas that require to duplicate the element for each language
without container element (eg. DCAT-AP).

Current API only support to move one element up or down.

In DCAT-AP, multilingual record requires to move a group of element
containing all translations up or down.
@fxprunayre fxprunayre added the schema plugin change Indicate that this work introduces a schema plugin change. label Dec 9, 2024
@fxprunayre fxprunayre added this to the 4.4.7 milestone Dec 9, 2024
fxprunayre and others added 2 commits December 9, 2024 09:11
…adata schema is multilingual before doing a cast to MultilingualSchemaPlugin
Copy link
Member

@josegar74 josegar74 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably I'm not the best person to approve the work as I did part of it, but...

I have tested the changes with ISO schemas and Dublin Core and looks working fine when adding new elements and reordering them.

The changes have been tested also with https://github.com/metadata101/dcat-ap, that is the main reason for this change, working fine.

@fxprunayre fxprunayre merged commit 96869d8 into main Dec 11, 2024
8 checks passed
@fxprunayre fxprunayre deleted the 44-addelements-multilingual branch December 11, 2024 11:45
Copy link

sonarcloud bot commented Dec 11, 2024

Quality Gate Failed Quality Gate failed

Failed conditions
0.0% Coverage on New Code (required ≥ 80%)
16.4% Duplication on New Code (required ≤ 3%)

See analysis details on SonarQube Cloud

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
schema plugin change Indicate that this work introduces a schema plugin change.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants