Mercurial > dive4elements > river
changeset 4014:e5e1331d0440
Show 'per-type' annotations in longitudinal-section DC.
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Tue, 02 Oct 2012 10:38:39 +0200 |
parents | 9743bf17fce3 |
children | 7f8d92873d58 |
files | flys-artifacts/ChangeLog flys-artifacts/doc/conf/meta-data.xml |
diffstat | 2 files changed, 25 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/flys-artifacts/ChangeLog Tue Oct 02 09:34:19 2012 +0200 +++ b/flys-artifacts/ChangeLog Tue Oct 02 10:38:39 2012 +0200 @@ -1,3 +1,8 @@ +2012-10-02 Felix Wolfsteller <felix.wolfsteller@intevation.de> + + * doc/conf/meta-data.xml: Show "per-type" annotations in + longitudinal-sections DC. + 2012-10-01 Felix Wolfsteller <felix.wolfsteller@intevation.de> * flys-artifacts/src/main/java/de/intevation/flys/artifacts/AnnotationArtifact.java,
--- a/flys-artifacts/doc/conf/meta-data.xml Tue Oct 02 09:34:19 2012 +0200 +++ b/flys-artifacts/doc/conf/meta-data.xml Tue Oct 02 10:38:39 2012 +0200 @@ -535,6 +535,25 @@ </annotation> </dc:macro> + <dc:macro name="annotations_per_type"> + <annotations> + <dc:context> + <dc:statement> + SELECT id AS anno_id, + name AS anno_description + FROM annotation_types + </dc:statement> + <dc:elements> + <annotation> + <dc:attribute name="name" value="${anno_description}"/> + <dc:attribute name="factory" value="annotations"/> + <dc:attribute name="ids" value="${river_id}:${anno_description}"/> + </annotation> + </dc:elements> + </dc:context> + </annotations> + </dc:macro> + <dc:macro name="cross_sections"> <cross_sections> <dc:attribute name="id" value="flood-protections-${river_id}"/> @@ -650,6 +669,7 @@ <dc:call-macro name="basedata_4_heightmarks-points"/> <dc:comment comment=" AMTL LINIEN ---------------------------"/> <dc:call-macro name="basedata_3_officials"/> + <dc:call-macro name="annotations_per_type"/> </dc:if> <dc:if test="dc:contains($artifact-outs, 'reference_curve')"> <dc:call-macro name="annotations"/>