Skip to content

Commit

Permalink
Set up language properties in RestController::mappings, and set a def…
Browse files Browse the repository at this point in the history
…ault $propertyLang for the jskos response
  • Loading branch information
kinow committed Dec 24, 2019
1 parent 50b1af1 commit 6255be5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions controller/RestController.php
Original file line number Diff line number Diff line change
Expand Up @@ -639,6 +639,7 @@ public function data($request)
*/
public function mappings(Request $request)
{
$this->setLanguageProperties($request->getLang());
$vocab = $request->getVocab();

$uri = $request->getUri();
Expand Down
2 changes: 1 addition & 1 deletion model/ConceptMappingPropertyValue.php
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ public function getNotation()
public function asJskos($queryExVocabs = true, $lang = null, $hrefLink = null)
{
$propertyLabel = $this->getLabel($lang, $queryExVocabs);
$propertyLang = null;
$propertyLang = $lang;
if (!is_string($propertyLabel)) {
$propertyLang = $propertyLabel->getLang();
$propertyLabel = $propertyLabel->getValue();
Expand Down

0 comments on commit 6255be5

Please sign in to comment.