From d5f0c6c74cc940f0aa3cab29e39e6e66fcda0bef Mon Sep 17 00:00:00 2001 From: "Bruno P. Kinoshita" Date: Thu, 27 Dec 2018 20:50:27 +1300 Subject: [PATCH] Mark non-JSKOS fields --- model/ConceptMappingPropertyValue.php | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) 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();