[Mapbender-commits] r9541 - trunk/mapbender/http/classes

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Wed Jul 13 08:11:55 PDT 2016


Author: armin11
Date: 2016-07-13 08:11:55 -0700 (Wed, 13 Jul 2016)
New Revision: 9541

Modified:
   trunk/mapbender/http/classes/class_csw.php
Log:
Bugfix

Modified: trunk/mapbender/http/classes/class_csw.php
===================================================================
--- trunk/mapbender/http/classes/class_csw.php	2016-07-13 15:10:58 UTC (rev 9540)
+++ trunk/mapbender/http/classes/class_csw.php	2016-07-13 15:11:55 UTC (rev 9541)
@@ -165,11 +165,14 @@
 			$csw202Cap->registerXPathNamespace("ogc", "http://www.opengis.net/ogc");
 			$csw202Cap->registerXPathNamespace("xlink", "http://www.w3.org/1999/xlink");
 			$csw202Cap->registerXPathNamespace("xsi", "http://www.w3.org/2001/XMLSchema-instance");
-			$csw202Cap->registerXPathNamespace("default", "");
+			//$csw202Cap->registerXPathNamespace("default", "http://www.opengis.net/ows");
 			$csw202Cap->registerXPathNamespace("inspire_ds", "http://inspire.ec.europa.eu/schemas/inspire_ds/1.0");
 			$csw202Cap->registerXPathNamespace("inspire_com", "http://inspire.ec.europa.eu/schemas/common/1.0");
 			$this->cat_version = $csw202Cap->xpath('/csw:Capabilities/@version');
 			$this->cat_version = $this->cat_version[0];
+			if ($this->cat_version == null) {
+				$this->cat_version = "2.0.2";
+			}
 			//$e = new mb_exception($this->cat_version);
 			//title part
 			$this->cat_title = $csw202Cap->xpath('/csw:Capabilities/ows:ServiceIdentification/ows:Title');



More information about the Mapbender_commits mailing list