SWGetRecords format additions for sorting, p=fvanderbiest, r=me,bartvde (closes #2952)

git-svn-id: http://svn.openlayers.org/trunk/openlayers@11957 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
Éric Lemoine
2011-05-09 07:16:39 +00:00
parent c0112c9bc6
commit 491a5c0f62
4 changed files with 72 additions and 16 deletions
+11 -10
View File
@@ -32,7 +32,8 @@ OpenLayers.Format.CSWGetRecords.v2_0_2 = OpenLayers.Class(OpenLayers.Format.XML,
csw: "http://www.opengis.net/cat/csw/2.0.2",
dc: "http://purl.org/dc/elements/1.1/",
dct: "http://purl.org/dc/terms/",
ows: "http://www.opengis.net/ows"
ows: "http://www.opengis.net/ows",
ogc: "http://www.opengis.net/ogc"
},
/**
@@ -389,14 +390,13 @@ OpenLayers.Format.CSWGetRecords.v2_0_2 = OpenLayers.Class(OpenLayers.Format.XML,
node
);
}
//TODO: not implemented in ogc filters?
//if (options.SortBy) {
//this.writeNode(
//"ogc:SortBy",
//options.SortBy,
//node
//);
//}
if (options.SortBy) {
this.writeNode(
"ogc:SortBy",
options.SortBy,
node
);
}
return node;
},
"ElementName": function(options) {
@@ -433,7 +433,8 @@ OpenLayers.Format.CSWGetRecords.v2_0_2 = OpenLayers.Class(OpenLayers.Format.XML,
}
return node;
}
}
},
"ogc": OpenLayers.Format.Filter.v1_1_0.prototype.writers["ogc"]
},
CLASS_NAME: "OpenLayers.Format.CSWGetRecords.v2_0_2"