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

meta property "dcterms:modified" changed #112

Open
outsideMyBox opened this issue Aug 9, 2017 · 1 comment
Open

meta property "dcterms:modified" changed #112

outsideMyBox opened this issue Aug 9, 2017 · 1 comment

Comments

@outsideMyBox
Copy link

outsideMyBox commented Aug 9, 2017

Hi,
I tried to load an existing epub and save it again. Unfortunately the generated epub contains errors when tested with epubcheck
Amongst them:

ERROR(RSC-005): /OEBPS/content.opf(-1,-1): Error while parsing file 'The prefix "dcterms" for element "dcterms:modified" is not bound.'.

epublib modified the original line:
<meta property="dcterms:modified">2015-05-02T11:44:00Z</meta>
to
<dcterms:modified>2015-05-02T11:44:00Z</dcterms:modified>
After a bit of digging out I found that PackageDocumentMetadataReader.readOtherProperties() saves it as an 'otherProperties' and PackageDocumentMetadataWriter.writeMetaData() writes it using the property as the tag name.
Is it a bug or is it the normal behaviour? At least it should be the case for dcterms:modified.

@Richie94
Copy link

@outsideMyBox Just curious if its same for you: was it an epub3 file?

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

No branches or pull requests

2 participants