[Dive4elements-commits] [PATCH] remove prefixed directory names from descriptions in data cage

Wald Commits scm-commit at wald.intevation.org
Wed Apr 17 18:19:24 CEST 2013


# HG changeset patch
# User Tom Gottfried <tom at intevation.de>
# Date 1366215559 -7200
# Node ID 1dab240f9f555bc1f54760766b7106a845e73fbe
# Parent  ed9d7e3606588d035202e175db647df8b1729717
remove prefixed directory names from descriptions in data cage

diff -r ed9d7e360658 -r 1dab240f9f55 flys-artifacts/doc/conf/meta-data.xml
--- a/flys-artifacts/doc/conf/meta-data.xml	Wed Apr 17 15:00:38 2013 +0200
+++ b/flys-artifacts/doc/conf/meta-data.xml	Wed Apr 17 18:19:19 2013 +0200
@@ -161,7 +161,7 @@
                   FROM wsts WHERE kind = 1 AND river_id = ${river_id}
                 </dc:statement>
                 <dc:for-each>
-                  <additional name="{$prot_description}">
+		  <additional name="{dc:replace($prot_description, 'Zus.Längsschnitte/', '')}">
                     <dc:context>
                       <dc:call-macro name="SQL-wst_columns_statement"/>
                       <dc:for-each>
@@ -383,7 +383,7 @@
                   FROM wsts WHERE kind = 4 AND river_id = ${river_id}
                 </dc:statement>
                 <dc:for-each>
-                  <heightmark name="{$prot_description}">
+                  <heightmark name="{dc:replace($prot_description, 'HW-Marken/', '')}">
                     <dc:context>
                       <dc:call-macro name="SQL-wst_columns_statement"/>
                       <dc:for-each>
@@ -410,7 +410,8 @@
                   FROM wsts WHERE kind = 4 AND river_id = ${river_id}
                 </dc:statement>
                 <dc:for-each>
-                  <heightmark name="{$prot_description}"><dc:context>
+                  <heightmark name="{$prot_description}">
+                    <dc:context>
                       <dc:call-macro name="SQL-wst_columns_statement"/>
                       <dc:for-each>
                         <column name="{$prot_column_name}"
@@ -466,7 +467,7 @@
                   FROM wsts WHERE kind = 5 AND river_id = ${river_id}
                 </dc:statement>
                 <dc:for-each>
-                  <flood_protection name="{$prot_description}"
+                  <flood_protection name="{dc:replace($prot_description, 'HW-Schutzanlagen/', '')}"
                                     db-id="{$prot_id}"
                                     factory="staticwkms">
                     <dc:context>


More information about the Dive4elements-commits mailing list