Skip to content

Don't display foreign label variants if they are shown using a more specific property #878

@osma

Description

@osma

At which URL did you encounter the problem?

http://finto.fi/cn/en/page/3199A

What steps will reproduce the problem?

  1. Open above URL (CN: A. Ahlström (yhtiö). Euran paperi)
  2. Look at the "IN OTHER LANGUAGES" field

What is the expected output? What do you see instead?

The name variants "Euran paperi" and "Ahlström. Euran paperi" are duplicated also in the variant name field.

Skosmos should notice that the RDA property for variant names is a subproperty of skos:altLabel (based on a rdfs:subPropertyOf triple in the CN data) and that the two variant names are also expressed using the more specific RDA property. Thus Skosmos should not display them in the "IN OTHER LANGUAGES" field and since there are no other values there, the whole field should not be shown.

In practice, this involves changes mainly to the Concept.getForeignLabels method.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions