ignore empty subject tags in CSWGetRecords parser

This commit is contained in:
Bart van den Eijnden
2012-01-13 13:05:20 +01:00
parent 78714f6de4
commit c667e9a147
3 changed files with 9 additions and 2 deletions

View File

@@ -262,7 +262,9 @@ 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[name].push(dc_element);
if (dc_element.value != "") {
obj[name].push(dc_element);
}
}
},
"dct": {