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

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Thu Apr 7 06:53:17 PDT 2016


Author: armin11
Date: 2016-04-07 06:53:17 -0700 (Thu, 07 Apr 2016)
New Revision: 9433

Modified:
   trunk/mapbender/http/classes/class_metadata_new.php
Log:
Enhancement for calling categories

Modified: trunk/mapbender/http/classes/class_metadata_new.php
===================================================================
--- trunk/mapbender/http/classes/class_metadata_new.php	2016-04-07 13:52:44 UTC (rev 9432)
+++ trunk/mapbender/http/classes/class_metadata_new.php	2016-04-07 13:53:17 UTC (rev 9433)
@@ -919,6 +919,9 @@
 			if ($this->resultTarget == 'internal') {
 				$this->internalResult = $this->wmsJSON;
 			}
+			if ($this->resultTarget == 'categories') {
+				echo $this->catJSON;
+			}
 			if ($this->resultTarget == 'webclient') {
 				$this->allJSON = new stdClass;
 				$this->allJSON->categories = $this->json->decode($this->catJSON);
@@ -979,6 +982,9 @@
 			if ($this->resultTarget == 'web'or $this->resultTarget == 'debug') {
 				echo $this->wfsJSON;
 			}
+			if ($this->resultTarget == 'categories') {
+				echo $this->catJSON;
+			}
 			if ($this->resultTarget == 'internal') {
 				$this->internalResult = $this->wfsJSON;
 			}
@@ -1037,7 +1043,10 @@
 			if ($this->resultTarget == 'web' or $this->resultTarget == 'debug') {
 				echo $this->wmcJSON;
 			}
-						if ($this->resultTarget == 'webclient') {
+			if ($this->resultTarget == 'categories') {
+				echo $this->catJSON;
+			}
+			if ($this->resultTarget == 'webclient') {
 				$this->allJSON = new stdClass;
 				$this->allJSON->categories = $this->json->decode($this->catJSON);
 				$this->allJSON->keywords =  $this->json->decode($this->keyJSON);
@@ -1094,6 +1103,9 @@
 			if ($this->resultTarget == 'web' or $this->resultTarget == 'debug') {
 				echo $this->datasetJSON;
 			}
+			if ($this->resultTarget == 'categories') {
+				echo $this->catJSON;
+			}
 			if ($this->resultTarget == 'webclient') {
 				$this->allJSON = new stdClass;
 				$this->allJSON->categories = $this->json->decode($this->catJSON);



More information about the Mapbender_commits mailing list