You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What is the expected output? What do you see instead?
Switching the 'lang' parameter for the vocabulary info query does not change the parts of the response data produced by calls for getLiteral in VocabularyConfig. It is easiest to see when the result for 'title' is not the same in the result for the query and in the result for the concept scheme within the same response.
"id":"yso",
"marcSource":"yso/eng", "title":"YSO - General Finnish ontology",
"defaultLanguage":"fi",
"languages":["en","fi","sv"],
"conceptschemes":[
{"label":"YSO - Yleinen suomalainen ontologia","title":"YSO - Yleinen suomalainen ontologia","subject":{"uri":"http://www.yso.fi/onto/yso/p19469","prefLabel":"yleisk\u00e4sitteet"},"uri":"http://www.yso.fi/onto/yso/","type":"skos:ConceptScheme"},{"uri":"http://www.yso.fi/onto/yso/aggregateconceptscheme","type":"skos:ConceptScheme"},{"uri":"http://www.yso.fi/onto/yso/deprecatedconceptscheme","type":"skos:ConceptScheme"}
]
Both bolded results should be displayed in the selected language. This is most likely caused by calling BaseConfig's getLiteral($property, $default=null, $lang=null) by $this->getLiteral($property, $lang) within VocabularyConfig.php, which leads to 'lang' being interpreted as the default return value instead of language parameter in the function call.
The text was updated successfully, but these errors were encountered:
At which URL did you encounter the problem?
When querying vocabulary info through Skosmos REST API, eg. http://api.finto.fi/rest/v1/yso/?lang=fi
What is the expected output? What do you see instead?
Switching the 'lang' parameter for the vocabulary info query does not change the parts of the response data produced by calls for getLiteral in VocabularyConfig. It is easiest to see when the result for 'title' is not the same in the result for the query and in the result for the concept scheme within the same response.
"id":"yso",
"marcSource":"yso/eng",
"title":"YSO - General Finnish ontology",
"defaultLanguage":"fi",
"languages":["en","fi","sv"],
"conceptschemes":[
{"label":"YSO - Yleinen suomalainen ontologia","title":"YSO - Yleinen suomalainen ontologia","subject":{"uri":"http://www.yso.fi/onto/yso/p19469","prefLabel":"yleisk\u00e4sitteet"},"uri":"http://www.yso.fi/onto/yso/","type":"skos:ConceptScheme"},{"uri":"http://www.yso.fi/onto/yso/aggregateconceptscheme","type":"skos:ConceptScheme"},{"uri":"http://www.yso.fi/onto/yso/deprecatedconceptscheme","type":"skos:ConceptScheme"}
]
Both bolded results should be displayed in the selected language. This is most likely caused by calling BaseConfig's getLiteral($property, $default=null, $lang=null) by $this->getLiteral($property, $lang) within VocabularyConfig.php, which leads to 'lang' being interpreted as the default return value instead of language parameter in the function call.
The text was updated successfully, but these errors were encountered: