Skip to content
This repository has been archived by the owner on Jul 19, 2023. It is now read-only.

Add manifest to HTML #136

Open
HadrienGardeur opened this issue Jun 2, 2017 · 4 comments
Open

Add manifest to HTML #136

HadrienGardeur opened this issue Jun 2, 2017 · 4 comments

Comments

@HadrienGardeur
Copy link

Now that the JSON-LD context has a proper HTTP redirect (http://readium.org/webpub/default.jsonld) it would be good to inject the manifest in the HTML page for the viewer using <script type="application/ld+json"> to test if this works properly with search engines.

@danielweck
Copy link

For the sake of argument, could this JSON-LD link also be added to the "landing page" of each r2-streamer-js publication?
For example:
https://readium2.herokuapp.com/pub/L2FwcC9jaGlsZHJlbnMtbGl0ZXJhdHVyZS5lcHVi/
I am not familiar with http://readium.org/webpub/default.jsonld so I don't actually now how to use it :)
Tips welcome (documentation page?).

@HadrienGardeur
Copy link
Author

The context should be added to each manifest outputted by the streamer.

If you'd like to test, try the example at the top of https://github.com/readium/webpub-manifest

You can try it at:

I've also published a few outputs (using N3) before at: https://gist.github.com/HadrienGardeur/03ab96f5770b0512233a

@danielweck
Copy link

Great thanks. I added the @context property with URI http://readium.org/webpub/default.jsonld to the generated manifest.json in r2-streamer-js.

@danielweck
Copy link

I also added <script type="application/ld+json" href="URL_manifest.json"></script> to html > head in the "landing" page that r2-streamer-js generates to pretty-print the webpub manifest JSON.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants