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

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Wed Jun 26 05:20:04 PDT 2019


Author: armin11
Date: 2019-06-26 05:20:04 -0700 (Wed, 26 Jun 2019)
New Revision: 10158

Modified:
   trunk/mapbender/http/classes/class_cswClient.php
Log:
Alter handling of text search with more than one searchword

Modified: trunk/mapbender/http/classes/class_cswClient.php
===================================================================
--- trunk/mapbender/http/classes/class_cswClient.php	2019-06-25 07:09:34 UTC (rev 10157)
+++ trunk/mapbender/http/classes/class_cswClient.php	2019-06-26 12:20:04 UTC (rev 10158)
@@ -271,6 +271,7 @@
 					//TODO add other values if needed!
 					$postRequest .= '>';
     					$postRequest .= '<csw:Query typeNames="csw:Record">';
+					//$postRequest .= '<csw:ElementSetName>brief</csw:ElementSetName>';
 					//$postRequest .= '<csw:ElementSetName>summary</csw:ElementSetName>';
 					$postRequest .= '<csw:ElementSetName>full</csw:ElementSetName>';
 					if ($recordtype !== false) {
@@ -405,7 +406,7 @@
 						}
 						break;
 					case "getrecords":
-						$metadataRecord = $cswResponseObject->xpath('/csw:GetRecordsResponse/csw:SearchResults at numberOfRecordsMatched');
+						$metadataRecord = $cswResponseObject->xpath('/csw:GetRecordsResponse/csw:SearchResults/gmd:MD_Metadata');
 						//$e = new mb_exception(json_encode($metadataRecord));
 						if (is_array($metadataRecord) && count($metadataRecord) <> 1 || !is_array($metadataRecord)) {
 							$this->operationResult = "No result for counting metadata records via csw query!";



More information about the Mapbender_commits mailing list