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

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Tue May 17 01:23:01 PDT 2016


Author: armin11
Date: 2016-05-17 01:23:01 -0700 (Tue, 17 May 2016)
New Revision: 9461

Modified:
   trunk/mapbender/http/classes/class_metadata_new.php
Log:
Fix search coupled resources for nested layers (only 1 level of nesting supported). TODO invoke recursive

Modified: trunk/mapbender/http/classes/class_metadata_new.php
===================================================================
--- trunk/mapbender/http/classes/class_metadata_new.php	2016-05-17 08:22:03 UTC (rev 9460)
+++ trunk/mapbender/http/classes/class_metadata_new.php	2016-05-17 08:23:01 UTC (rev 9461)
@@ -669,6 +669,16 @@
 									$downloadOptionsArray[$downloadOption->uuid] = json_encode($downloadOption->option);								
 								}
 						}
+						//TODO!: do this also for the next hierachylevel - maybe invoke it recursive!!!
+						foreach($layer->layer as $sublayer) {
+							$layerSearchArray[$sublayer->id] = $srvCount;
+							//pull inspire downloadoptions from layer information
+							foreach ($sublayer->downloadOptions as $downloadOption) {
+									if ($downloadOption->uuid != null) {
+										$downloadOptionsArray[$downloadOption->uuid] = json_encode($downloadOption->option);								
+									}
+							}
+						}
 					}
 					$srvCount++;
 				}



More information about the Mapbender_commits mailing list