NatLibFi / Skosmos

Thesaurus and controlled vocabulary browser using SKOS and SPARQL
Other
225 stars 93 forks source link

Hierarchy view does not display concepts when concept groups are on the same level #620

Open henriyli opened 7 years ago

henriyli commented 7 years ago

At which URL did you encounter the problem?

http://finto.fi/mts/fi/page/m991

What steps will reproduce the problem?

  1. Navigate to the URL above.

What is the expected output? What do you see instead?

The hierarchy tree should include the concept "Elokuva" as it is a skos:member of "Teoksen muoto". However, the concept is missing from the hierarchy view. On the concept page itself the relationship is visible: http://finto.fi/mts/fi/page/m2004

What browser did you use? (eg. Firefox, Chrome, Safari, Internet explorer)

Firefox

osma commented 6 years ago

The problem is related to how jsTree is initialized. It is initialized with the full group hierarchy, but concepts are loaded dynamically when you try to open a group whose children jsTree doesn't know about. The problem is that for groups that already contain other groups as children, jsTree thinks it already knows the children so it will not try to query for more children.

osma commented 1 year ago

Merged #810 into this one, because the underlying problem is the same. See that issue for some discussion on possible ways to resolve this.