gigascience / gigadb-website

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

The manuscript associated to a dataset should hyperlink the DOI #1071

Open only1chunts opened 2 years ago

only1chunts commented 2 years ago

Describe the bug On a dataset page the manuscript links display nicely as citations, but they are not hyperlinked to the relevant DOI. The only hyper link that is added is to the PMID, but the PMID is not a mandatory value to include in the database. We should make the DOI links work too.

To Reproduce Steps to reproduce the behavior:

  1. Go to any dataset page that has an associated manuscript, e.g. https://gigadb.org/dataset/100528
  2. Scroll down to "Read the peer-reviewed publication(s):" section
  3. See the text of the manuscript citation details, e.g. "Peters, K., Bradbury, J., Bergmann, S., Capuccini, M., Cascante, M., de Atauri, P., Ebbels, T. M. D., Foguet, C., Glen, R., Gonzalez-Beltran, A., Günther, U. L., Handakas, E., Hankemeier, T., Haug, K., Herman, S., Holub, P., Izzo, M., Jacob, D., Johnson, D., … Steinbeck, C. (2018). PhenoMeNal: processing and analysis of metabolomics data in the cloud. GigaScience, 8(2). https://doi.org/10.1093/gigascience/giy149" 4 - But the DOI is not hyperlinked to the manuscript as it should be.

Expected behavior The DOI in the manuscript citation should be hyperlinked. An acceptable alternative would be that the entire citation block is hyperlinked to the citation DOI.

Screenshots image

This could also be described as a feature if you prefer:

User story

As a website user I want to be able to easily visit an associated manuscript using a hyperlink from within the dataset so that I do not need to copy and paste the DOI from the dataset page into a new browser window

Acceptance criteria

Given there is a dataset with a valid manuscript link When I visit a dataset page with an associated manuscript link Then I am able to click a hyperlink to take me to that manuscript landing page

rija commented 2 years ago

An acceptable implementation for this is to make the citation block clickable using a link made of the manuscript id we already store in the database