Charles,
Note that the code for the timeline view in
http://static.simile.mit.edu/exhibit/extensions-2.0/time/scripts/timeline-view.js
is pretty short. This means that it's not hard at all to write your own
kind of view. That is another option if you want more flexibility.
How you reference the parent PORs depends on your data model. You use
the . operator to move forward in the graph and the ! operator to move
backward. This mean that if given some PORs, the expression
".researchEffort" gives you their research efforts, then given some
research efforts, "!researchEffort" gives you their PORs.
As for concatenating the labels, try something like this in the timeline
view
<div ex:role="view" ex:viewClass="Timeline"
...
ex:eventLabel="concat(.label, ' (', !researchEffort.label, ')')"
...
></div>
Hope that helps,
David
Charles Cowan wrote:
> David:
>
> I think we are, indeed, zeroing in on this request. Thank you.
> The syntax you propose looks good. If we think of the base collection
> as a parent class (the plan of record) and the related classes as a
> child class ( i.e. the set of milestones, the set of research efforts,
> etc) then it is important to me to reference data within either the
> parent or the child when constructing a bar containing the instances
> of a particular child. For example, the date(s) probably come from
> the child, but the marker (color) may, in some cases come from the
> parent and in some cases from the child. Now, I keep an id reference
> to the parent in the child so I can probably do this but I want to
> make sure that I can. I also want to be able to construct the caption
> (the text associated with the bar or milestone). For example I may
> want to concatinate the label of the parent and the child to produce a
> caption for the child.
>
> I have worked a bit with your mock up approach and it, indeed,
> provides a partial solution. I have figured out how to get all 3
> child cases on to 3 bars. What I can't figure out how to referece is
> the parent - the union is of the all of the milestones, but doesn't
> contain the PORs so I can't refer to them. I do understand, though,
> that this is a mockup. I think the unions are also stressing the
> system a bit since the timeline comes up just fine when originally
> loaded, but if I select a facet it blows up with a "Caught exception:
> undefined .. Details: 'console' is undefined." Probably a bit of a
> performance stress too, but again, I understand it is a mockup.
>
> Thanks again, and please let me know if I can provide any more
> information.
>
> Charles
> ------------------------------------------------------------------------
>
> _______________________________________________
> General mailing list
> [email protected]
> http://simile.mit.edu/mailman/listinfo/general
>
_______________________________________________
General mailing list
[email protected]
http://simile.mit.edu/mailman/listinfo/general