gigascience / gigadb-website

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

File preview E667 #66

Open only1chunts opened 8 years ago

only1chunts commented 8 years ago

User story

As a website user I want to see preview of dataset files So that I can decide whether they are worth >downloading

Acceptance criteria

Given I am on a dataset page When I clicked on the preview button associated to a dataset file Then I see a preview of that file

Note: Add list of important file formats to support (TODO)

Additional Info

Should be done in conjunction with #63 and #67 General idea is something like what FigShare does for most files, see for example my poster: https://dx.doi.org/10.6084/m9.figshare.3839808 For text files this coulduse something like "head" command in Unix for text files shows the first few lines, for ISA it can link to the ISA viewer, for excel and word etc, can g-docs do something ??? There is an OPEN SCIENCE FRAMEWORK thing called modular file renderer in python, that might be worth a look: https://www.mozillascience.org/modular-file-renderer-an-easy-way-to-help-make-science-more-accessible https://github.com/CenterForOpenScience/modular-file-renderer To try to better describe whats in my head, hear are some more details:

Within the dataset view page, looking specifically at the Files table (for example see ) The table will need to be expanded to contain 2 additional columns, (1) file preview(on the left) and (2) select for download (on the right): image

Click anywhere* on a row within the file table to add the “selected” for download tick

This Epic is part of Epic #667

rija commented 7 years ago

Is it possible to get a report with statistics of file types present in the production DB, so we have an idea of what are the most and less used (uploaded and downloaded) file types and by how much margin?

only1chunts commented 4 years ago

This company have a suite of apps that can display various common file formats, maybe it could be useful? https://products.groupdocs.app/