Yee-Ting Li wrote:
> Hi David,
>
> thanks for the reply. i'm not too fussed about duplicating data at  
> the moment, so your first suggestion is a good one. once we get to a  
> production system for our exhibit'd data, then we will consider using  
> version 2... unless there are features in version 2 which may be  
> useful to us now... ;)
>
> unfortunately, due to the security sensitive nature of the data we  
> are presenting, we can not provide you a url of our exhibit. :(
>
> One feature of exhibit that i do like is the popup lenses that work  
> on the thumbnail views. is there a way i can make this work on the  
> Tabular view? ie if we click on a particular cell, then it will bring  
> up a bubble of other data. i've tried just copy and pasting the  
> relevant code into the Exhibit.TabularView for a ex:role="exhibit- 
> lens", but it doesn't work :(
>   
What you need to do is declare the value type of the property (in that 
column) to be "item". So you data file will look something like this, 
if, say, your data is about products and manufacturers:

{
    items: [
       {   "label":   "Segway",
            "type" : "Product",
            "manufactured-by" : "Segway Inc.",
            "sold-at" : "Walmart"
       },
       {   "label": "Segway Inc.",
             "type": "Company"
       },
       {   "label": "Walmart",
            "type": "Company"
       }
    ],
    properties: {
       "manufactured-by" : {
          valueType: "item"
       },
       "sold-at" : {
          valueType: "item"
       }
    }
}

> also i'm not completely sure of the syntax of the lens reference:  
> does the <span ex:content="value".> always create a link to the popup  
> of the definition <div ex:role="exhibit-lens">? what if i want more  
> than one type of popup on the same page?
>   
Many lens templates can be defined for different item types, e.g.,

    <div ex:role="exhibit-lens" ex:itemTypes="Product"> ... </div>

    <div ex:role="exhibit-lens" ex:itemTypes="Company"> ... </div>

Version 2.0 will be more flexible.

Hope that helps,

David

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

Reply via email to