-
Notifications
You must be signed in to change notification settings - Fork 2
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
Metadata injection in epub3-to-epub3 does not update dc:identifier and title in content files #22
Comments
This is because the EPUB specification doesn't say anything about metadata in content documents. It could be a bit tricky to implement this because you need to detect that the metadata fields in content and package documents indeed correspond. For example we could say a
and something similar for Alternatively, we could have an option similar to
|
Thanks @bertfrees, yes I see the implementation design issues here. I like the second option for its simplicity and similarity as a kind of "force" option like "update-lang-attributes" toggle. It could be named "update-contentdoc-meta"? |
Yes I think I agree. |
That's great. Could you prioritise this over #18? This one is earlier in our production line. Also an estimate for when it could be done is very much appreciated, even though I know it's not always possible. |
Hi @bertfrees, any progress here? Just checking in. |
Not yet. |
I have implemented this. It's available on the master branch of daisy/pipeline-modules: daisy/pipeline-modules@78a2e6d. |
Great, thank you very much @bertfrees! @kalaspuffar can I kindly request a cherry-pick to the fork? |
Hi @bertfrees and @martinpub Of course, I could help with this, but wouldn't it be safer if Bert creates a PR with this change, as usual, ensuring that all code will be merged. Best regards |
Sure @kalaspuffar. @bertfrees is that possible? |
It is possible, and I'll do it, but I wish I wouldn't have to. I think we need to talk about how to organize this in the future.
IMO, the best way to make sure that everything is there is to always base your fork onto the latest upstream. My suggestion is to maintain a branch that you always keep up to date with the latest upstream version of Pipeline (releases or development version) by doing git rebases. The rebases can be done on the level of the "super project" to avoid the extra technical burden of working with git-subrepo. A consequence of this is that some of the git tags that you create may become dangling commits, but that should be fine. |
Currently, the metadata injection is able to update dc:identifier and dc:title in package.opf, however, it is not doing anything to content files with regards to the corresponding
<title>
and<meta name="dc:identifier" content="xxx"/>
values. This causes a mismatch in package.opf metadata and content file metadata, and it also causes non-valid EPUB 3 files according to the Nordic Guidelines.Could this be easily added @bertfrees? I thought we discussed it at the spec stage, but perhaps we didn't. Also, it apparently hasn't been tested enough until now.
The text was updated successfully, but these errors were encountered: