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 opf parser to support refines meta elements #4113

Merged
merged 2 commits into from
Mar 14, 2025
Merged

Conversation

advplyr
Copy link
Owner

@advplyr advplyr commented Mar 13, 2025

Brief summary

Parse OPF v3
See #4109

Which issue is fixed?

None

In-depth Description

In OPF v3 meta elements can have a refines attribute that is an ID of another element it is describing.

In this example the role of the dc:creator element is in the refines meta element.

<package version="3.0" unique-identifier="uuid_id" prefix="rendition: http://www.idpf.org/vocab/rendition/#" xmlns="http://www.idpf.org/2007/opf">
  <metadata>
    <dc:creator id="create1">Nevil Shute</dc:creator>
    <meta refines="#create1" property="role" scheme="marc:relators">aut</meta>
    <meta refines="#create1" property="file-as">Shute, Nevil</meta>
  </metadata>
</package>

How have you tested this?

Added test case

advplyr added 2 commits March 13, 2025 17:49

Partially verified

This commit is signed with the committer’s verified signature. The key has expired.
6543’s contribution has been verified via GPG key.
We cannot verify signatures from co-authors, and some of the co-authors attributed to this commit require their commits to be signed.
@advplyr advplyr marked this pull request as ready for review March 14, 2025 22:38
@advplyr advplyr merged commit 607f143 into master Mar 14, 2025
7 checks passed
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.

None yet

1 participant