[Mapbender-commits] r5694 - in trunk/mapbender/http: classes php
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Fri Feb 26 08:51:40 EST 2010
Author: armin11
Date: 2010-02-26 08:51:39 -0500 (Fri, 26 Feb 2010)
New Revision: 5694
Modified:
trunk/mapbender/http/classes/class_cswrecord.php
trunk/mapbender/http/php/mod_searchCatQueryBuilder_server.php
Log:
bugfix csw client
Modified: trunk/mapbender/http/classes/class_cswrecord.php
===================================================================
--- trunk/mapbender/http/classes/class_cswrecord.php 2010-02-26 12:46:15 UTC (rev 5693)
+++ trunk/mapbender/http/classes/class_cswrecord.php 2010-02-26 13:51:39 UTC (rev 5694)
@@ -67,7 +67,7 @@
$connection->set("httpPostData", $xml);
$data = $connection->load($url);
//$e = new mb_exception("class_cswrecord:url:".$url);
- //$e = new mb_exception("class_cswrecord:xml:".$xml);
+ $e = new mb_exception("class_cswrecord:xml:".$xml);
//$e = new mb_exception("class_cswrecord:data:".$data);
$e = new mb_exception("class_cswrecord.php: responded data: ".$data);
}
Modified: trunk/mapbender/http/php/mod_searchCatQueryBuilder_server.php
===================================================================
--- trunk/mapbender/http/php/mod_searchCatQueryBuilder_server.php 2010-02-26 12:46:15 UTC (rev 5693)
+++ trunk/mapbender/http/php/mod_searchCatQueryBuilder_server.php 2010-02-26 13:51:39 UTC (rev 5694)
@@ -260,6 +260,7 @@
function build_getrecords_xml() {
$xml = '<?xml version="1.0" encoding="UTF-8"?> ';
$xml .= '<csw:GetRecords ';
+ #$xml .= '<GetRecords ';
$xml .= 'service="CSW" ';
$xml .= 'version="2.0.2" ';
$xml .= 'maxRecords="5" ';
@@ -276,9 +277,12 @@
$xml .= 'xmlns:gml="http://www.opengis.net/gml" ';
$xml .= 'xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ';
$xml .= 'xsi:schemaLocation="http://www.opengis.net/cat/csw/2.0.2/CSW-discovery.xsd"> ';
- $xml .= '<csw:Query typeNames="csw:Record">';
+ $xml .= '> ';
+ $xml .= '<csw:Query typeNames="csw:Record">';
+ $xml .= '<csw:ElementSetName>summary</csw:ElementSetName>';
$xml .= '</csw:Query>';
$xml .= '</csw:GetRecords>';
+ #$xml .= '</GetRecords>';
//parse xml for validating it before sending
$data = stripslashes($xml);
$dataXMLObject = new SimpleXMLElement($xml);
More information about the Mapbender_commits
mailing list