Skip to content

Metadata field "displayFormat" is wrongly applied to facet values #12181

@vera

Description

@vera

What steps does it take to reproduce the issue?

  1. Have a metadata block activated which contains at least one facetable field with a non-default displayFormat, e.g.

    • authorAffiliation in the citation block is facetable and has display format (#VALUE)
    • city in the geospatial block is facetable and has display format #VALUE,
  2. Have a collection with that facet turned on

  3. Create a dataset with a value in that facetable field

  4. View the facets on the collection page, which look odd due to superfluous commas or parentheses:

    1. city: Image

      (see here: https://demo.dataverse.org/dataverse/veratest)

    2. authorAffiliation: Image

    3. The field topicClassification includes double parentheses, not sure why, but I think it might also be related:

      Image

      (see here: https://demo.dataverse.org/)

Which version of Dataverse are you using?

v6.8 and v6.9

Any related open or closed issues to this bug report?

Did not find any open issues.

I think the bug was introduced by #11750 with this code change:

Image

Are you thinking about creating a pull request for this issue?

Possibly yes

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status

    SPRINT READY

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions