[Dive4elements-commits] [PATCH 3 of 3] Flys Issue 759 write longer strings and explicitly break the lines

Wald Commits scm-commit at wald.intevation.org
Wed Apr 10 10:30:36 CEST 2013


# HG changeset patch
# User Andre Heinecke <aheinecke at intevation.de>
# Date 1365582333 -7200
# Node ID 2d9eb188fa51b1842a0275ab83f43a27b2d41a1f
# Parent  6958479ec92d4801add4f4ed35bd4091d688584e
Flys Issue 759 write longer strings and explicitly break the lines

    This makes the dem hover item layout more robust as it works
    with different string lengths

diff -r 6958479ec92d -r 2d9eb188fa51 flys-artifacts/doc/conf/meta-data.xml
--- a/flys-artifacts/doc/conf/meta-data.xml	Wed Apr 10 10:24:40 2013 +0200
+++ b/flys-artifacts/doc/conf/meta-data.xml	Wed Apr 10 10:25:33 2013 +0200
@@ -896,10 +896,10 @@
                          d.name  AS name,
                          t.start_time AS start_time,
                          t.stop_time AS stop_time,
-                         ' Proj: ' || d.projection ||
-                         ' Rasterweite: '   || d.resolution ||
-                         ' Fmt: '  || d.format ||
-                         ' Zeit: '
+                         'Projektion: ' || d.projection || '$' ||
+                         'Rasterweite: '   || d.resolution || 'm$' ||
+                         'Format: '  || d.format || '$' ||
+                         'Zeitraum: '
                          AS info
                          FROM dem d
                          JOIN ranges r ON d.range_id = r.id
@@ -908,7 +908,7 @@
                 </dc:statement>
                 <dc:for-each>
                   <dem factory="demfactory" ids="{$dem_id}" name="{$name}"
-                    info="{$info}{dc:date-format('yyyy', $start_time)} - {dc:date-format('yyyy', $stop_time)}"/>
+                    info="{dc:replace($info, '$', '<BR>')}{dc:date-format('yyyy', $start_time)} - {dc:date-format('yyyy', $stop_time)}"/>
                 </dc:for-each>
               </dc:context>
             </dems>


More information about the Dive4elements-commits mailing list