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

Backwards compatability of article structure nodes #367

Merged
merged 2 commits into from
Jan 16, 2024

Conversation

piemonkey
Copy link
Collaborator

Overview

Use the (now exported) getRdfaContentElement helper to target the content-container element in article structure nodes in a way that supports importing the content directly if this element does not exist. This allows to correctly import pre-rdfa-aware html documents.

connected issues and PRs:

Depends on lblod/ember-rdfa-editor#1077

Setup

Need to link the feat/content-predicate branch of the editor.

How to test/reproduce

Get an export from an old version of the article structure plugin, for example from staging. Set the variable presetContent in tests/dummy/app/controllers/besluit-sample.ts#334 to be equal to this html. Alternatively you can add it to the sample-data.ts of your locally linked editor repo.

Challenges/uncertainties

There are some issues with the exact content of some properties, for example those with datatype 'rdf:XMLLiteral` as the html has changed.

@piemonkey piemonkey merged commit 091b762 into feat/rdfa-editing-ui Jan 16, 2024
@piemonkey piemonkey deleted the rdfa/backwards-compat branch January 16, 2024 08:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants