# HG changeset patch # User Felix Wolfsteller # Date 1338985159 0 # Node ID eabecbdd5adee824ab786a11027478005c639e00 # Parent 79d1db7797e65f99d52894dc1a95bf55337cacd0 More datacage conf doc. flys-artifacts/trunk@4610 c6561f87-3c4e-4783-a992-168aeb5c3f6f diff -r 79d1db7797e6 -r eabecbdd5ade flys-artifacts/ChangeLog --- a/flys-artifacts/ChangeLog Wed Jun 06 12:18:44 2012 +0000 +++ b/flys-artifacts/ChangeLog Wed Jun 06 12:19:19 2012 +0000 @@ -1,3 +1,7 @@ +2012-06-06 Felix Wolfsteller + + * doc/datacage.txt: More documentation of datacage conf. + 2012-06-06 Raimund Renkert Added new facet for analysis periods and updated facet names. diff -r 79d1db7797e6 -r eabecbdd5ade flys-artifacts/doc/datacage.txt --- a/flys-artifacts/doc/datacage.txt Wed Jun 06 12:18:44 2012 +0000 +++ b/flys-artifacts/doc/datacage.txt Wed Jun 06 12:19:19 2012 +0000 @@ -82,3 +82,67 @@ The "name" attribute is what is to be displayed in the client, the "ids" are given to the server and pass important information about the chosen data. The "factory" is chosen according to the type of data displayed. + +So far, three other elements have not yet been mentioned: , + and the structure. + is an element to allow comments. Choose these over standard + xml comments, because they are not transferred to the client. + and allow control (rather: definition) flow within +the configuration and work in analogy to the XSL-elements +and . + +When dealing with the behaviour specification of the datacage, multiple +interpretations for the term "context" are possible. +A element essentially means a database binding. Thus each +query () needs to be nested in its own context. +Furthermore, two types of databases with own bindings exist: +The "system" (default for , ) +context allows queries related to the backend database with existing +data (e.g. measurements). +The "user" context () allows queries against +the database which stores information about already existing artifacts and +calculations. + +Another connotation for the term "context" is the situation from which +the datacage is queried. The standard case is a from the datacage widget. +When the user opens the datacage from the graphical client, this is done +from one of possible multiple diagrams. +When the datacage is queried, it gets as an argument the "out" of +the current artifact. The out corresponds to the diagram type. + +For example the inner block of + + + + + + + +will only be executed if called from the datacage within a +longitudinal_section diagram. + +In the given example another concept of the datacage configuration is +encountered: Macros. + +Macros help to avoid duplication of parts of the document. As the datacage +of some diagrams should include the same type of data, the same query should +be executed in multiple situations. + +Therefore a macro can be defined, like in + + + + + + SELECT id AS prot_id, + description AS prot_description + FROM wsts WHERE kind = 4 AND river_id = ${river_id} + + + + + +and invoked from another location within the document, e.g. with + + +.