diff --git a/model/ConceptMappingPropertyValue.php b/model/ConceptMappingPropertyValue.php index 547847506..35df502a7 100644 --- a/model/ConceptMappingPropertyValue.php +++ b/model/ConceptMappingPropertyValue.php @@ -133,6 +133,11 @@ public function getVocabName($lang = '') // @codeCoverageIgnoreEnd } + public function isExternal() { + $propertyUris = $this->resource->propertyUris(); + return empty($propertyUris); + } + public function getNotation() { if ($this->resource->get('skos:notation')) { diff --git a/view/concept-shared.twig b/view/concept-shared.twig index eaf26ffb6..56f1507b9 100644 --- a/view/concept-shared.twig +++ b/view/concept-shared.twig @@ -78,7 +78,7 @@ {% if propval.uri and propval.type != 'rdf:type' %} {# resources with URI #} {% if propval.label %} {% if propval.isExternal %} - {{ propval.uri }} + {{ propval.label }} ({{ propval.vocabname }}) {% else %} {% if propval.isReified %} {# e.g. skos:definition's with resource values #} {% if propval.notation %}{{ propval.notation }} {% endif %} {{ propval.label(request.contentLang) }}