changeset 227:58d8ac962683

Replaced position of GetCaps-Link
author Stephan Holl <stephan.holl@intevation.de>
date Wed, 27 Jul 2011 13:45:21 +0200 (2011-07-27)
parents 18cb0b709df8
children 1cfb92731f48
files contrib/python/generateHTML.py
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/contrib/python/generateHTML.py	Wed Jul 27 10:18:26 2011 +0200
+++ b/contrib/python/generateHTML.py	Wed Jul 27 13:45:21 2011 +0200
@@ -45,22 +45,22 @@
 def writeLayers(mapfile, layers, extent):
     basename = os.path.basename(mapfile)
     png = mapfile.replace(".map", "_arcpy.png")
-    print '''<li>Layer:  <strong>%s</strong></li>
+    gc = getcaps + '&map=' + mapfile
+    print '''<li>Layer:  <strong>%s</strong> | <a target='_getcaps' href='%s'>GetCapabilities</a></li>
 <br>
 <a target="bild" href="file://%s"><img witdth="80" height="60" border="" src="file://%s"></a>
 Anzahl der Layer: %s
-''' % (basename, png, png, len(layers))
+''' % (basename, gc, png, png, len(layers))
     i = 0
     print "<ul>"
     while i < len(layers):
         urlmapfile  = url + '?map=' + mapfile
         urlmapfile += '&template=openlayers&mode=browse&layers=' + layers[i]
         gm  = getmap + '&map=' + mapfile + '&layers=' + layers[i]
-	gc = getcaps + '&map=' + mapfile
         if extent:
             ext = str(extent).strip('[\'\'\\r\\n]')
             gm += '&bbox='+''.join(ext)
-        print "<li><a target='_new' href='%s'>%s</a> | <a target='_getmap' href='%s'>WMS GetMap</a> | <a target='_getcaps' href='%s'>WMS GetCapabilities Version 1.1.1</a></li>" % (urlmapfile, layers[i], gm, gc) 
+        print "<li><a target='_new' href='%s'>%s</a> | <a target='_getmap' href='%s'>WMS GetMap</a></li>" % (urlmapfile, layers[i], gm) 
         i=i+1
     print "</ul>"
 
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)