Skip to content

Commit

Permalink
Mark non-JSKOS fields
Browse files Browse the repository at this point in the history
  • Loading branch information
kinow committed Feb 24, 2019
1 parent b21a7a2 commit 3eaf944
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions model/ConceptMappingPropertyValue.php
Original file line number Diff line number Diff line change
Expand Up @@ -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' => [
[
Expand All @@ -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();
Expand Down

0 comments on commit 3eaf944

Please sign in to comment.