[Mapbender-commits] r4304 - branches/mifan_dev/mapbender/http/classes

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Sun Jul 5 01:07:57 EDT 2009


Author: mifan
Date: 2009-07-05 01:07:56 -0400 (Sun, 05 Jul 2009)
New Revision: 4304

Modified:
   branches/mifan_dev/mapbender/http/classes/class_csw.php
Log:
handle different tags

Modified: branches/mifan_dev/mapbender/http/classes/class_csw.php
===================================================================
--- branches/mifan_dev/mapbender/http/classes/class_csw.php	2009-07-04 19:56:51 UTC (rev 4303)
+++ branches/mifan_dev/mapbender/http/classes/class_csw.php	2009-07-05 05:07:56 UTC (rev 4304)
@@ -90,7 +90,7 @@
 			return false;
 		}
 		else {
-			$this->wms_status = true;
+			$this->cat_status = true;
 		}
 		
 		//arrays to hold xml struct values and index
@@ -117,32 +117,32 @@
 		
 		foreach($value_array as $element){
 			//Version
-			if(mb_strtoupper($element[tag]) == "csw:Capabilities" && $element[type] == "open"){
+			if((mb_strtoupper($element[tag]) == "csw:Capabilities" OR mb_strtoupper($element[tag]) == "Capabilities") && $element[type] == "open"){
 				$this->cat_version = $element[attributes][version];
 			}
 			//Title
-			if(mb_strtoupper($element[tag]) == "ows:Title" && $element[level] == '3'){
+			if((mb_strtoupper($element[tag]) == "ows:Title" OR mb_strtoupper($element[tag]) == "Title") && $element[level] == '3'){
 				$this->cat_title = $this->stripEndlineAndCarriageReturn($element[value]);
 			}
 			//Abstract
-			if(mb_strtoupper($element[tag]) == "ows:Abstract" && $element[level] == '3'){
+			if((mb_strtoupper($element[tag]) == "ows:Abstract" OR mb_strtoupper($element[tag]) == "Abstract") && $element[level] == '3'){
 				$this->cat_abstract = $this->stripEndlineAndCarriageReturn($element[value]);
 			}
 			//fees
-			if(mb_strtolower($element[tag]) == "ows:Fees"){
+			if(mb_strtolower($element[tag]) == "ows:Fees" OR mb_strtolower($element[tag]) == "Fees"){
 				$this->fees = $element[value];
 			}
 			//
-			if(mb_strtolower($element[tag]) == "ows:AccessConstraints"){
+			if(mb_strtolower($element[tag]) == "ows:AccessConstraints" OR mb_strtolower($element[tag]) == "AccessConstraints"){
 				$this->accessconstraints = $element[value];
 			}
-			if(mb_strtolower($element[tag]) == "ows:IndividualName"){
+			if(mb_strtolower($element[tag]) == "ows:IndividualName" OR mb_strtolower($element[tag]) == "IndividualName"){
 				$this->contactperson = $element[value];
 			}
-			if(mb_strtolower($element[tag]) == "ows:PositionName"){
+			if(mb_strtolower($element[tag]) == "ows:PositionName" OR mb_strtolower($element[tag]) == "PositionName"){
 				$this->contactposition = $element[value];
 			}
-			if(mb_strtolower($element[tag]) == "contactorganization"){
+			if(mb_strtolower($element[tag]) == "contactorganization" OR mb_strtolower($element[tag]) == "contactorganization"){
 				$this->contactorganization = $element[value];
 			}
 			if(mb_strtolower($element[tag]) == "address"){



More information about the Mapbender_commits mailing list