[OpenLayers-Commits] r10949 -
sandbox/camptocamp/ifremer/openlayers/lib/OpenLayers/Format/CSWGetRecords
commits-20090109 at openlayers.org
commits-20090109 at openlayers.org
Mon Dec 6 06:09:36 EST 2010
Author: fvanderbiest
Date: 2010-12-06 03:09:36 -0800 (Mon, 06 Dec 2010)
New Revision: 10949
Modified:
sandbox/camptocamp/ifremer/openlayers/lib/OpenLayers/Format/CSWGetRecords/v2_0_2.js
Log:
camptocamp/ifremer sandbox: patch A0 attached to #2961
Modified: sandbox/camptocamp/ifremer/openlayers/lib/OpenLayers/Format/CSWGetRecords/v2_0_2.js
===================================================================
--- sandbox/camptocamp/ifremer/openlayers/lib/OpenLayers/Format/CSWGetRecords/v2_0_2.js 2010-12-04 13:51:11 UTC (rev 10948)
+++ sandbox/camptocamp/ifremer/openlayers/lib/OpenLayers/Format/CSWGetRecords/v2_0_2.js 2010-12-06 11:09:36 UTC (rev 10949)
@@ -33,7 +33,8 @@
dc: "http://purl.org/dc/elements/1.1/",
dct: "http://purl.org/dc/terms/",
ogc: "http://www.opengis.net/ogc",
- ows: "http://www.opengis.net/ows"
+ ows: "http://www.opengis.net/ows",
+ geonet: "http://www.fao.org/geonetwork"
},
/**
@@ -233,8 +234,19 @@
var record = {type: "Record"};
this.readChildNodes(node, record);
obj.records.push(record);
+ },
+ "*": function(node, obj) {
+ var name = node.localName || node.nodeName.split(":").pop();
+ obj[name] = this.getChildValue(node);
}
},
+ "geonet": {
+ "info": function(node, obj) {
+ var gninfo = {};
+ this.readChildNodes(node, gninfo);
+ obj.gninfo = gninfo;
+ }
+ },
"dc": {
// audience, contributor, coverage, creator, date, description, format,
// identifier, language, provenance, publisher, relation, rights,
More information about the Commits
mailing list