[Mapbender-commits] r10091 - trunk/mapbender/http/php

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Tue Mar 26 06:38:41 PDT 2019


Author: armin11
Date: 2019-03-26 06:38:40 -0700 (Tue, 26 Mar 2019)
New Revision: 10091

Modified:
   trunk/mapbender/http/php/mod_callCswMetadata.php
Log:
Fix for csw 2.0.2 search with paging - set right start position - thanx to mipel at osgeo

Modified: trunk/mapbender/http/php/mod_callCswMetadata.php
===================================================================
--- trunk/mapbender/http/php/mod_callCswMetadata.php	2019-03-25 17:44:58 UTC (rev 10090)
+++ trunk/mapbender/http/php/mod_callCswMetadata.php	2019-03-26 13:38:40 UTC (rev 10091)
@@ -776,7 +776,8 @@
 //for ($i = 0; $i <= $pages-1 ; $i++) {
 	//$cswClient = new cswClient();
 	//$cswClient->cswId = $catalogueId;
-	$result = $cswClient->doRequest($cswClient->cswId, 'getrecordspaging', false, false, $searchResource, $maxResults, $searchPages[$i]*$maxResults+1, $additionalFilter);
+        $startPos = ($searchPages[$i]-1) * $maxResults + 1;
+	$result = $cswClient->doRequest($cswClient->cswId, 'getrecordspaging', false, false, $searchResource, $maxResults, $startPos, $additionalFilter);
 	//$page = $i + 1;
 	//$e = new mb_exception("page: ".$page." (".$pages.")");
 	//$e = new mb_exception("result: ".json_encode($cswClient->operationSuccessful));



More information about the Mapbender_commits mailing list