nexus icon indicating copy to clipboard operation
nexus copied to clipboard

Metadata Plugin: Unable to see the License linked

Open samuel-kerrien opened this issue 2 years ago • 0 comments

Summary As reported by @karinholm via HotJar. She browsed a morphology in public/sscx (prod) and was presented with the following Metadata plugin:

Screenshot 2022-02-04 at 09.04.02.png

The License appears clickable. But opening it, you get an HTTP 404: https://bbp.epfl.ch/neurosciencegraph/data/licenses/97521f71-605d-4f42-8f1b-c37e742a30bf

Proposed Fix

  • if the license is in the resource payload, present the name/label
  • if we have an ID,
    • if the resource is Nexus managed: fetch the resource and present the name/label. Clicking the label opens the resource panel for that resource. In some cases, there are Files attached to License (see the above license in public/sscx).
    • if the resource is outside our Nexus deployment (e.g. https://creativecommons.org/licenses/by/4.0/), present a link to that URL.

samuel-kerrien avatar Feb 04 '22 08:02 samuel-kerrien