-
Notifications
You must be signed in to change notification settings - Fork 488
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
As a metadata configurator, I want to display values of a controlled vocabulary as images #6289
Comments
@jggautier, let's discuss next week! |
Thanks to @donsizemore it's now possible to spin up instances of Dataverse with custom metadata blocks using dataverse-ansible. Here's the issue I just tested and closed: IQSS/dataverse-ansible#133 Since I tested with the metadata block in this issue, here are some screenshots of how it looks: full "Metadata for Research Software" metadata blockthe repo status field (edit)the repo status field (view) |
@doigl controlled vocabularies are retrieved as localized values but not formated with dataverse/src/main/java/edu/harvard/iq/dataverse/DatasetField.java Lines 303 to 317 in 5c040de
( |
To focus on the most important features and bugs, we are closing issues created before 2020 (version 5.0) that are not new feature requests with the label 'Type: Feature'. If you created this issue and you feel the team should revisit this decision, please reopen the issue and leave a comment. |
In a metadata block for software basing on CodeMeta (see thread in user mailinglist) we tried to get Dataverse to display the values of a controlled variable as images linking to pages with more information about the values (see repostatus.org for examples)
The corresponding value for displayFormat in tsv is
<a href='https://www.repostatus.org/##VALUE'><img src='https://www.repostatus.org/badges/latest/#VALUE.svg' alt='ProjectStatus: #VALUE '/>
The whole tsv-file is attached (codemeta.tsv.txt), the line concerned is about codeMetaDevelopmentStatus (line 5) with the vocabulary in line 28.
As there is an example with an image in the documentation for display formats., the image itself doesn't seem to be the problem. Dataverse is ignoring everything I put into the displayFormat field, even something like (#VALUE).
Is this because of the controlled vocabulary? Are there any other possibilities to change the appearance of the metadata fields?
Other wishes would be to combine the values of a compound field, like
<a href="#VALUE_OF_SUBFIELD_URL">#VALUE_OF_SUBFIELD_TITLE</a>
.The text was updated successfully, but these errors were encountered: