Skip to content

Commit

Permalink
Merge pull request #1084 from NatLibFi/propval-vocab-use-shortname
Browse files Browse the repository at this point in the history
Show short name of vocabulary for property values from another vocab
  • Loading branch information
osma authored Oct 27, 2020
2 parents 299ee49 + 04e43bd commit 5a7175e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion model/ConceptPropertyValue.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ public function getVocab()

public function getVocabName()
{
return $this->vocab->getTitle();
return $this->vocab->getShortName();
}

public function addSubMember($member, $lang = '')
Expand Down
2 changes: 1 addition & 1 deletion tests/ConceptPropertyValueTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ public function testGetVocab() {
public function testGetVocabName() {
$props = $this->concept->getProperties();
$propvals = $props['skos:narrower']->getValues();
$this->assertEquals('Test ontology', $propvals['Crucian carp http://www.skosmos.skos/test/ta121']->getVocabName());
$this->assertEquals('Test short', $propvals['Crucian carp http://www.skosmos.skos/test/ta121']->getVocabName());
}

/**
Expand Down

0 comments on commit 5a7175e

Please sign in to comment.