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