Gudmundur A. Thorisson wrote:
Ah, I see what you mean now... That's a tricky bug! Thanks for catching it! I am attaching a new version of hierarchical-facet.js here. (For some reason certain email clients don't let those .js files through. Let me know if the file doesn't make it across.)[snip]Right, but that´s only because you have several other photos tagged with "nature".Comparing this with your photo example: it's as if you didn't have any photos tagged with 'nature' directly, but would still like to see the 'nature' root node in your tree.Correct. In the JSON filehttp://mire.environmentalchange.net/~webmaster/HierarchicalFacets/ data.jsonthe photo "Storm over the Chocolate Hills" is only tagged with "hill", but it still counts toward "landscape" and "nature".
Using the new hierarchical-facet.js file, when I remove all other photos tagged with "nature" and "landscape", "Storm over the Chocolate Hills" still shows up under "nature"->"landscape"->"hill". Let me know if it works for your own data.
David
hierarchical-facet.js
Description: JavaScript source
_______________________________________________ General mailing list [email protected] http://simile.mit.edu/mailman/listinfo/general
