Permalink
Browse files

added option to enable or disable map panel in metadata.show

  • Loading branch information...
1 parent fb11255 commit b9b2a36adc04bf038b52b1b1b8ffb5cd08b81ac7 @jesseeichar jesseeichar committed with ianwallen Feb 18, 2013
Showing with 5 additions and 1 deletion.
  1. +1 −0 web/src/main/webapp/WEB-INF/config-gui.xml
  2. +4 −1 web/src/main/webapp/xsl/metadata-show.xsl
@@ -186,6 +186,7 @@
<!-- Add an option to be able to toggle all fieldsets
in view and edit mode. -->
<metadata-view-toggleTab/>
+ <metadata-show showMapPanel="true"/>
<!-- Actions configuration
-->
@@ -20,6 +20,7 @@
<xsl:variable name="port" select="/root/gui/env/server/port" />
<xsl:variable name="baseURL" select="concat($protocol,'://',$host,':',$port,/root/gui/url)" />
<xsl:variable name="serverUrl" select="concat($protocol,'://',$host,':',$port,/root/gui/locService)" />
+ <xsl:variable name="showMap" select="/root/gui/config/metadata-show/@showMapPanel" />
<xsl:template mode="css" match="/">
<xsl:if test="$currTab!='xml'">
@@ -125,7 +126,9 @@
function init() {};
-
+ if ('<xsl:value-of select="$showMap"/>' !== 'true') {
+ return; // only show mappanel if configuration says to.
+ }
var getIMServiceURL = function(service){
// FIXME: the "/intermap/" context should be parametrized
return "/intermap/srv/"+Env.lang+"/"+service;

0 comments on commit b9b2a36

Please sign in to comment.