Rename contents to contentMetadata to maintain some sort of continuity between WCS 1.0.0 and 1.1.0

This commit is contained in:
Christopher Eykamp
2013-01-02 12:48:55 +01:00
parent f7605dcb66
commit 15138605c3

View File

@@ -64,14 +64,14 @@ OpenLayers.Format.WCSCapabilities.v1_1_0 = OpenLayers.Class(
this.readChildNodes(node, obj);
},
"Contents": function(node, request) {
request.contents = [];
this.readChildNodes(node, request.contents);
request.contentMetadata = [];
this.readChildNodes(node, request.contentMetadata);
},
"CoverageSummary": function(node, contents) {
var coverageSummary = {};
// Read the summary:
this.readChildNodes(node, coverageSummary);
// Add it to the contents array:
contents.push(coverageSummary);
},