fix up Format/CSWGetRecords/v2_0_2.html tests in IE6, non-functional change (closes #2537)

git-svn-id: http://svn.openlayers.org/trunk/openlayers@10124 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
bartvde
2010-03-19 12:30:23 +00:00
parent 6ecdf6c1aa
commit 223547e227

View File

@@ -226,8 +226,9 @@ OpenLayers.Format.CSWGetRecords.v2_0_2 = OpenLayers.Class(OpenLayers.Format.XML,
// identifier, language, provenance, publisher, relation, rights,
// rightsHolder, source, subject, title, type, URI
"*": function(node, obj) {
if (!(obj[node.localName] instanceof Array)) {
obj[node.localName] = new Array();
var name = node.localName || node.nodeName.split(":").pop();
if (!(obj[name] instanceof Array)) {
obj[name] = new Array();
}
var dc_element = {};
var attrs = node.attributes;
@@ -235,16 +236,17 @@ OpenLayers.Format.CSWGetRecords.v2_0_2 = OpenLayers.Class(OpenLayers.Format.XML,
dc_element[attrs[i].name] = attrs[i].nodeValue;
}
dc_element.value = this.getChildValue(node);
obj[node.localName].push(dc_element);
obj[name].push(dc_element);
}
},
"dct": {
// abstract, modified, spatial
"*": function(node, obj) {
if (!(obj[node.localName] instanceof Array)) {
obj[node.localName] = new Array();
var name = node.localName || node.nodeName.split(":").pop();
if (!(obj[name] instanceof Array)) {
obj[name] = new Array();
}
obj[node.localName].push(this.getChildValue(node));
obj[name].push(this.getChildValue(node));
}
},
"ows": {