# HG changeset patch
# User Ingo Weinzierl <ingo.weinzierl@intevation.de>
# Date 1272028932 0
# Node ID cb1bae26e7ae757cacf4e152a481a1752a31999c
# Parent  2659a5b1fa1e8dace6cfb246c708b411c5ba1d5b
Adapted MapServer path in the gui with http request parameters for calling GetCapabilites (issue237).

gnv/trunk@976 c6561f87-3c4e-4783-a992-168aeb5c3f6f

diff -r 2659a5b1fa1e -r cb1bae26e7ae gnv/ChangeLog
--- a/gnv/ChangeLog	Fri Apr 23 07:55:05 2010 +0000
+++ b/gnv/ChangeLog	Fri Apr 23 13:22:12 2010 +0000
@@ -1,3 +1,10 @@
+2010-04-23  Ingo Weinzierl <ingo.weinzierl@intevation.de>
+
+	  Issue237
+
+	* src/main/webapp/WEB-INF/jsp/wmslayout.jsp: Added http request parameter to
+	  the mapserver path to simplify the GetCapabilities call for the user.
+
 2010-04-23  Ingo Weinzierl <ingo.weinzierl@intevation.de>
 
 	  Issue254
diff -r 2659a5b1fa1e -r cb1bae26e7ae gnv/src/main/webapp/WEB-INF/jsp/wmslayout.jsp
--- a/gnv/src/main/webapp/WEB-INF/jsp/wmslayout.jsp	Fri Apr 23 07:55:05 2010 +0000
+++ b/gnv/src/main/webapp/WEB-INF/jsp/wmslayout.jsp	Fri Apr 23 13:22:12 2010 +0000
@@ -33,7 +33,7 @@
             function init() {
                 <%if(request.getAttribute("wms_published") != null){ %>
                 map        = new OpenLayers.Map('map');
-                var server = '<%=serverPath%>?MAP=<%=mapfilePath%>';
+                var server = '<%=serverPath%>';
                 var back1 = new OpenLayers.Layer.WMS(
                     "Background1",
                     "http://gdisrv.bsh.de/arcgis/services/Background/Background/MapServer/WMSServer?",
@@ -114,7 +114,7 @@
                     <table>
                         <tr>
                             <td class="parameter"><bean:message key="gnviewer.wms.server.path"/>:</td>
-                            <td class="wmsvalue"><%=serverPath%>?MAP=<%=mapfilePath%></td>
+                            <td class="wmsvalue"><%=serverPath%>?SERVICE=WMS&amp;REQUEST=GetCapabilities</td>
                         </tr>
                         <tr>
                             <td class="parameter"><bean:message key="gnviewer.wms.server.layer"/>:</td>