Recently Rob Nelson and Neil Ireson have encountered the need for
presenting data containing several interconnected collections (see
messages with subjects "collections issue" and "Exhibit Facet over
multiple collections"). I mentioned to Rob that I had half of a
solution... and here is a quarter of a solution...
See this for an example:
http://people.csail.mit.edu/dfhuynh/projects/graph-based-exhibit/graph-based-exhibit.html
There are two interconnected collections: papers and their authors. They
are shown in two views in that exhibit. The facets filter both
collections (as Rob and Neil would want). The caveat is that the counts
in the facets are the counts of papers regardless of which view is
selected. This can cause confusion.
To build this exhibit, the trick is to define two collection: one of
papers, and one of authors that depends on the other collection.
<div ex:role="collection" ex:itemTypes="Paper"></div>
<div ex:role="collection" ex:baseCollectionID="default"
ex:expression=".author" id="the-authors"></div>
(Remember that when no "id" is specified, it's assumed to be "default",
as is for the first collection.)
Then, bind the author view to the second collection
<div ex:role="view"
ex:label="Authors on Map"
ex:expressionID="the-authors"
...>
</div>
Let me know what you think. Thanks!
David
_______________________________________________
General mailing list
[email protected]
http://simile.mit.edu/mailman/listinfo/general