Skip to content

As a metadata configurator, I want to display values of a controlled vocabulary as images #6289

@doigl

Description

@doigl

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>.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions