[Mapbender-commits] r6142 - trunk/mapbender/http/plugins

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Mon May 10 06:32:04 EDT 2010


Author: verenadiewald
Date: 2010-05-10 06:32:04 -0400 (Mon, 10 May 2010)
New Revision: 6142

Modified:
   trunk/mapbender/http/plugins/mb_original_metadata_server.php
Log:
keywordlist-node

Modified: trunk/mapbender/http/plugins/mb_original_metadata_server.php
===================================================================
--- trunk/mapbender/http/plugins/mb_original_metadata_server.php	2010-05-10 10:31:32 UTC (rev 6141)
+++ trunk/mapbender/http/plugins/mb_original_metadata_server.php	2010-05-10 10:32:04 UTC (rev 6142)
@@ -38,6 +38,17 @@
 				$resultObj["original_fees"] = $child->nodeValue;
 			}
 			
+			//"Service"-childnode KeywordList	
+			if (strtoupper($child->nodeName) == "KEYWORDLIST"){
+				$keywords_list = $child->childNodes;
+				$keywords = array();
+				foreach ($keywords_list as $keywordlist_child_node) {																		
+					$keyword = $keywordlist_child_node->nodeValue;						
+					array_push($keywords, $keyword);
+				}
+				$resultObj["original_wms_keywords"] = implode(",", $keywords); 		
+			}
+				
 			//"Service"-childnode ContactInformation	
 			if (strtoupper($child->nodeName) == "CONTACTINFORMATION"){
 				$contactinfo_list = $child->childNodes;



More information about the Mapbender_commits mailing list