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:
@@ -226,8 +226,9 @@ OpenLayers.Format.CSWGetRecords.v2_0_2 = OpenLayers.Class(OpenLayers.Format.XML,
|
|||||||
// identifier, language, provenance, publisher, relation, rights,
|
// identifier, language, provenance, publisher, relation, rights,
|
||||||
// rightsHolder, source, subject, title, type, URI
|
// rightsHolder, source, subject, title, type, URI
|
||||||
"*": function(node, obj) {
|
"*": function(node, obj) {
|
||||||
if (!(obj[node.localName] instanceof Array)) {
|
var name = node.localName || node.nodeName.split(":").pop();
|
||||||
obj[node.localName] = new Array();
|
if (!(obj[name] instanceof Array)) {
|
||||||
|
obj[name] = new Array();
|
||||||
}
|
}
|
||||||
var dc_element = {};
|
var dc_element = {};
|
||||||
var attrs = node.attributes;
|
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[attrs[i].name] = attrs[i].nodeValue;
|
||||||
}
|
}
|
||||||
dc_element.value = this.getChildValue(node);
|
dc_element.value = this.getChildValue(node);
|
||||||
obj[node.localName].push(dc_element);
|
obj[name].push(dc_element);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"dct": {
|
"dct": {
|
||||||
// abstract, modified, spatial
|
// abstract, modified, spatial
|
||||||
"*": function(node, obj) {
|
"*": function(node, obj) {
|
||||||
if (!(obj[node.localName] instanceof Array)) {
|
var name = node.localName || node.nodeName.split(":").pop();
|
||||||
obj[node.localName] = new Array();
|
if (!(obj[name] instanceof Array)) {
|
||||||
|
obj[name] = new Array();
|
||||||
}
|
}
|
||||||
obj[node.localName].push(this.getChildValue(node));
|
obj[name].push(this.getChildValue(node));
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"ows": {
|
"ows": {
|
||||||
|
|||||||
Reference in New Issue
Block a user