diff --git a/model/ConceptMappingPropertyValue.php b/model/ConceptMappingPropertyValue.php index a87b05166..aaa2ef86a 100644 --- a/model/ConceptMappingPropertyValue.php +++ b/model/ConceptMappingPropertyValue.php @@ -180,15 +180,11 @@ public function asJskos($queryExVocabs = true, $lang = null, $hrefLink = null) $propertyLabel = $propertyLabel->getValue(); } $ret = [ + // JSKOS 'uri' => $this->source->getUri(), - 'hrefLink' => $hrefLink, 'notation' => $this->getNotation(), 'type' => [$this->type], 'prefLabel' => $propertyLabel, - 'lang' => $propertyLang, - 'typeLabel' => gettext($this->type), - 'description' => gettext($this->type . "_help"), - 'vocabName' => (string) $this->getVocabName(), 'from' => [ 'memberSet' => [ [ @@ -202,7 +198,13 @@ public function asJskos($queryExVocabs = true, $lang = null, $hrefLink = null) 'uri' => (string) $this->getUri() ] ] - ] + ], + // EXTRA + 'description' => gettext($this->type . "_help"), // pop-up text + 'hrefLink' => $hrefLink, // link to resource as displayed in the UI + 'lang' => $propertyLang, // TBD: could it be part of the prefLabel? + 'vocabName' => (string) $this->getVocabName(), // vocabulary as displayed in the UI + 'typeLabel' => gettext($this->type), // a text used in the UI instead of, for example, skos:closeMatch ]; $fromScheme = $this->vocab->getDefaultConceptScheme();