[OpenLayers-Commits] r12453 -
sandbox/camptocamp/ifremer/openlayers/lib/OpenLayers/Format/CSWGetRecords
commits-20090109 at openlayers.org
commits-20090109 at openlayers.org
Tue Jan 24 03:25:39 EST 2012
Author: fvanderbiest
Date: 2012-01-24 00:25:38 -0800 (Tue, 24 Jan 2012)
New Revision: 12453
Modified:
sandbox/camptocamp/ifremer/openlayers/lib/OpenLayers/Format/CSWGetRecords/v2_0_2.js
Log:
[camptocamp/ifremer] gco:* parser improved
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 2012-01-23 14:13:52 UTC (rev 12452)
+++ sandbox/camptocamp/ifremer/openlayers/lib/OpenLayers/Format/CSWGetRecords/v2_0_2.js 2012-01-24 08:25:38 UTC (rev 12453)
@@ -446,18 +446,13 @@
}
},
"gco": {
- "Measure": function(node, obj) {
- obj.Measure = {
- value: this.getChildValue(node)
- };
- var attrs = node.attributes;
- for(var i=0, len=attrs.length; i<len; ++i) {
- obj.Measure[attrs[i].name] = attrs[i].nodeValue;
- }
- },
"*": function(node, obj) {
var name = node.localName || node.nodeName.split(":").pop();
obj[name] = {value: this.getChildValue(node)};
+ var attrs = node.attributes;
+ for(var i=0, len=attrs.length; i<len; ++i) {
+ obj[name][attrs[i].name] = attrs[i].nodeValue;
+ }
}
},
"geonet": {
More information about the Commits
mailing list