David
teachers
/ \
everybody1 everybody2
\ /
students
The teachers collection can be defined as
<div ex:role="collection" ex:baseCollectionID="everybody1"
ex:expression="filter(value, .type = 'Teacher')"
></div>
You would need to link to the api-dev version of Exhibit where I just
added "filter" recently.
And everybody2 is the union of teachers and students, which I think
we've talked about how to do before.
You need to link the various facets to different collections.
If you get this working, please do give us a URL so we can use it as an
example for other people in the future.
David
They are different because "teachers" and "students" might be filtered.
So, attaching facets to "everybody1" and then making selections in those
facets will restrict the sets of items in "teachers" and "students". And
then, attaching facets to "teachers" and to "students", and making
selections in those facets will restrict the set of items in "everybody2".
David
Hey David,
I took a look at the thread
(http://groups.google.com/group/simile-widgets/browse_thread/thread/a82473a411f30cf5/1560fd3aba732939?lnk=gst&q=union+collection#1560fd3aba732939),
and I think the situation is a bit different here. A brief glance at
the data in the example (I made a copy
http://web.mit.edu/~jaresty/Public/pawel/ex2.html) doesn't show any
links between Events and Announcements, so I don't think that I can
use the same technique. I'm thinking about modifying baseCollectionID
to take a comma-separated list of IDs and split them; do you think
that would work?
api-dev is automatically refreshed hourly from our Subversion repository
code base. There's no guarantee that it won't break if someone makes a
broken check-in. If you're really worried about having it work, then you
could check out the source code and host it yourself :-) Sorry but I'm
not being so rigorous with official releases.
David