[Mapbender-commits] r7802 - in trunk/mapbender: conf http/php

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Tue May 10 01:57:54 EDT 2011


Author: armin11
Date: 2011-05-09 22:57:54 -0700 (Mon, 09 May 2011)
New Revision: 7802

Modified:
   trunk/mapbender/conf/mapbender.conf-dist
   trunk/mapbender/http/php/mod_updateWMS.php
Log:
Define overwrite handling  of metadata not in one script ;-)

Modified: trunk/mapbender/conf/mapbender.conf-dist
===================================================================
--- trunk/mapbender/conf/mapbender.conf-dist	2011-05-09 16:05:37 UTC (rev 7801)
+++ trunk/mapbender/conf/mapbender.conf-dist	2011-05-10 05:57:54 UTC (rev 7802)
@@ -88,6 +88,16 @@
 define("PORTAL", false);
 
 # --------------------------------------------
+# enable/disable ows metadata overwrite
+# If set to false, the edited metadata of the ows will not
+# automatically exchanged with the metadata from the server,
+# when updating the service. It has to be done with help of
+# the metadata editor afterwards
+# 
+# --------------------------------------------
+define("MD_OVERWRITE", true);
+
+# --------------------------------------------
 # mail settings for internal mapbender mails 
 # smtp mailing
 # for further settings check 'class_administration.php'

Modified: trunk/mapbender/http/php/mod_updateWMS.php
===================================================================
--- trunk/mapbender/http/php/mod_updateWMS.php	2011-05-09 16:05:37 UTC (rev 7801)
+++ trunk/mapbender/http/php/mod_updateWMS.php	2011-05-10 05:57:54 UTC (rev 7802)
@@ -129,7 +129,9 @@
 	$mywms->createObjFromXML($myURL);    
 	$mywms->optimizeWMS();
 	echo "<br />";  
-	//$mywms->overwrite=false; //TODO:this handling is used if the information should not be overwritten in the mapbender database. The owner has to explicitly overwrite them in the metadata editor - like geoportal.rlp
+	if (!MD_OVERWRITE) {
+		$mywms->overwrite=false;
+	} 
 	$mywms->updateObjInDB($myWMS);
 	$mywms->displayWMS();
 
@@ -182,4 +184,4 @@
 	echo "There are no wms available for this user.<br>";
 }
 ?>
-</html>
\ No newline at end of file
+</html>



More information about the Mapbender_commits mailing list