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

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Mon Jan 21 08:14:31 PST 2019


Author: armin11
Date: 2019-01-21 08:14:31 -0800 (Mon, 21 Jan 2019)
New Revision: 10034

Modified:
   trunk/mapbender/http/classes/class_cswClient.php
Log:
Set getrecordspaging so element set summary

Modified: trunk/mapbender/http/classes/class_cswClient.php
===================================================================
--- trunk/mapbender/http/classes/class_cswClient.php	2019-01-18 14:01:22 UTC (rev 10033)
+++ trunk/mapbender/http/classes/class_cswClient.php	2019-01-21 16:14:31 UTC (rev 10034)
@@ -196,11 +196,13 @@
 					$postRequest .= '<csw:GetRecords service="CSW" version="2.0.2" xmlns:csw="http://www.opengis.net/cat/csw/2.0.2" xmlns:ogc="http://www.opengis.net/ogc" xmlns:apiso="http://www.opengis.net/cat/csw/apiso/1.0" ';
 					$postRequest .= 'maxRecords="'.$maxrecords.'" ';
 					$postRequest .= 'startPosition="'.$startposition.'" ';
+					$postRequest .= 'outputSchema="http://www.isotc211.org/2005/gmd" ';
 					$postRequest .= 'resultType="results"';
+					//TODO add other values if needed!
 					$postRequest .= '>';
     					$postRequest .= '<csw:Query typeNames="csw:Record">';
-					//$postRequest .= '<csw:ElementSetName>summary</csw:ElementSetName>';
-					$postRequest .= '<csw:ElementSetName>full</csw:ElementSetName>';
+					$postRequest .= '<csw:ElementSetName>summary</csw:ElementSetName>';
+					//$postRequest .= '<csw:ElementSetName>full</csw:ElementSetName>';
 					if ($recordtype !== false) {
             					$postRequest .= '<csw:Constraint version="1.0.0">';
                 				$postRequest .= '<ogc:Filter>';
@@ -252,6 +254,7 @@
 			$this->operationResult = $this->getResult($csw->cat_op_values["transaction"]['post'], $postRequest);
 			//$this->operationUrl = $csw->cat_op_values[$operationNameCsw]['post'];
 		}
+		//$e = new mb_exception($this->operationResult);
 		//
 		//if (strpos($operationNameCsw, "getrecords") !== false) {
 		//	$this->operationUrl = $csw->cat_op_values[$operationNameCsw]['get'];



More information about the Mapbender_commits mailing list