-
Notifications
You must be signed in to change notification settings - Fork 65
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
Missing package-level rendition_flow, rendition_orientation, rendition_spread metadata (JSON to shared-js) #42
Comments
Ah, here's the culprit: |
PS: instead of just fetching the value in the toJSON() function, could we store the values locally as it's already done with page-progression-direction (for example): |
Note: this is really a follow-up to readium/readium-sdk#128 (where the missing spine-level metadata was added). This separate issue is for the package-level metadata. |
Addressed in feature branch / Pull Request: |
@jccr I implemented support for package-level rendition metadata, which required fixing the spine-level accessor methods (to cascade up into the package, when properties are not explicitly set by spine items). Could you please take a look at the Pull Request (linked above). You'll see that I decided to pass the Package instance directly into the appropriate methods, rather than to store a permanent reference to the Package object at SpineItem construction time. The latter would require modifying the JNI construction code (marshalling of the Package JNI pointer), which felt unnecessarily complicated. However, if you think it is worth the effort, let's refactor this before merging to develop. Thanks :) |
Issue first mentioned in #39
(see comment thread)
The text was updated successfully, but these errors were encountered: