Gudmundur A. Thorisson wrote:
[snip]
  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 file

http://mire.environmentalchange.net/~webmaster/HierarchicalFacets/ data.json
the photo "Storm over the Chocolate Hills" is only tagged with "hill",
but it still counts toward "landscape" and "nature".
Right, but that´s only because you have several other photos tagged with "nature".
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.)

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

Attachment: hierarchical-facet.js
Description: JavaScript source

_______________________________________________
General mailing list
[email protected]
http://simile.mit.edu/mailman/listinfo/general

Reply via email to