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

Embed Content #11

Open
edsilv opened this issue Mar 29, 2018 · 2 comments
Open

Embed Content #11

edsilv opened this issue Mar 29, 2018 · 2 comments

Comments

@edsilv
Copy link
Member

edsilv commented Mar 29, 2018

As a member of the public or researcher viewing content in the UV

I want to be able to embed this content

So that others can see it in the context of my blog/web page

@edsilv
Copy link
Member Author

edsilv commented Mar 29, 2018

Currently the UV has separate Share and Embed buttons in the footer. By default the Embed button is disabled via an embedEnabled config option. Clicking on the Share button shows the Share Dialogue which contains 'Share' and 'Embed' tabs. If the Embed button is enabled in the footer, clicking on it opens the Share Dialogue and defaults to the 'Embed' tab.

As per Stanford's design proposals:

https://docs.google.com/document/d/1YJGne0JK4t_5ygC7wHvZrngw2TjTKHt8-Iq__L4Xklo/edit#heading=h.p0hud0biktl2

There should be a single Share button in the footer which triggers an overlaid Share Dialogue that contains all share and embed options (without tabs).

The dialogue's content should resize responsively to fit the available horizontal space.

Additionally, there should be a single embedEnabled config option that can be set globally in the UV config file (as opposed to just in the footer panel). If this is disabled, the embed option in the Share Dialogue will not be visible.

There should also be the option to control the visibility of the embed option via the manifest using a UV custom extension, e.g: https://wellcomelibrary.org/iiif/b19886780/manifest

{
"@context": "http://universalviewer.io/context.json",
"@id": "https://wellcomelibrary.org/iiif/uiHints/b19886780",
"profile": "http://universalviewer.io/ui-extensions-profile",
"disableUI": [
    "embed"
]
}

If this is set, it will override the UV config option.

@mialondon
Copy link
Collaborator

As an organisation, I want to be able to disable embed or share once and have the option hidden everywhere on the viewer.

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