I cannot email the JSON data because of license issues, but you can see it on beta.werelate.org if you take the time to make a username there. (Please do!) Make a username and then search for a person page (by searching for a common surname and scoping the search to person pages). Unfortunately the search page returns "www" instead of "beta" on every URL so you will need to modify any URL returned from the search to point to the beta server. Once on a person page on the beta server, there are links in the blue bar at the top to view the JSON data for that person and also view the Exhibit page. Any suggestions that you may have to improve what you see there would be much appreciated.
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of David Huynh Sent: Saturday, November 10, 2007 8:25 PM To: General List Subject: Re: can I restrict item types in the Tabular View? Brannon King wrote: > I was unable to make this do what I want. The code below chops my > default collection, which is not what I want to do. Here's my data > relationship. I have five types of objects: Family, Person, Marriage, > Birth, Death. A Family has a Marriage member and Person contains the > other three (Family, Birth, Death). I want to limit my tabular view to > objects of type Person and still have my facets work for that view and > all the other views. (The other views all show all object types.) > Could you give some examples of these objects (in JSON code)? What properties link them up? Or you can email me a link to your exhibit. David > >> Brannon King wrote: >> >>> So the problem with this plan is that when you create a collection >>> using itemTypes it copies rather than filters. For example: >>> >>> <div ex:role="collection" ex:baseCollectionID="default" >>> ex:itemTypes="Family" id="the-families"></div> >>> <div ex:role="collection" ex:baseCollectionID="default" >>> ex:itemTypes="Person" id="the-people"></div> >>> <div ex:role="collection" ex:baseCollectionID="default" >>> ex:itemTypes="Marriage, Birth, Death" id="the-events"></div> >>> >>> Even with baseCollectionID in there, my facets still don't work right. >>> Any view filtered by the above collectionID is not phased by a facet >>> unless that facet has the same collectionID, which is a pain because >>> I wanted my one set of facets to work for all views. If I use >>> ex:expression instead of ex:itemTypes, how do I filter on type? How >>> do I limit to multiple types like that third line? It would be nice >>> if you could put the ex:itemTypes right on your view. Thanks for your time. >>> >> Actually what you need is something like this >> >> <div ex:role="collection" ex:itemTypes="Person"></div> >> >> <div ex:role="collection" >> ex:baseCollectionID="default" >> ex:expression=".family"></div> >> >> Define the default collection and then tie the other collections to >> it using ex:expression. That's presuming that your data looks >> something like this: >> >> { type: "Person", >> label: "Homer Simpson", >> family: "The Simpson Family", >> ... >> } >> >> ... >> >> { type: "Family", >> label: "The Simpson Family", >> ... >> >> } >> >> David >> > _______________________________________________ > General mailing list > [email protected] > http://simile.mit.edu/mailman/listinfo/general > _______________________________________________ General mailing list [email protected] http://simile.mit.edu/mailman/listinfo/general _______________________________________________ General mailing list [email protected] http://simile.mit.edu/mailman/listinfo/general
