Ok, I seemed to have solved that by giving everything unique ids.
(Though I think that'll cause a problem if I get the participants
facet working).  However now in my 'participants' column I just get
[object,Object] rather than the list of participants.  Instead of
cutting and pasting bits of json I've put it up at:

http://james.blushingbunny.net/HOL03.html
with the json at:
http://james.blushingbunny.net/HOL03.json

What I'd like in the participants column is a list of each of the
participants showing their label "HOL04-label" (I'll generate that as
something prettier don't worry!), and then a facet to be able to
refine these. I.e. show me all the meetings that 'HOL04-label' was at.

I'm thinking now that the json is probably ok, and it is the exhibit
html that needs changing.

Any suggestions appreciated!

-James


On Thu, Sep 16, 2010 at 00:25, James Cummings <[email protected]> wrote:
> On Wed, Sep 15, 2010 at 13:54, DavidK <[email protected]> wrote:
>> Not certain I am parsing either of your questions correctly, but:
>>>  {
>>> label:    "8  January  1790",
>>> type:   "Meal",
>>> id: "m1790-01-08_dMeal_D",
>>> URI: "/diary/1790-01-08.html",
>>> subtype: "Dines",
>>> date: "1790-01-08",
>>> participants: [
>>> "HOL04",
>>> "UnCoded",
>>> "KIP01",
>>> "UnCoded",
>>> "HOL02",
>>> "HOL03"],
>>> numParticipants: "6",
>>>  },
>>>
>> You can make each code the id of an item whose label is the pretty
>> name:
>> {type: "participant",
>>  id: "HOL04",
>>  label: "John Hollins"}
>
> Ok if I make the json item look like:
>  {
> label:    "8  January  1790",
> type:   "Meal",
> id: "m1790-01-08_dMeal_D",
> URI: "/diary/1790-01-08.html",
> subtype: "Dines",
> date: "1790-01-08",
> participants: [     {
>     type: participants,
>     id: "HOL04",
>     label: "HOL04-label", } ,
>     {type: participants,
>     id: "UnCoded",
>     label: "UnCoded-label",} ,
>     {type: participants,
>     id: "KIP01",
>     label: "KIP01-label",} ,
>     {type: participants,
>     id: "UnCoded",
>     label: "UnCoded-label",},
>     {type: participants,
>     id: "HOL02",
>     label: "HOL02-label",},
>     {type: participants,
>     id: "HOL03",
>     label: "HOL03-label",}],
>     numParticipants: "6",
>  },
>
> It tells me 'ReferenceError: participants is not defined'
>
> For the list of items as a whole I have:
>  properties: {
>        "participants" : {
>        valueType: "item"
>        }
>        },
>
> at the top of the file.
>
> Any suggestions?
>
>> then the label instead of the id will be used in the facet
>
> (not tried the date solution yet... will do though)
>
> -James
>

-- 
You received this message because you are subscribed to the Google Groups 
"SIMILE Widgets" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/simile-widgets?hl=en.

Reply via email to