Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make Dataverse Previewers support more media types #64

Open
philippconzett opened this issue Nov 4, 2021 · 5 comments
Open

Make Dataverse Previewers support more media types #64

philippconzett opened this issue Nov 4, 2021 · 5 comments

Comments

@philippconzett
Copy link

As a potential dataset downloader, I'd like to be able to preview more media types, in particular the following ones:

image/tiff
audio/flac
text/markdown
text/semicolon-separated-values

Note on text/semicolon-separated-values:
When testing in the Harvard Demo Dataverse, semicolon-separated .csv files are not ingested and previewed. Semicolon-separated .txt files are not ingested, but previewed as plain text files. See this test dataset:
https://demo.dataverse.org/dataset.xhtml?persistentId=doi:10.70122/FK2/H0U0FQ

@adam3smith
Copy link

adam3smith commented Nov 4, 2021 via email

@philippconzett
Copy link
Author

Yes, that would be good. If it at a later stage will be possible to be displayed as Markdown, that would be even better :)

@kaitlinnewson
Copy link
Collaborator

For Markdown, perhaps something like marked could be used for rendering?

@kaitlinnewson
Copy link
Collaborator

I did a quick test, and Markdown files should work as-is in the text previewer (but are not rendered), e.g.:

https://dataverse.scholarsportal.info/preview/previewers/TextPreview.html?fileid=110999&siteUrl=https://dataverse.scholarsportal.info&datasetid=110661&datasetversion=3.0&locale=en

@pdurbin
Copy link
Member

pdurbin commented Feb 17, 2022

It would be cool so have some sort of toggle to switch between raw text and rendered HTML but this is a great start!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants