gigascience / gigadb-website

Source code for running GigaDB
http://gigadb.org
GNU General Public License v3.0
9 stars 15 forks source link

manage external link type admin page E597 #299

Open only1chunts opened 5 years ago

only1chunts commented 5 years ago

User Story

As a curator I want an admin page that will allow me to create new tabs for external links So that external links can be diplayed in the tabs of my choosing on a dataset page

Acceptance criteria

Given I have a new type of link i want to add to GigaDB When I go the admin page for external links And add the new type and a description Then the new type and its description are added to the external_link_type table

Given I want to update the name of a type of external link When I go the admin page for external links And select the type I want to change And update the name Then the name of the type is udpated in the external_link_type table

Given I want to update the description of a type of external link When I go the admin page for external links And select the type I want to change And update the description Then the description of the type is udpated in the external_link_type table

we would like to be able to add multiple new tabs to the dataset view using iframes. i.e. behave in the same way the jbrowse iframe works, just for other websites/links. To do that we need an admin page to be able to define the tab type (external link type) which gives us the ability to name the tab, and provide an (optional) url prefix. e.g. for a GigaScience manuscript we could define the Tab name as "Linked Manuscript" the prefix could be "https://doi.org/". It would also be useful to have an option here to allow multiple links in a single window as we do for protocols.io. I.e. another tickbox in the manage external link type admin page to assign occurrences 0=allow multiple (like protocols.io), 1=single entity. Each tab will eventually have an "i" information icon on it to tell users what the tab is showing, so each external link type should also have a definition that can be shown by that "i". These definitions will also need to be able to be added/edited in the manage external link type admin page Currently the new iframes are required for; CWL viewer links GigaScience manuscripts

This Story is part of Epic #597

only1chunts commented 4 years ago

ability to display a tumour map in dataset 100781, this link https://tumormap.ucsc.edu/?bookmark=7bec77b55a01ef217a7f62d505cb0470fb1345c248324a213d92055be8ee4ee1 can be inserted into the database as a "3D Model" and it works, but the heading on the tab as "3D Viewer" is inappropriate. so we need a new sort of tab which has the header "UCSC Tumour Map"