Code Monkey home page Code Monkey logo

Comments (2)

edsilv avatar edsilv commented on June 24, 2024

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.

from user-stories.

mialondon avatar mialondon commented on June 24, 2024

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

from user-stories.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.